Hey! These docs are for version 2, which is no longer officially supported. Click here for the latest version, 3!

Geolocation

🚧

New version available

This v2 document is obsolete. Please see the current v3 document here.

Geolocation provides the location of a visitor on a city level. It is the default geo-location accuracy and does not need to be explicitly specified when calling the FP.send() method.
Example:

// equivalent of FP.send({ip: 'city'})
FP.send().then(function(response){..}
// webhook data will contain this information:
{
  "ip": "89.112.151.14",
  "ipLocation": {
    "accuracyRadius": 5,
    "latitude": 37.987,
    "longitude": -1.13,
    "postalCode": "30006",
    "timezone": "Europe/Madrid",
    "city": {
      "name": "Murcia"
    },
    "continent": {
      "code": "EU",
      "name": "Europe"
    },
    "country": {
      "code": "ES",
      "name": "Spain"
    },
    "subdivisions": [
      {
        "isoCode": "MC",
        "name": "Murcia"
      },
      {
        "isoCode": "MU",
        "name": "Murcia"
      }
    ]
  }
}

Calling FP.send() with no geolocation accuracy specified is equivalent to calling FP.send({ip: 'city'})


Did this page help you?