We are developing and need directional APIs to measure the distance between two addresses. The only option I have is http, as this part of the application does not have a map.
I am trying to understand the proper use of APIs, related keys and quotas.
First, we issued an HTTP call without a key.
maps.googleapis.com/maps/api/directions/json?origin=43.65077%2C-79.378425&destination=43.63881%2C-79.42745
Sometimes we return the correct answer, but many times I get OVER_QUERY_LIMIT (although we hardly issue any calls, it is impossible for us to run any limit)
Then, after visiting this link: https://developers.google.com/maps/documentation/directions/usage-limits , we turned on the API key and added the key to the call. So the call now looks like this:
http://maps.googleapis.com/maps/api/directions/json?origin=43.65077%2C-79.378425&destination=43.63881%2C-79.42745&key=AI *** AQ
Every time we make a call, we return REQUEST_DENIED
The error message I get with your request (including a valid key) is "Requests for this API must be for SSL. Download the API using https: instead of http:". You need to make requests over https.
https://maps.googleapis.com/maps/api/directions/json?origin=43.65077%2C-79.378425&destination=43.63881%2C-79.42745&key=VALID_API_KEY