gojuno / osrm-py

Python client for OSRM API
BSD 3-Clause "New" or "Revised" License
17 stars 7 forks source link

Supporting MatchedRequests larger than OSRM 'max_match_size' #9

Open TNonet opened 4 years ago

TNonet commented 4 years ago

I utilized this simple module for a project of mine. However, I ran into the issue that I believe many other people face. The OSRM 'max_match_size' setting has a default value of 100. Therefore for longer sequences of points, I implemented a new request which properly sections and cuts a sequence of coordinates, radiuses, and timestamps, and submits them as a sequence of MatchRequests. However, I decided against post-processing these separate match requests and allowing the user to analyze them as needed.