On Feb 27, 11:29 am, Dean <[email protected]> wrote:
> 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.

I don't understand what you mean.  The script automatically calculates
the correct direction to point the streetview panorama based on the
location it gets from the geocoder and the location of the nearest
panorama.  You can use a different source than the geocoder for the
"real" location that you want to look at.  Other than that, that is
all you can do...
As for pitch, I don't know how to calculate how far up or down the
camera should look (elevation isn't included in any of the data).

   -- Larry

>
> 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- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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