Referential

부분 유료
Verified
분류별 Referential-IO | 업데이트됨 8 दिन पहले | Location
인기

9.7 / 10

지연 시간

40ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Is there a limit to the number of cities that are being returned?

Rapid account: Spectrum 7 Admin
spectrum7-admin
2 वर्ष पहले

Whenever I query for a list of cities for a specific state of a country, I get only 250 items. IS there a way that this can be overridden?

Rapid account: Kgkarski
kgkarski Commented 2 वर्ष पहले

The limit of results has been incrased to 1000.

Rapid account: Kgkarski
kgkarski Commented 2 वर्ष पहले

I would also recommend to include the “sort” parameter and sort on “population” to get the largest cities in the list first as it’s more probable your user is in a larger city than a smaller one.

Rapid account: Kgkarski
kgkarski Commented 2 वर्ष पहले

spectrum-7-admin, one suggestion I can provide at this time is to use the “prefix” query param which does a “starts with” search on name in your chosen language. So, as your user starts typing, you can re-query the API for all cities or states which starts with the character(s) your user has entered and then get a new list of max 250 cities. Would that work?

Rapid account: Spectrum 7 Admin
spectrum7-admin Commented 2 वर्ष पहले

I have been waiting for more than 20 days to know if this issue can be resolved or not. Request an update.

Rapid account: Spectrum 7 Admin
spectrum7-admin Commented 2 वर्ष पहले

any updates

Rapid account: Spectrum 7 Admin
spectrum7-admin Commented 2 वर्ष पहले

I need to let the user choose country and then the state and then the city. Since this is getting limited, the user is not able to view all the cities associated with a state. Can it be overridden?
Regards

Rapid account: Kgkarski
kgkarski Commented 2 वर्ष पहले

yes, currently the api is limited to this count due to past scraping activity. however, open to discussing overrides. would love to know your use case?

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

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