Page 1 of 1

Location detection

Posted: Tue Sep 17, 2013 2:37 am
by mick_y
It is possible to get geo locations of few devices? My requirements are:
1. Site for authentification, and if user is logged and i call a url i get his coordinates for example in json format, and after this can show it on google map

I have tried to do this with this scripts, but i get here false coordinates: http://www.w3schools.com/html/html5_geolocation.asp

I need this for ios and android devices, possible?

Re: Location detection

Posted: Tue Sep 17, 2013 10:03 am
by pickle
This doesn't involve PHP at all. Moving to Javascript.

Re: Location detection

Posted: Tue Sep 17, 2013 12:36 pm
by requinix
If you're getting coordinates at all then probably you're doing it right but the device is giving you the wrong location. Where does the device think itself is (like with some map app)?