12

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"

Matt
  • 22,721
  • 17
  • 71
  • 112
as3student
  • 175
  • 1
  • 1
  • 9

2 Answers2

8

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/

AdamH
  • 1,378
  • 9
  • 10
5

You should read Google's developer manual on Geocoding. It explains how to convert an address to a geolocation. I recommend you try looking at the Dev manual/API/Google before posting here.

J_A_X
  • 12,857
  • 1
  • 25
  • 31
  • 7
    Check out [this question](http://stackoverflow.com/questions/7499862/how-to-geocode-an-address-into-lat-long-with-google-maps) for an actual code example. – Scott Jul 04 '13 at 03:35