Gebeta Maps
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
latstringSpecifies the latitude of the location you want to query.yes
lonstringSpecifies the longitude of the location you want to query.yes
apiKeystringYour API key for accessing Gebeta Maps.yes

Response Codes for Reverse Geocoding API

Status CodeMessageDescription
200OKThe request was successful. The system found the matching location coordinates and returned the data.
404Not FoundNo matching location exists for the provided coordinates. Check the values and try again.
401Not Authorized - No TokenAuthentication failed. A valid API key must be provided.
401Not Authorized - Invalid TokenThe API key provided is either invalid or expired. Please use a current, valid API key.
422Invalid InputThe request parameters are incorrect. Review and correct the input values as needed.

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