Geocoding

Reverse Geocoding

Retrieve accurate location coordinates by entering a place name, returning an array of potential matches with their corresponding details.

Request Sample

curl https://mapapi.gebeta.app/api/v1/route/revgeocoding?lat=8.989022&lon=38.79036&apiKey={your-api-key}

Parameters

ParameterTypeDescriptionRequired
latstringLatitude of the location you want to reverse-geocode.Yes
lonstringLongitude of the location you want to reverse-geocode.Yes
formatstringResponse format for reverse geocoding. Currently only osm is supported.No
apiKeystringYour Gebeta Maps API key.Yes

Response Codes for Reverse Geocoding API

Status CodeMessageDescription
200OK Request successful. Matching location information was found and returned.
404Not FoundNo matching location exists for the provided coordinates.
401Not Authorized – No TokenAuthentication failed. A valid API key was not provided
401Not Authorized – Invalid TokenThe provided API key is invalid or expired.
422Invalid InputOne or more request parameters are incorrect. Review and correct your input.

Example

fetch('https://mapapi.gebeta.app/api/v1/route/revgeocoding?lat=8.989022&lon=38.79036&apiKey={your-api-key}')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

On this page