Closed jlc467 closed 8 years ago
DirectionsStep should have a path prop that contains an array of coordinates for the step in the leg of a route.
https://developers.google.com/maps/documentation/javascript/directions
gm.directions( { origin: 'Madison , Wi, USA', destination: 'Tampa, FL, USA', mode: 'driving' }, (err, result) => { //result.routes[0].legs[0].steps[0].path is undefined } )
It does return the encoded polyline but from my understanding, this is smoother (less accurate) than the actual path coordinates.
encode_polylines: false .. not sure if that matters
encode_polylines: false
Nevermind. I was confusing the Google Maps Directions API (used by this library) with Google Maps JavaScript API,
@jlc467 can you provide me with a complete example. Thanks.
DirectionsStep should have a path prop that contains an array of coordinates for the step in the leg of a route.
https://developers.google.com/maps/documentation/javascript/directions
It does return the encoded polyline but from my understanding, this is smoother (less accurate) than the actual path coordinates.
encode_polylines: false
.. not sure if that matters