Open bencz opened 1 year ago
If you are going to use it as an API, the best I can offer in this second is doing something like:
instance = vroom.Input()
instance._from_json(json_string, geometry)
This is a direct call to the vroom
json parser.
I'll update the Input.from_json
soon to allow for string input in addition to filepath.
Well, that's a good start! And how is the osrm configuration?
I haven't tried it, but the format is:
instance = vroom.Input(servers={"<profile>": "<host>:<port>"})
The project is very good, with this binding in python, it makes it simpler to implement rest/grpc APIs to calculate routings.
But I couldn't understand how to use the bind, with information like the ones we use in the vroom C++ version, for example, let's take the following request made to vroom-express:
I saw that we can input the time matrix, for example, returned by OSRM's table API. My doubts start now, how to create a vehicle with its lat/long What is the correct way to request the time matrix for OSRM? What is the source and destination in the OSRM request?