Get started
Place lookup in Duaer
In Duaer: Turn a place name into coordinates, country, region, time zone, population, and elevation from the GeoNames gazetteer via Open-Meteo. One successful search uses 1 credit.
What you get
Duaer Place lookup turns a city, town, or place name into coordinates and basic facts. Several places can share a name, so Duaer returns the best matches first; add country to narrow them.
Pick Duaer Data → Place lookup in the node creator, or open the data market. Related: Elevation, Weather forecast.
When to use it
- Get latitude and longitude before calling a point-based source.
- Tell apart places that share a name, such as Springfield.
When not to use it
- Weather at a place. Use Weather forecast.
- Ground height only. Use Elevation.
Search on the canvas
- Open the node creator and pick Duaer Data → Place lookup.
- Fill Place (such as Springfield). Optional: Country (such as US).
- Limit defaults to 10, max 20. Execute.
A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.
Call the API
- GET https://api.duaer.com/v1/data/geocoding?place=Springfield&country=US
- Authorization: Bearer <Duaer key>
The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.
Call skill
Same text as Copy skill.
---
name: duaer-geocoding
description: >-
Duaer Place lookup. Turn a place name into coordinates, country, region, time zone, population, and elevation from the GeoNames gazetteer via Open-Meteo.
One successful search uses 1 Duaer credit.
---
# Duaer Place lookup
Duaer Place lookup turns a city, town, or place name into coordinates and basic facts. Several places can share a name, so Duaer returns the best matches first; add `country` to narrow them.
## When to use
- Get latitude and longitude before calling a point-based source.
- Tell apart places that share a name, such as Springfield.
## When not to use
- Weather at a place. Use https://skills.duaer.com/weather.md.
- Ground height only. Use https://skills.duaer.com/elevation.md.
## Call
`GET https://api.duaer.com/v1/data/geocoding?place=Springfield&country=US`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide `place`.
- `place` — City, town, or place name, such as Springfield.
- `country` — Optional. Two-letter country code, such as US.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/geocoding?place=Springfield&country=US` — places called Springfield in the United States.
- `GET https://api.duaer.com/v1/data/geocoding?place=Kyoto&limit=1` — the best match for Kyoto.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `name`, `country`, `countryCode`, `region`, `district` — place and its administrative areas.
- `latitude`, `longitude`, `timezone` — position and IANA time zone.
- `population`, `elevationM` — people and height above sea level, when known.
- `featureCode`, `geonameId` — GeoNames feature class and id.
Fields without a value are left out.
## Credits
A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/elevation.md — Duaer Elevation
- https://skills.duaer.com/weather.md — Duaer Weather forecast
Questions
How many credits does a Place lookup search use in Duaer?
One credit when Duaer returns rows. A search with no rows or an error uses 0.
What if several places share a name in Duaer Place lookup?
Add `country` (a two-letter code) to Duaer Place lookup. Rows come best match first.
In this section
Elevation in Duaer
In Duaer: Ground height above sea level for a place or coordinates, from the Copernicus 90 m digital elevation model. One successful search uses 1 credit.
Get startedWeather forecast in Duaer
In Duaer: Daily forecast for any city or coordinates, up to 16 days: conditions, high and low, rain amount and chance, and peak wind, from Open-Meteo. One successful search uses 1 credit.