MMM-google-route Example ?



  • Hi guys 🙂

    I’m trying to configure MMM-google-route on my mirror. I tried to follow step and google link but, hmm, I don’t f*** understand anything about how it works 😃
    Am I such a noob ? 🙂 I coudldn’t found anything about this module on the forum. I need at list a sample configuration for origin and destination parameters. If someone could share something !? thanks guys 🙂



  • This is what i’ve done to get it up and running:

    active the google api’s: (sign-up, follow the path mentioned in the short description provided by the module)

    activated APIs:

    Directions API (if I disable it nothing works anymore)
    Geocoding API
    Maps JavaScript API
    

    then add this to your config.js:

    {
                module: 'MMM-google-route',
                position: 'bottom_left',
                config: {
                    height: '150px',
                    width: '300px',
                    key: 'your-google-apikey',
                    directionsRequest:{
                        origin: 'city country',
                        destination: 'city country'
                    }
                }
            },
    

    Hope this works, did for me!



  • it was so simple ! 😃
    i tried with “Address city country” for both origin and destination field… it works !! I think manual could be more precise on this point. Thank you very much @Valkilane