Reach limit when using google api geocoding
So i've followed the following tutorial:
http://docs.appery.io/tutorials/build...
I need to be able to search certain items in my DB and show them in the UI in a sorted way according to their distance from my current location = same as the tutorial
I've writen the server code and tried to test it through the appery app creator but i've encountered a problem.
After just a few times that i've ran the test i started receiving the followeing message in the trace tab of the server code:
precode
{ "error_message" : "You have exceeded your rate-limit for this API.", "results" : [], "status" : "OVER_QUERY_LIMIT" }
/code/pre
I receive this message after trying to send a request to:
precode
XHR.send("GET", "https://maps.googleapis.com/maps/api/geocode/json", {
"parameters": {
"address": restaurant.address,
"sensor": "false"
}
});
/code/pre
I've read a little in the google docs and they actually limit the number of requests you can do in a day / certain time
The questing is how do i workaround that? What can i do as i might have a lot of items that i need to check their location. It says in the tutorial to cache the coords in the DB for future use, but how do i update the DB from the server code?
Another thing that i wanted to mention about the tutorial: It says that the server code should use:
codeparamKeys = request.keys();/code
But that doesnt work as keys returns something empty. In the newer tutorials you use codevar requestBody = JSON.parse(request.body());/code
which is correct and works so please update the tutorial.