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
-~----------~----~----~----~------~----~------~--~---

Reply via email to