Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding google maps markers by an address instead of coordinates?

In my Flex project, can I add markers by its address instead of this:

var myGeographicCoordinates:LatLng = new LatLng(myLatitude, myLongitude);

for example add marker by "Paris, France"

like image 961
as3student Avatar asked Apr 12 '11 19:04

as3student


1 Answers

I don't think you can do so directly. Instead you need to geocode the address and then use a LatLng to store the result.

Check out google's geocoding api here:

http://code.google.com/apis/maps/documentation/geocoding/

like image 174
AdamH Avatar answered Sep 25 '22 00:09

AdamH