mappymatch.matchers.match_result#

Classes

MatchResult(matches[, path])

class mappymatch.matchers.match_result.MatchResult(matches, path=None)[source]#
Parameters:
  • matches (List[Match])

  • path (List[Road] | None)

matches: List[Match]#
path: Optional[List[Road]] = None#
property crs#
matches_to_geodataframe()[source]#

Returns a geodataframe with all the coordinates and their resulting match (or NA if no match) in each row

Return type:

GeoDataFrame

matches_to_dataframe()[source]#

Returns a dataframe with all the coordinates and their resulting match (or NA if no match) in each row.

Return type:

DataFrame

Returns:

A pandas dataframe

path_to_dataframe()[source]#

Returns a dataframe with the resulting estimated trace path through the road network. The dataframe is empty if there was no path.

Return type:

DataFrame

Returns:

A pandas dataframe

path_to_geodataframe()[source]#

Returns a geodataframe with the resulting estimated trace path through the road network. The geodataframe is empty if there was no path.

Return type:

GeoDataFrame

Returns:

A geopandas geodataframe