Tools/weather/geocode

weather/geocode

Resolve a city or place name into coordinates to feed the forecast tool.

0.1 credits / call ($0.0001)
charged on success

What it does

Converts a place name into latitude/longitude candidates, so a plain city name can be turned into the coordinates the forecast tool needs.

Primary use cases

  • Getting coordinates for a city before requesting its weather.
  • Disambiguating places with the same name across countries.

Good to know

Use "City,state,country" for precision (state applies to the US), e.g. "London,GB". Returns up to limit matches.

Parameters

qstringrequired

Place name, optionally as "City,state,country" (state is US-only), e.g. "London,GB".

limitintegeroptionaldefault: 5

Number of candidate matches (1-5).

weather/geocode — Faro