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?
Location detection
Moderator: General Moderators
Re: Location detection
This doesn't involve PHP at all. Moving to Javascript.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Location detection
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)?