Limitations and recommendations
Please note: this service is provided free of charge, but with some limitations. The service does not guarantee 100% uptime and is provided "as is". We are not responsible for downtime or unavailability of the service.
- Maximum 2 requests per second (do not use this service for bulk requests)
- Link to our service if you use it in public projects
- It is not recommended to use this service in commercial products that require high reliability. For commercial use it is better to deploy your own Nominatim instance.
Description and examples
The reverse method converts coordinates (latitude, longitude) into an address or place name.
Endpoint
GET https://geolocation-api.koyu.tech/reverse?lat={latitude}&lon={longitude}&format={format}&zoom={zoom}&addressdetails={addressdetails}Request parameters
| Parameter | Required | Description | Default value |
|---|---|---|---|
lat | Yes | Latitude (in degrees) | - |
lon | Yes | Longitude (in degrees) | - |
format | No | Response format (json, xml) | json |
zoom | No | Detail level (0-18). The higher the value, the more detailed the returned address | 13 |
addressdetails | No | Include address details (0 or 1) | 1 |
accept-language | No | Preferred language of the result (e.g. en-US, ru-RU, etc.) | ru-RU |
The zoom parameter determines the level of detail of the returned address. The higher the value, the more detailed address information is returned. The value roughly corresponds to the zoom level in mapping frameworks such as Leaflet.js or OpenLayers.
| Zoom value | Address detail |
|---|---|
3 | Country |
5 | State/region |
8 | County |
10 | City |
12 | City/district |
13 | Village/suburb |
14 | Neighbourhood |
15 | Any settlement |
16 | Major streets |
17 | Major and minor streets |
18 | Buildings |
Note:
- The higher the
zoomvalue, the longer the search takes! - Changing the
zoomlevel can affect results, especially near administrative boundaries. For example, the nearest building may be in one district while the nearest street is in another.
Request example
GET https://geolocation-api.koyu.tech/reverse?lat=54.981231&lon=73.393275&zoom=13&format=jsonResponse example (JSON)
{
"place_id": 15380669,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
"osm_type": "node",
"osm_id": 4142370528,
"lat": "54.988212",
"lon": "73.4011656",
"class": "place",
"type": "suburb",
"place_rank": 19,
"importance": 0.14667666666666662,
"addresstype": "suburb",
"name": "Куйбышевский",
"display_name": "Куйбышевский, Центральный административный округ, Omsk, Omsk Oblast, Siberian Federal District, 644000, Russia",
"address": {
"suburb": "Куйбышевский",
"city_district": "Центральный административный округ",
"city": "Omsk",
"state": "Omsk Oblast",
"ISO3166-2-lvl4": "RU-OMS",
"region": "Siberian Federal District",
"postcode": "644000",
"country": "Russia",
"country_code": "ru"
},
"boundingbox": [
"54.9682120",
"55.0082120",
"73.3811656",
"73.4211656"
]
}Code examples
JavaScript
async function reverseGeocode(lat, lon) {
const response = await fetch(`https://geolocation-api.koyu.tech/reverse?lat=${lat}&lon=${lon}&format=json`);
const data = await response.json();
console.log(data.display_name);
return data;
}
// Example call
reverseGeocode(54.981231, 73.393275);PHP
$response = file_get_contents('https://geolocation-api.koyu.tech/reverse?lat=54.981231&lon=73.393275&addressdetails=1&zoom=13&format=json');
$json = json_decode($response, true);Python
import requests
def reverse_geocode(lat, lon):
url = f"https://geolocation-api.koyu.tech/reverse?lat={lat}&lon={lon}&format=json"
response = requests.get(url)
data = response.json()
print(data['display_name'])
return data
# Example call
reverse_geocode(54.981231, 73.393275)Self-hosted service
If you need your own reliable geocoding service, you can set it up according to the official Nominatim documentation: https://nominatim.org/release-docs/latest/
Or you can contact us using the details in the footer.
License: Data is provided under the ODbL license from OpenStreetMap.
This page does not use cookies and does not collect any metrics.
