GeoDB Cities

FREEMIUM
Verified
Por Michael Mogley | Atualizado 4 дня назад | Data
Popularidade

9.9 / 10

Latência

88ms

Nível de serviço

100%

Health Check

100%

Voltar para todas as discussões

Search city by name

Rapid account: Coach 72900
coach72900
2 года назад

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 года назад

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 2 года назад

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

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários