Referential

FREEMIUM
Verified
By Referential-IO | Updated il y a 15 jours | Location
Popularity

9.7 / 10

Latency

41ms

Service Level

100%

Health Check

N/A

Back to All Discussions

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

Rapid account: Spectrum 7 Admin
spectrum7-admin
il y a 2 ans

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 il y a 2 ans

The limit of results has been incrased to 1000.

Rapid account: Kgkarski
kgkarski Commented il y a 2 ans

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 il y a 2 ans

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 il y a 2 ans

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 il y a 2 ans

any updates

Rapid account: Spectrum 7 Admin
spectrum7-admin Commented il y a 2 ans

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 il y a 2 ans

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?

Join in the discussion - add comment below:

Login / Signup to post new comments