javascript - Why google map api and google map lat long differ -
i'm using google map api in project , code calling google api
google.maps.event.adddomlistener(window, 'load', intilize); function intilize() { var autocomplete = new google.maps.places.autocomplete(document.getelementbyid("txtautocomplete")); google.maps.event.addlistener(autocomplete, 'place_changed', function () { var place = autocomplete.getplace(); var location = "address: " + place.formatted_address + "<br/>"; location += "latitude: " + place.geometry.location.lat() + "<br/>"; location += "longitude: " + place.geometry.location.lng(); document.getelementbyid('lblresult').innerhtml = autocomplete.getplace(); }); }
that code return me lat long address "basic english school, old city rampuriya, bikaner, rajasthan 334001, india" 28.0142902 73.2970368
but when checked address on google map lat long 28.014326,73.2948053, why both service returning differ results.
Comments
Post a Comment