1

I use Google Maps API v3 and it works fine in all places except for the Israeli West-Bank (territories).

In the following code:

geocoder.geocode({ 'latLng': latLng }, function(results, status) {});

When I request information for any Israeli West-Bank location, I get status: google.maps.GeocoderStatus.ZERO_RESULTS

Any idea why? I see that in other google maps applications it shows information about Israeli West-Bank places. How do they do it? Is there a bypass?


Here is example of location that returns ZERO_RESULTS: 32.105325, 35.172491 (It's in Ariel, Israel)

Dima L.
  • 3,443
  • 33
  • 30
  • An example of location that returns ZERO_RESULTS? – MrUpsidown Jun 19 '14 at 15:14
  • Btw. the geocoder request has no `latLng` property. It should be `location` to take a `LatLng` object. https://developers.google.com/maps/documentation/javascript/reference#GeocoderRequest – MrUpsidown Jun 19 '14 at 15:28
  • MrUpsidown: `geocoder.geocode()` can return results by lat,lng. See example function `codeLatLng()` on this page: https://developers.google.com/maps/documentation/javascript/geocoding – Dima L. Jun 19 '14 at 17:20
  • 1
    possible duplicate of [Google Geocoding stopped to work for Crimea, Ukraine](http://stackoverflow.com/questions/23214989/google-geocoding-stopped-to-work-for-crimea-ukraine) – Dr.Molle Jun 19 '14 at 19:26
  • Thanks Dr.Molle! It looks like Israel West Bank is same issue as Crimea... :( – Dima L. Jun 19 '14 at 20:23
  • @DimaL. Well... looking at the [documentation](https://developers.google.com/maps/documentation/javascript/reference#GeocoderRequest) it clearly states it should be `location: LatLng object` and not `latLng: LatLng object` but it seems to work with both. Up to you then ;-) – MrUpsidown Jun 20 '14 at 07:44
  • @MrUpsidown: Right, documentation doesn't mention 'latLng' property, but I used their example and it works fine for all areas except of "Disputed Territories". I just tried to replace 'latLng' property with 'location' property - doesn't make any difference, so it looks like you can use both properties... Thanks anyway! – Dima L. Jun 20 '14 at 22:19

1 Answers1

1

It looks like Google Maps won't return reverse geocoding results for disputed territories: http://en.wikipedia.org/wiki/List_of_territorial_disputes

Dima L.
  • 3,443
  • 33
  • 30