Adding google maps markers by an address instead of coordinates?

as3student picture as3student · Apr 12, 2011 · Viewed 39k times · Source

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"

Answer

AdamH picture AdamH · Apr 12, 2011

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/