The Geo Nearby API returns the nearest known place (city, town, or locality) for a given geographic coordinate.
It is useful when you already have a lat/lon pair and want to resolve it into a human-readable place with metadata.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| lat | number | Required | - | Latitude of the center point |
| lon | number | Required | - | Longitude of the center point |
| radius | number | Optional | 1000 | Search radius, in meters |
| language | string | Optional | en | Language of the results, available values: nl, en, de, fr, es, it, pt, hr, cs, el, hu, pl, sv, tr |
| Property | Type | Description | |
|---|---|---|---|
name | string | The name of the nearest known place (city, town, or locality). | |
country | object | Information about the country the place belongs to. | |
└─code | string | ISO 3166-1 alpha-2 country code. | minLength: 2
maxLength: 2 |
└─name | string | Full name of the country. | |
curl "https://api.infoplaza.dev/v1/geo/nearby? \
lat=52.02 \
&lon=5.16 \
&api_key=$INFOPLAZA_API_KEY"{
"name": "Houten",
"country": {
"code": "NL",
"name": "Netherlands"
},
"latitude": 52.02833,
"timezone": "Europe/Amsterdam",
"continent": {
"name": "Europe"
},
"longitude": 5.16806
}| number |
| The latitude coordinate of the place in decimal degrees. |
timezone | string | The IANA time zone identifier for the place. |
continent | object | Information about the continent the place is located in. |
└─name | string | Name of the continent. |
longitude | number | The longitude coordinate of the place in decimal degrees. |