Location detection

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
mick_y
Forum Newbie
Posts: 1
Joined: Tue Sep 17, 2013 1:58 am

Location detection

Post 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?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Location detection

Post by pickle »

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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Location detection

Post 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)?
Post Reply