0

When you get an image from the Google Maps Streetview -

http://code.google.com/apis/maps/documentation/streetview/index.html

Using the syntax:

http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,%20-73.988354&fov=90&heading=235&pitch=10&sensor=false

It will load an image with the camera pointed at the object. The documentation states:

heading (optional) indicates the compass heading of the camera. Accepted values are from 0 to 360 (both values indicating North, with 90 indicating East, and 180 South). If no heading is specified, a value will be calculated that directs the camera towards the specified location, from the point at which the closest photograph was taken.

I'd like to the compass heading of the camera when I load an image?

Tom
  • 170
  • 1
  • 8

2 Answers2

1

You can get the heading of a street using Street view API and use the heading value to fetch the image that points towards the street. Here is my solution.

Google Street View heading issue

After getting the heading value, just call the street view image API with that value.

Cheers

Community
  • 1
  • 1
Hasanavi
  • 8,455
  • 2
  • 29
  • 35
0

You can't get this from the Street View Image service, but if you're using the JavaScript Street View API, you can get it from Panoramas that you're looking at.

Mano Marks
  • 8,761
  • 3
  • 27
  • 28