IP to Latitude, Longitude

Get your IP address or an IP address you specify returned as a physical address within 1 mile of your actual location. Supported formats are JSON and JSONP.


Use a library such as cURL or Wget to query www.iptolatlng.com. If you supply a user agent and no GET headers, you will be returned this page. Supply these parameters optionally:


JSONP is a workaround for cross-domain requests. You supply a callback which will be called once the request has completed. Read JSONP for more information.


Run the below example to retun your IP.

This example runs in JSONP mode using jQuery.


Want discounted hosting?

You can get hosting for $6.67 a month and support this service using the following codes. Comes with 2 free lifetime domain registrations. See www.dreamhost.com for details:

© 2013 by Mike.