GeoDB Cities

FREEMIUM
Verified
โœ“
By Michael Mogley | Updated 13 days ago | Data
Popularity

9.9 / 10

Latency

62ms

Service Level

100%

Health Check

100%

Back to All Discussions

Search city by name

Rapid account: Coach 72900
coach72900
3 years ago

Hi Guys, Am I missing something or there is no easy way to search a city just by name? In case that wouldnโ€™t be possible, How would be the easiest way to achieve that? Get the wikidata from each city looks a bit tedious to accomplish such an easy task. Thanks

Rapid account: Brunolopesbrandao
brunolopesbrandao Commented 2 years ago

Hi everyone,

When I try to search a city with namePrefix the endpoint search across region field and not in name or city field.

Please try namePrefix=Sรฃo P and language=pt

Thanks

Rapid account: Wirefreethought
wirefreethought Commented 3 years ago

Hi. The way to search by name is to use the namePrefix param. This will try to match the prefix you give on all words in the name (at the start of each word). http://geodb-cities-api.wirefreethought.com/docs/guides/getting-cities-for-name-prefix

Join in the discussion - add comment below:

Login / Signup to post new comments