Logo
developer platform
Docs
API
Pricing
Showcase
API Overview
API Reference
Geocoding
Geocoding NearbyGeocoding SearchPort ListPort Info
Weather Core
ForecastRadarClimateWarnings
Weather Timeseries
Timeseries ModelsTimeseries Point ForecastTimeseries Route Forecast
Weather Ensemble
Ensemble ModelsEnsemble Point ForecastEnsemble Route Forecast
Marine Timeseries
Timeseries ModelsTimeseries Point Forecast
Marine Ensemble
Ensemble ModelsEnsemble Point Forecast
Vessels
Vessel SearchVessel InfoVessel LocationVessel Location History
Observations
Observations InfoObservations Latest
Lightning
Lightning LiveLightning History
Earthquakes
Earthquakes
Tropical Storms
Tropical Storms
Mobility Traffic (NL Only)
Traffic OverviewTraffic Geo
Mobility Transit (NL Only)
Transit PlannerTransit Planner MixerTransit Stops NearbyTransit Stop Departures
Developer Infoplaza (obsolete)
Weather ClimateWeather Forecast
Archive
Test ErrorWeather Climate (old)

Geocoding Nearby

GET
https://api.infoplaza.dev/v1/geo/nearby

Description

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.

Parameters

ParameterTypeRequiredDefaultDescription
latnumberRequired-Latitude of the center point
lonnumberRequired-Longitude of the center point
radiusnumberOptional1000Search radius, in meters
languagestringOptionalenLanguage of the results, available values: nl, en, de, fr, es, it, pt, hr, cs, el, hu, pl, sv, tr

Response

PropertyTypeDescription
name
stringThe name of the nearest known place (city, town, or locality).
country
objectInformation about the country the place belongs to.
└─code
stringISO 3166-1 alpha-2 country code.
minLength: 2 maxLength: 2
└─name
stringFull name of the country.

Example Request

curl "https://api.infoplaza.dev/v1/geo/nearby? \
     lat=52.02 \
     &lon=5.16 \
     &api_key=$INFOPLAZA_API_KEY"

Example Response

{
  "name": "Houten",
  "country": {
    "code": "NL",
    "name": "Netherlands"
  },
  "latitude": 52.02833,
  "timezone": "Europe/Amsterdam",
  "continent": {
    "name": "Europe"
  },
  "longitude": 5.16806
}
latitude
number
The latitude coordinate of the place in decimal degrees.
timezone
stringThe IANA time zone identifier for the place.
continent
objectInformation about the continent the place is located in.
└─name
stringName of the continent.
longitude
numberThe longitude coordinate of the place in decimal degrees.