json - Google Direction API Error: "Invalid request. Missing the 'destination' parameter." -


i trying curl google direction api json output using instructions provided https://developers.google.com/maps/documentation/directions/?csw=1#json

i have tried (this found on google directions api documentation)

curl https://maps.googleapis.com/maps/api/directions/json?origin=toledo&destination=madrid&region=es&key=my_api_key 

with following output:

curl https://maps.googleapis.com/maps/api/directions/json?origin=toledo&destination=madrid&region=es&key=aizasydsgikndyh_kdv17bk2ytetnhaitshp5ts [1] 4174 [2] 4175 [3] 4176 [2]   done                    destination=madrid roberts-macintosh:~ robertloggia$ {    "error_message" : "invalid request. missing 'destination' parameter.",    "routes" : [],    "status" : "request_denied" }  [1]-  done                    curl https://maps.googleapis.com/maps/api/directions/json?origin=toledo [3]+  done                    region=es 

i have enabled google directions project associated api key. getting entirely different message when wasn't enabled, , the server reject hand shake, know it's not matter of permission use it, maybe of way http request structured.

so happened & premier means "run in ground" in *nix. prevent pre process url, either have escape &s or use pair of "" or ''


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -