Request to add polyline support for timefold OSRM uk service
in progress
p
pritesh.vaviya@necsws.com
At the moment, timefold UK OSRM pod only supports geojson based requests.
We want to have polyline support as well. I.e. we want to get the distance and travel duration as well in the response json.
Endpoint:
/route/v1/driving/-1.05046999%2C50.8956299%3B-1.04372001%2C50.8595581%3B-1.08203876%2C50.9310608%3B-1.05046999%2C50.8956299?overview=false
Actual Result (in existing setup ) :
{"code":"Ok","routes":[{"geometry":null}]
Expected Result:
{"code":"Ok","routes":[{"legs":[{"steps":[],"distance":5121.4,"duration":518.6,"summary":"","weight":518.6},{"steps":[],"distance":10884.3,"duration":1056.8,"summary":"","weight":1056.8},{"steps":[],"distance":5846.4,"duration":533.4,"summary":"","weight":533.4}],"distance":21852.1,"duration":2108.8,"weight_name":"routability","weight":2108.8}],"waypoints":[{"hint":"sadAgCqoQIADAAAAEwAAALMAAABiAAAAiVxeQE6poEHG8D9DZbDSQgMAAAATAAAAswAAAGIAAACHDAAAb_bv_zubCAOa-O__DpsIAwUAvwt7W7Qb","distance":39.385052,"name":"Soake Road","location":[-1.051025,50.895675]},{"hint":"ez1AgIM9QIA3AAAAiAAAAAAAAAAAAAAA0NwYQkNOvEIAAAAAAAAAADcAAACIAAAAAAAAAAAAAACHDAAA0RHw_00OCAP4EvD_Jg4IAwAAvwB7W7Qb","distance":21.213018,"name":"Lone Valley","location":[-1.044015,50.859597]},{"hint":"a3FAgHVxQIAFAAAAOQAAAAAAAAAAAAAACGW1QKzpckIAAAAAAAAAAAUAAAA5AAAAAAAAAAAAAACHDAAAM33v_5wlCQNJfe__dSUJAwAArw97W7Qb","distance":4.606157,"name":"West Street","location":[-1.082061,50.9311]},{"hint":"sadAgCqoQIADAAAAEwAAALMAAABiAAAAiVxeQE6poEHG8D9DZbDSQgMAAAATAAAAswAAAGIAAACHDAAAb_bv_zubCAOa-O__DpsIAwUAvwt7W7Qb","distance":39.385052,"name":"Soake Road","location":[-1.051025,50.895675]}]}
Log In
Jurriaan Persyn
in progress
This feature request is currently being implemented. We’ll update here once the feature is implemented and makes it into production. Make sure to subscribe to our changelog to receive updates about each new version.
Regards,
Jurriaan
VP Product