August 12, 2015 at 12:35 am #16117karenoconnellParticipant
I am unable to use the geocode function successfully – it continually returns an error stating that the call exceeds the quota limit. I am only in test mode and refreshing test maps a few times a day so this should not be the case. I have created an API key in the Google Developers’ Console also to see if it can overcome the issue but there does not appear to be anywhere within the settings or the function call to assign a key for the Geocode API which would enable overcoming the quota limit for calls. Any ideas as to how to overcome this – it has not successfully worked for me and it is the reason I purchased your plugin.
This is the code I am testing
$collect_from = $data[‘collect_from_address’];
$collect_from_address = explode(“,”,$collect_from);
$collect_from_town = $collect_from_address;
$deliver_to = $data[‘deliver_to_town’];
$mymap = new Mappress_Map(array(“width” => 600));
$mypoi_1 = new Mappress_Poi(array(“title” => “Collection Point”, “body” => $collect_from_town, “address” => $collect_from_town));
$mypoi_2 = new Mappress_Poi(array(“title” => “Delivery Point”, “body” => $deliver_to, “address” => $deliver_to));
$mymap->pois = array($mypoi_1,$mypoi_2);
KarenAugust 12, 2015 at 2:19 am #16118ChrisKeymaster
If you’re on a shared server, then another user on that server may have reached the geocoding limit. There’s some information about this problem in the documentation and the FAQ.
I was about to tell you you’re out of luck with that server, but I just checked Google’s docs and they seem to have changed their rules.
Previously the geocoder didn’t even accept an API key. The key only affected the number of maps that could be displayed. However, at some point this must have changed. The geocoder now seems to support API keys, which would imply that you could get a ‘private’ 2500-request limit.
I’ve updated MapPress to pass the API key to the geocoder, and it seems to work. Please send me an email and I’ll send you a copy of the updated code to test.August 13, 2015 at 1:44 am #16121karenoconnellParticipant
Hi Chris – it’s my own development machine so there isn’t another requester from the same IP that might be causing the quota to be exceeded.
My email address is firstname.lastname@example.org if you want to drop that code to me.
Thanks for the quick response,
KarenAugust 13, 2015 at 1:54 am #16122ChrisKeymaster
If it’s a local machine I’m not sure why you would be exceeding the quota. What exact message do you get?
Is your machine using a static IP?
If it’s a local static machine you shouldn’t need an API key at all, so I’m not sure the new code will fix the root problem, but I’ll send it to you anyway.
- You must be logged in to reply to this topic.