osrm-py icon indicating copy to clipboard operation
osrm-py copied to clipboard

Supporting MatchedRequests larger than OSRM 'max_match_size'

Open TNonet opened this issue 5 years ago • 0 comments

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.

  • Moved helper functions outside of BaseRequest
  • Implemented MatchRequestSections which iteratively calls MatchRequest
  • Updated testcases with non-localhost OSRM server
  • Added testcases for match_sections

TNonet avatar Aug 28 '20 16:08 TNonet