Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps 如何确定谷歌街景图像的精确坐标_Google Maps_Coordinates_Google Street View - Fatal编程技术网

Google maps 如何确定谷歌街景图像的精确坐标

Google maps 如何确定谷歌街景图像的精确坐标,google-maps,coordinates,google-street-view,Google Maps,Coordinates,Google Street View,我目前正在编写一个脚本,该脚本生成随机坐标,并通过 这很好,但我想更进一步: 如果随机坐标不是直接落在街道上,而是落在建筑物或公园上,例如,Google street View Image API将返回随机坐标可见的位置的图像 我想确定拍摄照片时,街景车所站位置的坐标 任何帮助或想法都将不胜感激。这些是全景图的坐标。您可以使用 $img_url = 'https://maps.googleapis.com/maps/api/streetview?size=640x640&location

我目前正在编写一个脚本,该脚本生成随机坐标,并通过

这很好,但我想更进一步:

如果随机坐标不是直接落在街道上,而是落在建筑物或公园上,例如,Google street View Image API将返回随机坐标可见的位置的图像

我想确定拍摄照片时,街景车所站位置的坐标


任何帮助或想法都将不胜感激。

这些是全景图的坐标。您可以使用
$img_url = 'https://maps.googleapis.com/maps/api/streetview?size=640x640&location=[RANDOM_LATITUDE],%20[RANDOM_LONGTITUDE]&sensor=false&key=[API_KEY]';