QuickBlox Developers (API docs, code samples, SDK)

GeoIP

From QuickBlox Developers (API docs, code samples, SDK)
Jump to: navigation, search

Description

GeoIP is a tool to define the IP location. http://GeoIP.QuickBlox.com is based on MaxMind GeoLite City database which is destibuted under GPL license. Our GeoIP service is autoupdated.

Usage

To use our GeoIP service you should send GET request to http://geoip.quickblox.com with the IP address.

For example: http://geoip.quickblox.com/?ip=79.171.123.12

You will receive XML answer based on database record for this IP:

<geoip>
  <country>UA</country>
  <region>07</region>
  <city>Kharkiv</city>
  <postalcode/>
  <latitude>50.0000</latitude>
  <longitude>36.2500</longitude>
</geoip>

Namespace

State/Region char(2) For US/Canada, ISO-3166-2 code for the state/province name, with the addition of AA, AE, and AP for Armed Forces America, Europe and Pacific. Outside of the US and Canada, FIPS 10-4 code. Region name lookups are available here.
City Name varchar(255) Name of city or town in ISO-8859-1 encoding.
Postal Code varchar(6) For US, Zipcodes, for Canada, postal codes.
Latitude numeric (float) Latitude of city where IP is located
Longitudenumeric (float) Longitude of city where IP is located

Go up