here.platform.api.map_matching_api module
here.platform.api.map_matching_api module
Here Map Matcher API module
class here.platform.api.map_matching_api.MapMatchingApi(base_url: str, platform_config: PlatformConfig, application_config: ApplicationConfig, auth: Auth | None, proxies: dict | None = None)
Bases: BaseApi
This class provides access to HERE Map Matching APIs.
get_map_matcher_map_version(version: str) str
Details of specific map version :param version: version to use or latest to use the latest available version :return: map version :raises PlatformException: If platform responds with an HTTP error.
get_matched_path(version: str, data: Dict, road_access: str, interpolate: bool) str
Get matched path corresponding to the latitude and longitude. :param data: dict of lat and long :param version: map version to use or latest to use the latest available version. :param road_access: map matching mode to use. Valid values are unrestricted and car :param interpolate: specifies whether to add interpolated points to sub-paths in order to retrieve the full path geometry. Default value is False :return: string of matched path :raises PlatformException: If platform responds with an HTTP error.
property headers: dict
Return HTTP request headers with Bearer token in Authorization field.
Returns:
authorization tokens
List of map versions :return: map versions :raises PlatformException: If platform responds with an HTTP error.