I'm completely new to this and have been dabbling in Google Maps for
the past week and got a small test script working for myself.  But as
I read more Google Maps FAQs and documentation, the more confused I
get.  For my job I have to develop a map that will read and mark
around 500 street addresses read from a file that pretty much stays
the same but is updated every night with any new addresses that might
have been added during the last 24 hours.

Which service do I use - API V3 or Geocoding API?
Is Geocoding API for premier clients only?

Also...

For my test script I copied and pasted from examples I found in here
in example code and possibly someone's website.  I thought the actual
geocoding lines (with star * preceding) were Geocoding API, but now as
I re-read the documentation I feel that this is API V3 script.  Is it
API V3?

Thanks you.

  function initialize() {
        //Set up Geocoder
   * geocoder = new google.maps.Geocoder();
    var myLatlng = new google.maps.LatLng(-27.4747354, 153.0272332);
    var myOptions = {
      zoom: 16,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var map = new
google.maps.Map(document.getElementById("map_canvas"), myOptions);

    downloadUrl("test2_xml.xml", function(data) {
    var address =
data.documentElement.getElementsByTagName("CONTACT_ADDR")
[0].childNodes[0].nodeValue;

     //send address to Geocoder
    *geocoder.geocode( {'address': address}, function(results, status)
{
    *   if (status == google.maps.GeocoderStatus.OK) {
    *           map.setCenter(results[0].geometry.location);
    *           var marker = new google.maps.Marker({
    *           map:map,
    *           position:results[0].geometry.location
                });
        } else {
                alert("Geocode was not successful for the following reason:
"+status);
        }
    });
   });
}

-- 
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.

Reply via email to