Hey Steve- Are you using ClientGeocoder to add the addresses to the map? You should really only use that for user-entered addresses. For addresses you already know, you should use our HTTP geocoding service. The service has a max QPS, and will send a 620 status code when the quota has been gone over for that second. So, you need to time your geocodes so that you put in a delay when you encounter that status code.
This article gives timing tips and sample code for geocoding in PHP: http://code.google.com/apis/maps/articles/phpsqlgeocode.html I can point you to examples of doing this using GClientGeocoder in the JS API, but I'd strongly warn against doing client-side geocoding of many addresses. Hope that helps! - pamela On Sat, Dec 6, 2008 at 1:34 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hey everyone, > > I am attempting my first map in Flash and so far everything has worked > great. But, I'm running into one problem. I'm adding about 350 markers > to the map. When I add them, about 125 fail. Of the failures, about > 66% of them are just bad data (which we're working to correct). But > the remaining 33% are completely legitimate addresses that come back > with single point results when manually searched through Google maps. > Does anyone know why this would happen? > > Background: > Here's the URL so you can see what I'm doing. The data is actually > being pulled into Flash from an Excel file via XML. I've checked the > import and everything works great. You can even see the data in the > "List by State" tab. > URL: http://vistive.osbardigital.com/processors_elevators.html > > 1. First, I just pulled all the addresses from the XML and ran through > them using a FOR loop. Worked quickly but had about a 30% fail rate. > Of the 30%, about 30% of those were legitimate. So, of 350, about 30 > legitimate addresses would fail. > > 2. My first thought after searching the forums was that I was making > too many requests at one time. So, I changed the request method so > that it will not make another request until the first one finishes. > Seriously sucked. Not only did it take 1-2 minutes to get through all > 350 markers but I still had a fail rate of about 30%. (That's the > version that is posted online now.) > > 3. Then I switched it so that all my addresses are added to a queue. I > run through the queue popping addresses off, adding them and, if they > fail, shifting them back onto the queue. I run through the list > several times only processing the failures trying to increase my > success rate. Also works quickly but stablalizes after about 2 passes > with the exact same fail rate. > > Now, here's the weird part. If I try this about 10 times in a row, I > will get the exact same fail rate. (As of last night, it was 127 of > 336) But, if I wait about an hour and try again, I will get a > completely different fail rate. (As of this morning, it is 280 out of > 336) I'm guessing Google is caching the results somehow but I haven't > seen anything on any of the forums. Does anyone know? > > Here are a few examples of legitimate addresses that failing: > 605 12th street Aurora NE 68818 > 411 6th Street Cedar Rapids IA 52401 > 108 N Adams St Harvard NE 68944 > 100 Wall St Cairo OH 45820 > 647 Hartford St Trumbull NE 68980 > > I am seriously at my wits end. I've searched the forums, the web and > everything else trying to figure out why this might be failing with > legitimate addresses. I would be more than happy to send anyone the > complete code if they want to take a look. > > Thanks a million for any help. I'm really hoping I'm just doing > something stupid because it's my first try. > > Steve > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
