GeoDB Cities

免费增值
Verified
通过 Michael Mogley | 已更新 15日前 | Data
人气

9.9 / 10

延迟

61ms

服务等级

100%

Health Check

100%

返回所有讨论

Search city by name

Rapid account: Coach 72900
coach72900
3年前

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 3年前

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

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论