views:

825

answers:

1

All I've been able to find is how to specify the sensor parameter:

http://code.google.com/apis/maps/documentation/v3/#SpecifyingSensor

But nowhere does it say how to actually USE it. Isn't the whole point to be able to get the user's current lat/long coordinates through the device GPS, or am I mistaken?

+2  A: 

That sensor parameter is only there to indicate to Google that you are using a GPS sensor to determine the user's location.

Unless using the W3C Geolocation API in browsers that support it, it remains your responsibility to get the latitude and longitude from your GPS device to the user's browser.

Daniel Vassallo
Aah, I must have thought there was a magical conduit that allowed GMaps to get the GPS info from the iPhone. Thanks for the enlightenment.
renegadeofunk
I don't get why google is so insistent on this parameter being passed via the webservice. What interest or use is it to them?
skaffman
@skaffman: I've also been wondering the same thing. They might use it to collect information on how the free maps api is being used. That is, if they trust that everyone sets it appropriately.
Daniel Vassallo