Boards.ie uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Click here to find out more x
Post Reply  
 
Thread Tools Search this Thread
02-02-2012, 11:16   #1
Wild Rover
Registered User
 
Join Date: Feb 2010
Posts: 41
Google Maps Geocoding - JS API V3

Guys,

Looking for advice to batch geocode 100+ addresses in a database to display on Google Maps using Javascript API V3, I think I'm on the wrong path geocoding them on the fly because of the 'Query_Limit' errors.

Thinking of pre-geocoding existing & any new addresses and storing the co-ordinates in the database ready for display. Anyone got advice on another way of doing it?

It's for a .Net 3.5 website.

Cheers!
Wild Rover is offline  
Advertisement
06-02-2012, 08:04   #2
Wild Rover
Registered User
 
Join Date: Feb 2010
Posts: 41
Any Google Map experts??
Wild Rover is offline  
06-02-2012, 08:22   #3
Giblet
Registered User
 
Giblet's Avatar
 
Join Date: Oct 2001
Location: Dublin
Posts: 10,602
All you need is Lat + Lng to add markers if you need to, you can then add a marker to the map using the following. (You don't need to geocode then)

Code:
var Latlng = new google.maps.LatLng(myLatitude, myLongitude);
var myOptions = {
     zoom: 12,
     center:Latlng,
     mapTypeId: google.maps.MapTypeId.ROADMAP
};            
var map = new google.maps.Map(document.getElementById("GoogleMapContainer"), myOptions);            
map.setCenter(Latlng);
var myMarker = new google.maps.Marker({
                position: Latlng,
                map: map,
                title: "Your Location"
});
var info = new google.maps.InfoWindow;
info.setContent("<strong>Some Content</strong><br />Some other Content");
info.open(map, myMarker);
So I would imagine you would need a web service or something to pull a list of Latlngs + Address info to populate more markers from your database.
This is how I do it for some of my sites, the user enters the location of some stores or whatever and some content and I pull it out and create the markers.

Last edited by Giblet; 06-02-2012 at 08:25.
Giblet is offline  
06-02-2012, 10:09   #4
Wild Rover
Registered User
 
Join Date: Feb 2010
Posts: 41
Good info, appreciate it
Wild Rover is offline  
Post Reply

Quick Reply
Message:
Remove Text Formatting
Bold
Italic
Underline

Insert Image
Wrap [QUOTE] tags around selected text
 
Decrease Size
Increase Size
Please sign up or log in to join the discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search