Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Link to Google Streetview using Lat/Long

I'm trying to make an app that links to Google streetview using latitude/longitude coordinates, and shows a streetview of the nearest road. This is coming from a fairly small and well covered area, so there isn't going to be any coordinates in the middle of the ocean.

Is there a published API showing the get parameters you need to link directly to streetview?

like image 211
Dan Monego Avatar asked May 03 '10 16:05

Dan Monego


1 Answers

You may be interested in checking out the following reference, which describes all the known parameters that can be passed to maps.google.com, including Street View parameters:

  • asnsblues: Google Map Parameters

While this is not an official API, I think it is fair to say that these should be quite reliable, since they are the same parameters used for the permanent links in Google Maps.

With this, you should be able to construct something like the following:

http://maps.google.com/?cbll=40.714103,-74.006206&cbp=12,20.09,,0,5&layer=c

like image 132
Daniel Vassallo Avatar answered Sep 29 '22 10:09

Daniel Vassallo