I have a set of GPS coordinates for a trip which is somehow noisy. I want to extract the street attributes (eg., type of street, number of lanes, length, speed limit) on which the driver rode using OSMNX. OSMnx is a Python package that lets you download geospatial data from OpenStreetMap. I am wondering how I can send request to HERE API sending my GPS coordinates as a list of tuples, and receive a set of U,V ID's corresponding to OpenStreetMap street IDs.
I tried to use Python Request package to send a "Post" request to Here route matching API, but I didn't work. I tried to find an example code, but I couldn't find that either.
I don't know about Python but curl command works perfect, if you can transform curl request to Python then it will work for you (please don't forget to set your correct apikey):
Additional docs: https://demo.support.here.com/pde/layers?region=WEU&release=latest&url_root=pde.api.here.com
https://demo.support.here.com/pde/maps?url_root=pde.api.here.com
https://smap.hereapi.com/v8/maps/layers/doc.html?layer=APPLICABLE_SPEED_LIMIT&apikey=yourapikey
https://developer.here.com/documentation/content-map-attributes/api-reference.html