Hi there, Yes, you definitely can. This can be accomplished with the use of our Geocoding service in the API: http://code.google.com/apis/maps/documentation/v3/services.html#Geocoding
Our geocoder allows you to retrieve a lat/lng coordinate against any given address such as the one you described. Take a look at the Geocoder documentation above, give it a shot, and reply back if you run into any issues. Hope this helps, Dann On Tue, Apr 20, 2010 at 10:49 AM, Amber Computers < [email protected]> wrote: > Hello, > > We have searched very hard to try and find a clear answer to this very > simple question. In our map below all our markers are defined by Lat/ > Long coordinates. We would like to add another marker by using address > information only. We understand that the variable is described > something like var address = "crawley,uk" however, we have not been > able to make this work. Is it possible to add a marker by just adding > address information and not Lat/Long coordinates? > > > Example: > > function initialize() { > var Latlng = new google.maps.LatLng(51.110174, -0.067656); > var A1 = new google.maps.LatLng(51.121902, -0.007384); > var A2 = new google.maps.LatLng(51.111358, -0.068728); > var A3 = new google.maps.LatLng(51.067017, -0.063566); > var myOptions = { > zoom: 10, > center: Latlng, > mapTypeId: google.maps.MapTypeId.ROADMAP > } > var map = new > google.maps.Map(document.getElementById("map_canvas"), myOptions); > > var marker = new google.maps.Marker({ > position: Latlng, > map: map, > title:"Centre", > icon: "images/a.gif" > }); > > var marker1 = new google.maps.Marker({ > position: A1, > map: map, > title:"A1 text",}); > > var marker2 = new google.maps.Marker({ > position: A2, > map: map, > title:"A2 text",}); > > var marker3 = new google.maps.Marker({ > position: A3, > map: map, > title:"A3 text",}); > > > > google.maps.event.addListener(map, 'zoom_changed', function() { > if (map.getZoom() > 13) { > map.setZoom(13);}}) > > google.maps.event.addListener(map, 'zoom_changed', function() { > if (map.getZoom() < 10) {map.setZoom(10);} > > }) > } > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- Daniels Lee Developer Programs Engineer Google, Inc. 345 Spear Street San Francisco, CA 94105 650 253 0967 -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
