GeoDB Cities

フリーミアム
Verified
よって Michael Mogley | 更新済み vor 21 Tagen | Data
人気

9.9 / 10

レイテンシー

54ms

サービスレベル

100%

Health Check

100%

すべてのディスカッションに戻る

Search city by name

Rapid account: Coach 72900
coach72900
vor 3 Jahren

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 vor 2 Jahren

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 vor 3 Jahren

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

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿