GeoDB Cities

부분 유료
Verified
분류별 Michael Mogley | 업데이트됨 13일 전 | Data
인기

9.9 / 10

지연 시간

62ms

서비스 수준

100%

Health Check

100%

모든 토론으로 돌아가기

'City of Brussels' <> 'Brussels'

Rapid account: Yumaheymans
yumaheymans
2년 전

GET /v1/geo/cities?countryIds=be&namePrefix=brussels&sort=-population

Gives ‘City of Brussels’

But in many systems of record that we want to match with, the location is often spelled just ‘Brussels’.

Is there a way to correct for this?

Is there an option to assume the unofficial or more popular city name?

Rapid account: Info Fdyhm 5 Zj A
info-fdyhm5ZjA Commented 2년 전

Thanks, that helps to better understand GeoAPI’s name retrieval.

Having an option in GeoAPI to get the most popular or shortest version of the name would be great.

When you’ve had time to add this, would be great to get notified:
yuma@herohunt.ai

We’re currently a subscription client and scaling up.

Rapid account: Wirefreethought
wirefreethought Commented 2년 전

Good question. GeoDB uses Wikidata as the source of truth in these matters. Unfortunately, in this case, the Wikidata entry (https://www.wikidata.org/wiki/Q239) has City of Brussels as the official name. It does not appear to have a ‘popular name’ field, at least for English. The options are to go through the Wikidata editorial process to try to change the official name to Brussels. But since this entry is locked, a simpler (perhaps slightly hacky) solution would be to excise ‘City of’ from the returned name, if present. You could have a small name normalization method in your code that would filter out this and other generic words from city names you receive. I could also perhaps provide this as an option in the query, but my plate is currently full.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입