Skip to content

v0.2.2: geocode input-guidance fix, country filter

Choose a tag to compare

@cyanheads cyanheads released this 06 Jul 23:54
v0.2.2
c7e37b2

geocode input-guidance fix, country filter

Resolves #15 — description and no_results recovery no longer imply nonexistent country/admin1 inputs.

Added:

  • openmeteo_geocode gains a country input (ISO 3166-1 alpha-2) mapped to the upstream countryCode filter, for disambiguating same-named places. (#15)

Fixed:

  • Description and no_results recovery no longer imply country/admin1 are inputs — both are output-only result fields. Callers are steered to bare place names; recovery now distinguishes an admin qualifier (drop it) from a physical feature/landmark outside the populated-places index (search the nearest town). (#15)
  • README corrected: no-match throws no_results, not an empty array.

124 tests pass; bun run devcheck clean.

CHANGELOG v0.2.2