SOLVED MMM-google-route and coordinates
-
Hey guys,
I´m working on my MM, and I found module MMM-google-route which I want to use for showing the route from my home to my work, but I´m not able to set the coordinates from google.maps.DirectionsRequest interface because of my lack of skills
Any help would be welcomed.
Btw, for anyone who want to use the module, there is mistake on github example, its missing , at end of the exaple, its should be
{ module: 'MMM-google-route', position: 'top_left', config: { key: '<YOUR_KEY>', directionsRequest:{ origin: '<ROUTE START>', destination: '<ROUTE FINISH>' } } },
code_text
-
@Zippyczech use the latitude/longitude…
open google maps, find the location
in the address bar/locationfor New York, Ny, USA
maps/place/New+York,+NY/@40.6971478,-74.2605536,
the 2 numbers are the latitude (above/below equator), and longitude (east/west of London, approx)
use one set for origin and one for destination
-
I´m retarded, of course, it worked. I tried the first time and did some mistake so it didnt work.
Thank youBtw, do you know how to specify that the route should use subway only?
-
@Zippyczech sorry. Don’t know anything about the module
-
Looking at the code, it appears u could change the code to support train
travelMode: 'DRIVING'
But not thru config altho that would be an easy change I think.
-
Thank you, again, solved it moments later
I used https://github.com/jclarke0000/MMM-MyCommute which has better configuration options
-
@Zippyczech cool. Thanks for providing feedback.