Reply To: How to use the “Get Directions” function

#21537
Althemist
Keymaster

Hello 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,
Dimitar