Geopoint Address

Get detailed address information based on geographic coordinates (latitude and longitude). This reverse geocoding API converts coordinates to a formatted address.

Endpoint

Get address information for a specific geographic point

POSThttps://api.xtartapp.com/place/reverse

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
latnumberYes-The latitude coordinate of the location
lngnumberYes-The longitude coordinate of the location
languagestringNo-Optional preferred language for the results, example: 'en', 'fr', 'es'

Response

NameTypeDescription
dataobjectAddress information for the requested coordinates
data.placeIdstringUnique identifier for the place (OSM ID)
data.shortNamestringShort name of the location
data.namestringFull formatted address of the location
data.latnumberLatitude coordinate of the location
data.lngnumberLongitude coordinate of the location
data.countrystringCountry where the location is situated
data.countryCodestringTwo-letter country code (ISO 3166-1 alpha-2)
data.citystringCity of the location
data.statestringState or province of the location
data.tagsstring[]Array of tags categorizing the location type
metadataobjectMetadata about the request
metadata.costnumberCost of the request
metadata.countnumberNumber of results returned (1 or 0)

Errors

{
   "error": "string",
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADThe lat parameter is required
400INVALID_PAYLOADThe lat parameter must be a number
400INVALID_PAYLOADThe lng parameter is required
400INVALID_PAYLOADThe lng parameter must be a number
400INVALID_PAYLOADThe language parameter must be a string
400REQUEST_ERRORThe request failed
400INSUFFICIENT_BALANCEThe user has insufficient balance
401UNAUTHORIZEDThe token is invalid.
429TOO_MANY_REQUESTSThe request limit has been reached.