NREL / routee-compass

An energy-aware routing engine
https://nrel.github.io/routee-compass/
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

allow multi line strings for plotting routes #165

Closed nreinicke closed 6 months ago

nreinicke commented 6 months ago

Just a small fix to allow the plotting function to take in a multi-linestring object from the resulting route. Even though we do a line merge on all the incoming route geojson objects, it's still possible that the merge will return a multi-linestring (the particular case where I found this was an exit ramp that loops under the highway). This will just plot all the linestrings in a multi-linestring if that's what we get.