Jump to content

Archived

This topic is now archived and is closed to further replies.

ts2000abc

ip address to gps coordinates

Recommended Posts

Does anyone know if there is some way (open/free API for example) for transferring users IP-address to GPS coordinates? I’m trying to make map software that shows users location…

Share this post


Link to post
Share on other sites

$ip = $SERVER["REMOTE_ADDR"];
$tags = get_meta_tags('http://www.geobytes.com/IpLocator.htm?GetLocation&template=php3.txt&IpAddress='.$ip.'');

print $tags['city'];  // city name

 

More info: http://www.geobytes.com/IpLocator.htm

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.