I am developing a webpage which requires the userlocation for loading some data. The web page is mainly intended for android users. I need to find the geo location of the user when the user opens that page? How can I do that?
Asked
Active
Viewed 960 times
2 Answers
0
HTML5 has a geolocation facility. Android 2.x devices should support it.
For Android 1.x devices, try the Google Gears equivalent.
![](../../users/profiles/115145.webp)
CommonsWare
- 910,778
- 176
- 2,215
- 2,253
0
If aviable, the JavaScript geolocation object will provide you with that data.
For the concrete implementation, have a look at this question: Which Devices Support Javascript Geolocation via navigator.geolocation?
![](../../users/profiles/-1.webp)
Community
- 1
- 1
![](../../users/profiles/6260.webp)
Christian Studer
- 22,792
- 6
- 39
- 70