Adding google maps markers by an address instead of coordinates?

39,236

Solution 1

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.

Solution 2

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/

Share:
39,236
as3student
Author by

as3student

Updated on November 07, 2020

Comments

  • as3student
    as3student over 3 years

    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"