Rapid account: Michael Mogley

Michael Mogley / wirefreethought

चर्चाएँ

428
Title
Created at (Click to sort ascending)
A
1
Hi sorry for the late reply. I didn't receive a notification for your question and just seeing it now. *Is there an API available that supports fetching regions based on multiple country IDs, and similarly, fetching cities based on multiple country IDs and region IDs?* The short answer is not currently. However, it IS possible to fetch cities/places for specific country IDs. *Is there a method to augment the response with additional details? For instance, when obtaining regions for a selected country, can we include the country code in the response for easier reference? .Thank you* Not in the REST API. However, you DO have this flexibilty in the GraphQL variant. See https://rapidapi.com/wirefreethought/api/geodb-cities-graphql dom. 5:15 7/4/24
A
1
Hi sorry for the late reply. I didn't receive a notification for your question and just seeing it now. All results are paged. To see the next page of results in your case, you need to bump the offset param. For example, for page 2: GET /v1/geo/countries?offset=10&limit=10 dom. 5:08 7/4/24
A
1
Hi sorry for the late reply. I didn't receive a notification for your question and just seeing it now. Are you still having these issues? If you're on the basic plan, you are being rate-limited. You should upgrade to a paid plan for production use. dom. 5:07 7/4/24
A
1
Hi sorry for the late reply. I didn’t receive a notification for your question and just seeing it now. Every country/region/city/place endpoint takes an optional **languageCode** param which currently can have one of the following values: * **de** (German) * **en** (English - DEFAULT) * **es** (Spanish) * **fr** (French) * **it** (Italian) * **ru** (Russian) * **pt** (Portuguese) * **pt_BR** (Portuguese - Brazil) For example, to get cities in French: GET /v/geo/places?types=CITY&languageCode=fr Note that results in languages other than English are currently not fully guaranteed, but they should exist for major cities. In cases where the requested language translation isn't available, the service will default the result to English. dom. 5:00 7/4/24
A
1
It's probably being skipped by the import because the Wikidata entry is missing a name. jue. 5:28 18/1/24
A
2
I misread your question. This link appears to work: https://rapidapi.com/blog/how-to-use-an-api-with-php/ mié. 6:25 17/1/24