The Coordinates in the Position report returned from geolocation.getCurrentPosition() callback does contain a heading:

interface Coordinates {
    readonly attribute double latitude;
    readonly attribute double longitude;
    readonly attribute double? altitude;
    readonly attribute double accuracy;
    readonly attribute double? altitudeAccuracy;
    readonly attribute double? heading;
    readonly attribute double? speed;
};

The specification says that the heading value is null if it's not supported, and the value is NaN if the device is stationary.
http://dev.w3.org/geo/api/spec-source.html

/Mogens

On 11-05-2011 16:35, Thoern wrote:
I wonder if its possible to rotate a map on the phone using a webapp/
safari.
Is it possible to reach that info in some simular way as you can reach
gps hardware with geolocation?


--
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to