Closed chrstnbwnkl closed 2 years ago
Oops still missing the test adjustment.. when you added that, feel free to just merge after
I adjusted the tests @chrstnbwnkl . couldn't find my own implementation of the 3D polyline stuff anymore, but in case you ever need it, graphhopper has one: https://github.com/graphhopper/graphhopper/blob/bded5ba499a94a82a509131d761fcd88667773f3/web-api/src/main/java/com/graphhopper/jackson/ResponsePathSerializer.java
easily ported to python's polyline package. maybe I PR that one of these days..
This fixes #35 by adding an
order
argument to the polyline decoder methods, and reversing it forOSRM
's directions response parsing. Mock responses in OSRM tests are updated to reflect this change.