ResolvedHow to use the “Get Directions” function
- This topic has 2 replies, 2 voices, and was last updated 3 years, 6 months ago by
wecancooky.
- AuthorPosts
- February 28, 2020 at 8:45 am #21532
wecancooky
ParticipantHi admin.,
My website is currently unable to use the caculate route function. The map is working normally.
Please show me how to use this cool function of yours!Link: https://wecancook.net/lien-he/
Thank you!
February 28, 2020 at 3:50 pm #21537Althemist
KeymasterHello wecancooky,
It looks like your Google Maps API key is not set properlu, and you’re not authorized to use directions service. Here is the error in the console for your website:
Directions Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key js:55:324
Object { message: “DIRECTIONS_ROUTE: REQUEST_DENIED: There was an issue performing a Directions request.”, stack: “hP@https://maps.googleapis.com/maps-api-v3/api/js/40/2a/directions.js:1:82\njP@https://maps.googleapis.com/maps-api-v3/api/js/40/2a/directions.js:1:314\nyP/<@https://maps.googleapis.com/maps-api-v3/api/js/40/2a/directions.js:9:118\nuP/<@https://maps.googleapis.com/maps-api-v3/api/js/40/2a/directions.js:5:266\nc@https://maps.googleapis.com/maps-api-v3/api/js/40/2a/common.js:68:84\n@https://maps.googleapis.com/maps/api/js/DirectionsService.Route?5m2&1m1&2s162%2F3-5%20H%E1%BB%93%20B%C3%A1%20Ki%E1%BB%87n&5m4&1m3&1m2&1d10.782504&2d106.663633&6e0&12sen-US&23e1&callback=_xdc_._2vp6h0&key=AIzaSyBBBXjRKN1yI6lp7UZTO7hoX-YYASKCMEc&token=130240:1:28\n", name: "MapsRequestError", endpoint: "DIRECTIONS_ROUTE", code: "REQUEST_DENIED” }You’d need to properly generate a Maps API key.
Regards,
DimitarFebruary 29, 2020 at 10:15 am #21555wecancooky
ParticipantThank you, I have successfully installed.
However, I would like to suggest that your support service is too sketchy. Instead you should instruct me to open Google maps services such as “Places API”, “Maps Embed API”, and “Maps Static API” and then copy and past the error displayed. If I am a normal user, what should I do with your answer? I have to search google on forums and do it myself.
You should think about how to support your customers to grow your company!Best regards
- AuthorPosts
You must be logged in and have valid license to reply to this topic.