Open fjanoos opened 4 years ago
Formulating the above a bit more lowlevel: It would be great if the Polyline layer was supported in order to plot the polyline strings from that API response directly on the map.
I know that one could also use the Directions layer for that, however I would like to store and plot a couple of hundred of those lines in a single layer. The functionality would be very similar to that of the polygon in the drawing_layer(). The difference being that the polygon is closed and filled while the polyline is not.
See also this google reference: https://developers.google.com/maps/documentation/javascript/shapes
I was trying to plot the directions json that I get directly from the google maps API - since this api allows more options than gmaps.directions_layer (esp. around departure and arrival time and traffic models).
This call to the API returns the directions as a bunch of steps - as per:
I would like to render these directions in the jupyter map using gmaps.
If I just build a
gmap.drawing_layer
withgmaps.Line
objects using thestart_location
andend_location
from the json above - this draws straight lines which misses turns and curves in the roads.Is there an alternative way to display the directions json that comes back from google using gmaps ?
Thanks
NOTE: alternatively - would it be possible to update
gmaps.directions_layer
to support all these additional options ?