Reverse Geocoding API

Quickly and easily convert lat/long coordinates to a location address

Our Reverse Geocoding API takes lat/long coordinates and converts them into a location address.
Use the Reverse Geocoding API when you have a person's lat/long position and want to translate that into their address. You can also use it to find the address of the place or building when clicking on a map. For example, for the coordinates "lat: 52.152066, long: 9.952231 " the Reverse Geocoding API will return the address "Stadtbibliothek, Judenstraße 1, 31134 Hildesheim, Germany ".

Essayer Geocoding API Enter the addresses you want to search in the text field and press "Geocode " to find the corresponding locations.

Use cases

There are many ways to use the Reverse Geocoding API in your business:

Find your customer's address from their location


You find your customer's address by examining their location. For example, if you've got a taxi firm, you can use the GPS coordinates from the customer's mobile to get address suggestions.

Click on a map and get address information


Get the address information you need by clicking on a map. With reverse geocoding you can click the building on a map in your application, and our API will provide address details.

Use geographical information to BETTER target customers


Use city, or state information to provide highly targeted ad campaigns and offers to your customers. For example, if you have a restaurant chain and you notice a specific dish is popular in a city, you can show ads for money off that dish to customers in that city.

Use with our other APIs to get the results you need


You can use our Reverse Geocoding API with our other APIs to get the location information you need:

Need to track assets such as deliveries or fleet tracking?

Match GPS coordinates with road databases using our Map Matching API to create a route track.

map matchign api

Need to know where your customers are visiting right now

Our Place Details API takes coordinates and returns the place information along with category and contact information.

place details api

Features and capabilities

Get corresponding address by coordinates

Enter a latitude and longitude pair and our Reverse Geocoding API provides a corresponding address. If the coordinates are outside a building, our API returns the nearest address along with distance in metres to the original coordinates. This helps you estimate how far the returned address is from the latitude and longitude you entered.

Localize the results

Our API's language parameters let you retrieve localized addresses. For example, here's an API URL link for a French version of the address:

https://api.tmaps.tn/v1/geocode/reverse?lat=52.532329&lon=13.411415&lang=fr&apiKey=YOUR_API_KEY

Convert latitude/longitude to address, street, postcode, city, and country

With our API you can query different parameters for each set of coordinates. For each given location you can get the country, city, postcode or address. Here's a URL example to get the postcode by latitude/longitude:

https://api.tmaps.tn/v1/geocode/reverse?lat=52.478117501285965&lon=13.47717282413089&type=postcode&apiKey=YOUR_API_KEY

And here's a URL example to get the country by latitude/longitude:

https://api.tmaps.tn/v1/geocode/reverse?lat=52.478117501285965&lon=13.47717282413089&type=country&apiKey=YOUR_API_KEY

A URL example to get the street by latitude/longitude:

https://api.tmaps.tn/v1/geocode/reverse?lat=52.478117501285965&lon=13.47717282413089&type=street&apiKey=YOUR_API_KEY
Permissive and safe

We based our Reverse Geocoding API on open data. You can cache and store your results every time. And we have “soft” limits on our plans, so even if you exceed the limit we won't block or ban you.

map matchign api
by developers for developers

Our API is easy and convenient to use. It works via HTTP Get and can be integrated with any website or app, and with any programming language.

map matchign api
Bulk reverse geocoding

With bulk geocoding you can process thousands of records at once. Enter multiple pairs of coordinates and our API will return batch results.

map matchign api

Getting Started & Reverse Geocoding API Code Samples

MapLibre GL is a community-supported fork of Mapbox GL under the BSD-3-Clause license, which is safe for commercial projects and businesses. MapLibre GL works with vector map tiles and allows you to customize map styles for your project.

STEP 1: Register and get an API Key

  • Sign up on MyProject Geoapify page
  • Sign up on MyProject Geoapify page Create a new project
  • Go to the "API keys " page and get an API key

STEP 2: Generate and call HTTP GET API request

The API works via HTTP GET requests. The typical geocoding request looks like this:

https://api.tmaps.tn/v1/geocode/reverse?lat=52.534708&lon=13.403800&apiKey=YOUR_API_KEY

Learn more about the API parameters on our documentation page or generate a URL with Reverse Geocoding API Playground. Here is a code sample that shows how to get an address when a user clicks on a Leaflet map:

map.on('click', onMapClick);
function onMapClick(e) {
if (marker) {
marker.remove();
}

const reverseGeocodingUrl = `https://api.tmaps.tn/v1/geocode/reverse?lat=${e.latlng.lat}&lon=${e.latlng.lng}&apiKey=${myAPIKey}`;

// call Reverse Geocoding API - https://www.tmaps.tn/reverse-geocoding-api/
fetch(reverseGeocodingUrl).then(result => result.json())
.then(featureCollection => {
if (featureCollection.features.length === 0) {
console.log("The address is not found ");
return;

FAQ

  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.
  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.

  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.
  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.

  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.
  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.