Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Google Maps help

  • 12-04-2011 1:34am
    #1
    Registered Users, Registered Users 2 Posts: 7,893 ✭✭✭


    Hi,

    I have an XML file with ~50 sets of locations (lat/long).

    When I run my code I get a "GoogleMapsError" saying "Error 620: G_GEO_TOO_MANY_QUERIES".

    Google allows about 2500 requests per day apparently, so it seems even on my first run if this code, I went over the limit! Its probably more to do with the fact that I'm using a shared hosting provider, to be honest.

    Anyway, the piece of code I'm using is for getting directions to the nearest location, given the users current location (GPS on their phone). It loops until EOF, gets each set of coords, and sends a request to Google to see if there is less of a distance between that set of coords and the previous set.

    My question is, does anyone know of a way I can loop through all 50 locations, take their coords and pass all 50 of them to Google in one go, instead of looping through 50 times like I'm currently doing?

    Thanks.


    EDIT: I'm just thinking actually. I never put my API Key in anywhere. Maybe thats the issue. Does anyone know how to include it in python??


Advertisement