Referential

FREEMIUM
Verified
Durch Referential-IO | Aktualisiert 14 दिन पहले | Location
Popularität

9.7 / 10

Latenz

41ms

Service Level

100%

Health Check

N/A

Zurück zu allen Diskussionen

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?

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen