Return IP Address Geolocation Data

return-ip-geolocation-data-map

This sample application returns geolocation data based upon the users public IP address. The application uses the IP Geolocation API from ipinfodb.com to retrieve the geolocation information. The application returns the following fields:

  • statusCode
  • statusMessage
  • ipAddress
  • countryCode
  • countryName
  • regionName
  • cityName
  • zipCode
  • latitude
  • longitude
  • timeZone

In addition, the application also integrates with Google Maps to display a location map based upon the longitude and latitude contained in the geolocation data.

Run Code

Click the Run Example button to try out this code example.

Documentation

Click the Webhelp button to view the application help documentation.