Google Maps - Reserve Geocode -> Error "invalid label"
Posted
by Newbie
on Stack Overflow
See other posts from Stack Overflow
or by Newbie
Published on 2010-05-28T09:35:00Z
Indexed on
2010/05/28
9:41 UTC
Read the original article
Hit count: 340
Hello! I have the coordinates of my marker. Now I want to get the address of the marker. So I searched the web and found google maps reserve geocode. Now I tried to do the following:
$.getJSON('http://maps.google.com/maps/api/geocode/json?latlng='+point.lat()+','+ point.lng() +'&key='+apiKey+'&sensor=false&output=json&callback=?',
function(data) {
console.log(data);
});
When I try to show the address, meaning getting the json, firebug throws the following error:
invalid label
on
"status": "OK",\n
I searched a lot, but didn't find an answer solving my problem. Can you tell me whats wrong with my code?
Is there another way to get the address data for the coordinates?
© Stack Overflow or respective owner