On Apr 14, 6:21 am, Zeeshan <[email protected]> wrote: > Thanks a lot Larry, and your examples gives me a lot of > understanding ! > > Now the point is to get the Latitude / Longitude of 8k and 100k ! > > How I can get that ? and how much time it may take to get the latitude > and longitude for both the cases ! ??
Have you tried investigating these geocoders? http://groups.google.com/group/Google-Maps-API/web/resources-non-google-geocoders -- Larry > > On Apr 14, 12:10 pm, "[email protected]" <[email protected]> > wrote: > > > On Apr 13, 8:12 pm, Zeeshan <[email protected]> wrote: > > > > Thanks a lot for both of you to comment. > > > But I m really new to this thing, can u please tell me what change in > > > the code can give me the result ? > > > > Actually, i have a database of banks and their branches, all with > > > addresses and financial details. There are 8k banks and 100k branches. > > > So their financial information keeps changing, therefore, i need to > > > upload the source file each week to keep the database updated. > > > > I tried to GeoCode at the time the data filled the database, but the > > > process was very slow, and due to google speed limit or daily geocode > > > limit, the process was stopped after 12-15 minutes and only filled > > > about 900 addresses out of 8k. So to geocode 8k and then 100k, is a > > > big problem for me. That is why i decided to GeoCode them when they > > > are requested. > > > Your page is the perfect example of why you don't want to geocode lots > > of points "on the fly", in particular if they are "known" addresses > > and don't move. > > > Here is a version of your page to which I added error checking on the > > geocode step:http://www.geocodezip.com/example_geomulti_bad.asp > > the 620 (and sometimes 500) codes are caused by exceeding the > > geocoding "speed limit". Sometimes you will get 500 errors sometimes > > you won't, I only seem to get them when I am testing locally. You > > will always get a random set of yourmarkers, butnotall of them, > > unless you add throttling (which will make the page load even slower). > > > Here is a version of your page where I pre-geocoded the addresses > > (note, one of them the geocoder returned an unknown address error for, > > I changed the address to a format it could > > resolve):http://www.geocodezip.com/example_geomulti_better.asp > > > I changed it to be an array of objects, but if you wanted to use the > > same structure as you had, you could just add the latitude and > > longitude as arguments to the showAddress call. > > > Note two things: > > 1. the page loads faster > > 2. all the points are always there > > > I think you need to rethink your assumptions. I doubt the 8k banks and > > 100k branches move weekly, maybe a few change; but those could be > > geocoded when they move and manually checked. > > > -- Larry > > > > On Apr 13, 11:38 pm, "[email protected]" <[email protected]> > > > wrote: > > > > > On Apr 13, 11:18 am, Zeeshan <[email protected]> wrote: > > > > > > Hi > > > > > > Please take a look at this page : > > > > > >http://www.usabanklocations.com/showbank.php?bank=Academy-Bank > > > > > > You can see the map Code by (View Source) > > > > > > Please let me know what is wrong in the code and why theMarkersare > > > > >notappearing. > > > > > 1. You shouldn't geocode know points everytime the page loads. See > > > > Mike Williams' explaination in his tutorial: > > > > Part 17 Geocoding multiple > > > > addresseshttp://econym.org.uk/gmap/geomulti.htm > > > > > 2. Your immediate problem is that your map is created in your onload > > > > function, after the page has loaded, but your calls to the geocoder > > > > happen inline, before the map is defined, so it is null. You can't > > > > add themarkersuntil after the map is created (and initialized with > > > > setCenter). > > > > > -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
