match abstract method
- Location location
This method computes the map-matched location for the provided input location.
Currently, matching is performed within a 50-meter radius of the provided location. If no road network is found
within that radius, null is returned.
It's required to set time field for each Location object for the MapMatcher to work properly. In case no time is provided,
null is returned and an error message is logged. It is used to calculate the distance in time between
consecutive matches. Together with speed, this allows to calculate how likely a match is consistent with a previous match.
To improve matching accuracy, it is recommended to provide bearing and speed parameters for each Location object.
locationThe input location.
Returns MapMatchedLocation?. map-matched location or null if the location could not be matched to a road network.
Implementation
MapMatchedLocation? match(Location location);