gis-ops / routingpy

🌎 Python library to access all public routing, isochrones and matrix APIs in a consistent manner.
https://routingpy.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
252 stars 26 forks source link

fixes #40: break out logic for collecting endpoint parameters #41

Closed nilsnolde closed 2 years ago

nilsnolde commented 2 years ago

I only changed valhalla & osrm, as those two are the only ones we can use via python bindings in downstream projects. it's pretty mechanical changes anyways

nilsnolde commented 2 years ago

Just noticed that we could also get rid of the **kwargs passed to Valhalla.{directions(), isochrones(), matrix()}

good point @chrstnbwnkl , that should actually be another issue. we don't handle them right now but we should. really for every single router and method we should have **kwargs which we then append as-is to the routing request. it's more a way of relaxing ourselves a little so that new router-specific parameters which aren't implemented yet in routing-py can be still be specified.