How to get lat and long with address

1,899 views
Skip to first unread message

rbotella

unread,
Feb 15, 2011, 11:29:07 AM2/15/11
to Google Maps JavaScript API v3
Hello,

I have to change to GoogleMaps API v3 but I have the addresses of
the form:

"38.820468, -0.601931"
"41.294833,1.255403"
"Calle de Luis Buñuel, 35"
"Bracale of Murteretes Street 03110 Mutxamel"
...

As I have no coordinates of these addresses to use:
new google.maps.LatLng (latitude, longitude); >V3

Before i make that with:

geocoder2.getLatLng (
address,
function (point) {
if (! point) {
alert ("no point ");
Else {}
....
}
}

As I can do the same but with the v3 version.

KeithB

unread,
Feb 15, 2011, 3:03:16 PM2/15/11
to google-map...@googlegroups.com
v3 also has a geocoding service. Here's a good example of how to use: http://code.google.com/apis/maps/documentation/javascript/examples/geocoding-simple.html

geoco...@gmail.com

unread,
Feb 15, 2011, 3:05:00 PM2/15/11
to Google Maps JavaScript API v3
Is there a question in there? v3 of the API includes a geocoder just
like v2 does, you need to read the documentation to learn how to use
it (there are examples).

-- Larry
Reply all
Reply to author
Forward
0 new messages