views:

2107

answers:

4

I am making a web site targeted at mobile phones and would like to get the user's current GPS latitude/longitude when they visit my default page so I can show them results in their area. Is this possible using ASP.NET?

See Also

Get position data from mobile browser

A: 

You'd have to get security permission to access the appropriate GPS API. As long as you know the API, you'll be able to obtain the appropriate data, but it'll depend on the OS. I know it is accessible via Python as PyS60 for Nokia phones.

Beau Martínez
A: 

There are services that will give you a location based on IP address. It won't be as precise as the GPS data but without having an application installed on the phone it may be as close as you are going to get.

trent
+1  A: 

Get position data from mobile browser has some possible solutions.

Zhaph - Ben Duguid
A: 

You're not going to have much luck at the moment, but this is something that should be possible within a few years. The W3C have published a Geolocation API Draft, and this has been implemented into a jailbreak iPhone app called Locatable, but support is going to be so few and far between it's not worth the implementation time!

Richard John