Geolocation provides the location of a visitor on a city level. This is the default geolocation accuracy level and does not need to be explicitly specified when calling the fp.get()
method.
Example:
// equivalent of fp.send({ ipResolution: 'city' })
await fp.get()
// 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.get()
with no geolocation accuracy specified is equivalent to calling fp.get({ ipResolution: 'city' })
Updated about a month ago