ResolvedMap route not working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25149
    andrea
    Participant

    Hello,

    I am having a hard time to make the map routing functionality work.

    If I type the zip code and click on calculate route button, nothing happens.

    Is there any particular permission that I need to enable to google api keys?

    Thank you in advance for your support.

    #25155
    Althemist
    Keymaster

    Hello andrea,

    Yes, the maps API project must be set to allow directions service. If you provide a link to your page we can check if that’s the case or something else.

    Regards,
    Dimitar

    #25164
    andrea
    Participant
    This reply has been marked as private.
    #25180
    Althemist
    Keymaster

    As I suspected, your API project is not configured to use Directions. Here is the error you can see in the console on your site:

    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

    code: “REQUEST_DENIED”

    endpoint: “DIRECTIONS_ROUTE”

    message: “DIRECTIONS_ROUTE: REQUEST_DENIED: There was an issue performing a Directions request.”

    name: “MapsRequestError”

    stack: “TP@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:1:82\nVP@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:1:314\njQ/<@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:9:52\nfQ/<@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:5:266\nc@https://maps.googleapis.com/maps-api-v3/api/js/42/1/common.js:67:84\n@https://maps.googleapis.com/maps/api/js/DirectionsService.Route?5m2&1m1&2sVia%20Monte%20Baldo%2029&5m4&1m3&1m2&1d45.61036905320006&2d10.814874570371188&6e0&12sen-US&23e1&callback=_xdc_._f7yir8&key=AIzaSyA9FdQ9n5w0ufqRZVqTPT78SK-h36UkYp8&token=81963:1:28\n" ​ : {…}

    However, there are also other JS errors on your page. Make sure you’re using the latest theme version with the latest theme plugin (Lafka plugin) version AND the latest WordPress AND the latest WooCommerce.

    Regards,
    Dimitar

    #25198
    andrea
    Participant
    This reply has been marked as private.
    #25199
    andrea
    Participant
    This reply has been marked as private.
    #25201
    andrea
    Participant
    This reply has been marked as private.
    #25211
    Althemist
    Keymaster

    I can’t tell what could be wrong by looking at a screenshot. Not to mention we don’t speak Italian. 🙂

    Here you can find some instructions:

    https://developers.google.com/maps/documentation/javascript/directions

    As for the video background – there is a checkbox to mute the sound for the page video background settings. For row video background, the sound is always disabled.

    regards,
    Dimitar

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register