有没有办法请求主要道路Google StreetView全景数据而不是给定位置(纬度/经度)的后巷全景数据?
我正在使用Google Maps Javascript API从我们的用户提供的家庭地址中检索街景全景图.它适用于我尝试过的大多数地址,但我注意到加利福尼亚州的很多房产也有后巷的街景,而且API接缝始终返回后巷而不是主要道路(前面)财产)全景.
我不想向用户显示他们家的后巷全景,而是主要道路全景.如果我在maps.google.com上查找相同的地址,我会看到房子的正面,但是当我通过API请求相同的地址时,我会看到后面的小巷.
我目前使用的流程是:
测试地址:
任何想法或建议将不胜感激.谢谢!
javascript google-maps google-maps-api-3 google-street-view google-places-api
对于我正在经历的Laravel 4问题,我非常感谢.
我正在测试控制器路由,特别是负责路由问卷调查的控制器.我正在测试以下场景:用户试图跳过问题,用户请求不存在的问题......等等.
我为所有场景编写的测试到目前为止使用PHPunit按预期工作.我正在编写的测试涉及多个$this->call()或$this->client->request()执行,这就是事情发生的地方.如果我在一个测试方法中执行$this->call()或执行$this->client->request()太多次(特定于2或更多),我会在终端中获得ErrorException:
{"error":{"type":"ErrorException","message":"Undefined variable:header","file":"/ Volumes/Dev HD/dmh/app/views/layouts/steps.php","行":1}}
如果我减少的数量$this->call()或$this->client->request()测试方法一,工作上的事情,并没有显示异常.我一直在使用以下代码:
/**
* When the user skips questions they have not yet answered, the user
* should be redirected back to the first unanswered question.
*
* @return void
*/
public function testDiscoverSkipQuestions()
{
// Get the first question.
$domCrawler = $this->client->request('GET', 'style/discover');
// Answer the first question
$form = $domCrawler->selectButton("Next »")->form();
$form['question_1'] = 'A:0';
$response = $this->client->submit($form);
$this->assertRedirectedTo('style/discover/2'); …Run Code Online (Sandbox Code Playgroud)