Reputation:
i am developing a mobile web application. i want to detect the current location of the device even when the device GPS is Off. Is there any way we can do it? can implementation methods like (cell/sector/triangulation) are possible to do it?
are there any api's which can help to do it?please help.
thanks and regards, vinay
Upvotes: 0
Views: 1302
Reputation: 1051
2 options based on where you want to determine - Java Script side. This wraps the HTML5 spec - Google Geolocation API - http://code.google.com/p/geo-location-javascript/
Or you could determine it on the server based on the IP address of the mobile phone (rememeber to make it clear to your users that you are using the IP to determine the location) http://blog.programmableweb.com/2009/03/31/3-free-ways-to-geolocate-by-ip/
Upvotes: 1