Thanks Larry, but I was hoping that there would be a way to do this automatically and include it in the script. Ideally this would allow the bearing to be determined automatically and the pitch set accordingly (i.e. set pitch to 90 degrees from known bearing) without any manual input. If you have a list of addresses doing this manually for each would be quite time consuming.
On Feb 28, 8:19 am, "[email protected]" <[email protected]> wrote: > On Feb 27, 10:53 am, Dean <[email protected]> wrote: > > > The Maps API Map Streetview Object example describes how you can show > > a Streetview of a given location and control the pitch and yaw. The > > pitch is based on the orientation of the street. If you are heading > > north the view to the right is 270 (degrees). > > > My question is this...how can you determine the direction of any > > location so that the pitch is always at a right angle? A standard > > value of 270 will not always return a true 90 degree view as it is > > based on the direction of the street. Can anyone offer any assistance > > with this? Any help would be greatly appreciated. > > Calculate the bearing to the location from the nearest > StreetviewPanorama (which is where the image was taken from). > Set it to be the yaw (pitch is up/down) > > A simple example I have been playing with that does > that:http://www.geocodezip.com/example_geo_streetview.asp > (there are still issues that need debugging, but it works to first > order) > > -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
