Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Geocoding stopped to work for Crimea, Ukraine

I've discovered very strange issue. Geocoding API suddenly stopped to work for Crimea coordinates. Example: Simferopol city:

http://maps.googleapis.com/maps/api/geocode/json?language=en&latlng=44.957844%2C34.104996&sensor=false

But it works for any other place in Ukraine and Russia. Example: Kiev, Ukraine

http://maps.googleapis.com/maps/api/geocode/json?language=en&latlng=50.463405%2C30.481567&sensor=false

Recently the API worked properly. Please tell, is it the Google restriction due to political events in Ukraine? Should the service work again, and when? Our application critically depends on user's geocoded location, and this issue blocks the workflow.

Thanks a lot!

like image 639
Dmitry Salnikov Avatar asked Apr 22 '14 09:04

Dmitry Salnikov


3 Answers

Yes, it's a restriction due to political events. I got this answer from Google Support:

Since Crimea currently is a disputed territory (http://en.wikipedia.org/wiki/List_of_territorial_disputes), Geocoder results will currently not return results for reverse geocoding.

like image 156
Ketmo Avatar answered Oct 16 '22 10:10

Ketmo


Good news. As of January 2019 Google resolved an issue with ZERO_RESULTS in disputed areas.

You can see that now they return results, but country name doesn't appear in responses. This aligns with approach that they had in forward geocoder. Disputed areas don't have country names.

The following request now returns Simferopol

https://maps.googleapis.com/maps/api/geocode/json?latlng=44.957844%2C34.104996&key=YOUR_API_KEY

The same result in geocoder tool:

https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/utils/geocoder/#q%3D44.957844%252C34.104996

I hope this helps!

like image 29
xomena Avatar answered Oct 16 '22 10:10

xomena


Google (reverse) geocoding service stopped working for Crimea due to territorial dispute.

A not-trivial, but future-proof technical solution is to create an abstraction API over geocoding services rather than using a specific service directly in your app.

This way you reduce dependency on a specific service. For example, you can use Yandex geocoding service if the coordinates are within the bounding rectangle of Crimea:
http://geocode-maps.yandex.ru/1.x/?geocode=34.104996,44.957844&lang=en-US

Another benefit of an abstraction level is that you may very quickly switch to a different service if your "main" service goes down (for whatever reason).


Please note that support of certain regions or countries by a software product may be subject to US / EU sanctions. Support of any region with a territorial dispute is a potential problem.

like image 1
Alex Shesterov Avatar answered Oct 16 '22 09:10

Alex Shesterov