here.platform.map_matcher module#
HERE Map Matcher module
- class here.platform.map_matcher.MapMatcher(version: str, hrn: str, platform: Platform)[source]#
Bases:
objectHERE map matcher abstraction.
Access basic fields like versions and hrn of map matcher. Example:
map_matcher.hrn- get_matched_path(lat_lon_list: List[Dict], road_access: RoadAccess, interpolate: bool = False) Tuple[List, List][source]#
Get matched path corresponding to the latitude and longitude list. Example:
[{"lat": 52, "lng": 13.26952}, {"lat": 52.499, "lng": 13.269}]- Parameters:
lat_lon_list – list of dict of lat and long
road_access – map matching mode to use. Valid values are unrestricted and car
interpolate – specifies whether to add interpolated points to sub-paths in order to
retrieve the full path geometry. Default value is False :raises ValueError: Incorrect road access value :return: List of matched path refs and list of matched path points
- get_matched_point(lat_lon: Dict, road_access: RoadAccess, interpolate: bool = False) Tuple[List, List][source]#
Get matched point corresponding to the latitude and longitude. Example:
{"lat": 52, "lng": 13.26952}- Parameters:
lat_lon – dict of lat and long
road_access – map matching mode to use. Valid values are unrestricted and car
interpolate – specifies whether to add interpolated points to sub-paths in order to
retrieve the full path geometry. Default value is False :raises ValueError: Incorrect road access value :return: List of matched point refs and list of matched points