Skip to main content
Map matching is the process of mapping noisy GPS points to correct road segments. Matcher is the WherobotsDB module that performs map matching for GPS points. The following functions are available in the matcher module:
  • match(): Performs map matching for GPS paths
  • load_osm(): Loads OSM xml file and retrieves edges and nodes information

match()

match() performs map matching for a GPS path trip. If not provided, the first non-geometry column is used.
DataFrame
required
DataFrame object that contains all edges in the target dataset
DataFrame
required
DataFrame object that contains all GPS trips for which map matching need to be performed
str
required
Name of the geometry column in the edgesDf DataFrame
str
required
Name of the geometry column in the pathsDf DataFrame
str
required
Optional - Name of the column in the pathsDf DataFrame that contains the unique identifier for each GPS

Returns

DataFrame
A DataFrame object containing the results of map matching

load_osm()

Function loads an OSM xml file and retrieves all the edges and locations of the corresponding nodes.
str
required
A string that represents path to the OSM xml file
str
required
A string denoting the tags to be used for filtering the OSM data

Returns

DataFrame
A DataFrame object containing all the edges information required for map matching

Usage Examples