Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Geocoding API returns wrong language in response

My project requests Geocoding API for coordinates and correct full addresses in Odessa, Ukraine.

I could request response in Russian or Ukrainian language adding language=ru (language=uk) parameter to the HTTP request. Starting today I get street name in Ukrainian in response, no matter which language I specify in request.

Examples.

Request for Russian: https://maps.googleapis.com/maps/api/geocode/json?address=Пушкинская, Одесса, Украина&language=ru

Relevant part of the response:

"results" : [
  {
     "address_components" : [
        {
           "long_name" : "Пушкінська вулиця",
           "short_name" : "Пушкінська вулиця",
           "types" : [ "route" ]
        },
        {
           "long_name" : "Приморський район",
           "short_name" : "Приморський район",
           "types" : [ "sublocality_level_1", "sublocality", "political" ]
        },
        {
           "long_name" : "Одеса",
           "short_name" : "Одеса",
           "types" : [ "locality", "political" ]
        },
        {
           "long_name" : "Одесский горсовет",
           "short_name" : "Одесский горсовет",
           "types" : [ "administrative_area_level_3", "political" ]
        },
        {
           "long_name" : "Одеська область",
           "short_name" : "Одеська область",
           "types" : [ "administrative_area_level_1", "political" ]
        },
        {
           "long_name" : "Украина",
           "short_name" : "UA",
           "types" : [ "country", "political" ]
        }
     ],

Please note, that "country" and "administrative_area_level_3" fields are in Russian, as they should be, but everything else is in Ukrainian.

If I use language=uk all fields in the response are returned in Ukrainian language (as intended).

I suppose someone at Google merged Russian and Ukrainian lists, and there nothing I can do to get Russian names back on my end. So the question is more about where I should report this bug?

like image 490
Andrew Fadeev Avatar asked Nov 20 '14 20:11

Andrew Fadeev


People also ask

What happens when you exceed the Google geocoding API rate limit py4e?

According to Google's API Usage and Billing page, there is a limit of 50 requests per second. If you exceed this amount, subsequent requests to the API will fail with the OVER_DAILY_LIMIT or OVER_QUERY_LIMIT status code and the geocoded data will not be returned.

Is Google reverse geocoding API free?

Reverse Geocoding and Geolocation Service by Noggle is a free API that allows developers to embed the functionality to locate the largest city or nearest one to the latitude to longitude location.


2 Answers


I used this
https://maps.googleapis.com/maps/api/geocode/json?address=Пушкинская,%20Одесса,%20Украина&language=uk

and the response is
enter image description here



for
https://maps.googleapis.com/maps/api/geocode/json?address=Пушкинская,%20Одесса,%20Украина&language=ukr


I get this response
Using UKR

if i use

https://maps.googleapis.com/maps/api/geocode/json?address=Пушкинская,%20Одесса,%20Украина&language=en

I get this response

enter image description here

like image 60
Majid Bashir Avatar answered Sep 26 '22 02:09

Majid Bashir


You can report a geo-coding api issue here.

Hit "New Issue," and under "Template" select "Geocoding API - Bug."

Good luck.

like image 32
wahwahwah Avatar answered Sep 23 '22 02:09

wahwahwah