GeoDB Cities

फ्रीमियम
Verified
द्वारा Michael Mogley | अपडेट किया गया 21 days ago | Data
लोकप्रियता

9.9 / 10

लेटेंसी

54ms

सेवा का स्तर

100%

Health Check

100%

सभी चर्चाओं पर वापस जाएं

How to find out which city has which name in which language?

Rapid account: Fleet Admiral Jakob
FleetAdmiralJakob
a month ago

Hi, I have an application where you can change the language. I want to show the user, base on which language he chose the city in his language. How is this achievable with this API?

Rapid account: Wirefreethought
wirefreethought Commented 25 days ago

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.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें