I’m trying to get longitude and latitude values from the google maps api with an address, however it doesn’t seem to be returning any value. Is there a problem with my syntax?
var point = GClientGeocoder.getLatLng('1600 Pennsylvania Avenue NW Washington, DC 20500');
alert(point);
This works (provided you have the correct API key, subject to the 2500 requests/day rate limit):
You seem to be calling a function of
GClientGeocoder, where you need to create anew GClientGeocoder()and call its function.