2016-04-07 15 views
-1

Bir adrese göre lat/lng konumu almaya çalıştığımda JSON dönüşü yanlış koordinatlar veriyor.Yanlış LAT/LNG, API tarafından döndürüldü

API Bağlantı: http://maps.google.com/maps/api/geocode/json?address=Av.+Major+Williams,+1132+Boa+Vista+RR+Brazil&sensor=false

JSON: Ben adresini yeri doğrudur Google Maps'te "Av Binbaşı Williams, 1132 Boa Vista RR Brasil" ayarlarsanız

{ 
    "results" : [ 
     { 
     "address_components" : [ 
      { 
       "long_name" : "Boa Vista", 
       "short_name" : "Boa Vista", 
       "types" : [ "locality", "political" ] 
      }, 
      { 
       "long_name" : "Boa Vista", 
       "short_name" : "Boa Vista", 
       "types" : [ "administrative_area_level_2", "political" ] 
      }, 
      { 
       "long_name" : "Roraima", 
       "short_name" : "RR", 
       "types" : [ "administrative_area_level_1", "political" ] 
      }, 
      { 
       "long_name" : "Brasil", 
       "short_name" : "BR", 
       "types" : [ "country", "political" ] 
      } 
     ], 
     "formatted_address" : "Boa Vista, Boa Vista - RR, Brasil", 
     "geometry" : { 
      "bounds" : { 
       "northeast" : { 
        "lat" : 2.8686558, 
        "lng" : -60.6236814 
       }, 
       "southwest" : { 
        "lat" : 2.7457422, 
        "lng" : -60.7694416 
       } 
      }, 
      "location" : { 
       "lat" : 2.8235098, 
       "lng" : -60.6758331 
      }, 
      "location_type" : "APPROXIMATE", 
      "viewport" : { 
       "northeast" : { 
        "lat" : 2.8686558, 
        "lng" : -60.6236814 
       }, 
       "southwest" : { 
        "lat" : 2.7457422, 
        "lng" : -60.7694416 
       } 
      } 
     }, 
     "partial_match" : true, 
     "place_id" : "ChIJ26Sqy8oFk40RRV_XqcdlLrc", 
     "types" : [ "locality", "political" ] 
     } 
    ], 
    "status" : "OK" 
} 

: 2.8291068 lat, Ing -60.6711494

cevap

İlgili konular