Skip to main content

Hello everyone,

 

I'm currently trying to make a path from a GEOJSON "link" which was return from a HTTPCaller. Is there any way to transform the link below into a line feature?

 

Thank you in advance.

 

{"code":"Ok","waypoints":t{"hint":"xPMEgEswB4AKAAAAAAAAAFcAAAAAAAAAJ0k3QQAAAADB2cBCAAAAAAoAAAAAAAAAVwAAAAAAAADaAAAAC07F-1foygJzT8X7X-bKAggAnw0GXKGa","location":t-70.955509,46.852183],"name":"Rue du Moulin"},{"hint":"4nEJgIjqCYAMAAAABQAAAH0AAAAaAAAAUXXHQaFyEkF2A31DScJOQgwAAAAFAAAAfQAAABoAAADaAAAAAVjF-47pygK1V8X7u-nKAgUA3w0GXKGa","location":t-70.952959,46.852494],"name":"Route du Fleuve"}],"routes":t{"legs":t{"steps":t{"intersections":t{"out":0,"entry":ttrue],"location":t-70.955509,46.852183],"bearings":t37]}],"driving_side":"right","geometry":{"coordinates":t;-70.955509,46.852183],3-70.955418,46.852265],5-70.955302,46.852347],7-70.955159,46.852438],8-70.955029,46.852529],9-70.954991,46.852556],6-70.9549,46.85262],2-70.954744,46.852703],3-70.954575,46.852812],2-70.954497,46.852858]],"type":"LineString"},"duration":12.6,"distance":107.8,"name":"Rue du Moulin","weight":12.6,"mode":"driving","maneuver":{"bearing_after":37,"location":t-70.955509,46.852183],"type":"depart","bearing_before":0,"modifier":"right"}},{"intersections":t{"out":1,"in":2,"entry":ttrue,true,false,true],"location":t-70.954497,46.852858],"bearings":t45,150,225,315]}],"driving_side":"right","geometry":{"coordinates":t;-70.954497,46.852858],8-70.954337,46.852697],7-70.954164,46.852546],6-70.954058,46.852483],3-70.953965,46.852421],1-70.953753,46.852297],7-70.95362,46.85219],9-70.953481,46.85208]],"type":"LineString"},"duration":16.7,"distance":116.6,"name":"Rue Péan","weight":16.7,"mode":"driving","maneuver":{"bearing_after":144,"location":o-70.954497,46.852858],"type":"turn","bearing_before":47,"modifier":"right"}},{"intersections":o{"out":0,"in":2,"entry":otrue,true,false],"location":o-70.953481,46.85208],"bearings":o45,225,315]}],"driving_side":"right","geometry":{"coordinates":ot-70.953481,46.85208],0-70.953308,46.852218],1-70.953118,46.852369],6-70.953038,46.852432],3-70.952959,46.852494]],"type":"LineString"},"duration":3.1,"distance":60.8,"name":"Route du Fleuve","weight":3.1,"mode":"driving","maneuver":{"bearing_after":40,"location":o-70.953481,46.85208],"type":"turn","bearing_before":139,"modifier":"left"}},{"intersections":o{"in":0,"entry":otrue],"location":o-70.952959,46.852494],"bearings":o221]}],"driving_side":"right","geometry":{"coordinates":ot-70.952959,46.852494],9-70.952959,46.852494]],"type":"LineString"},"duration":0,"distance":0,"name":"Route du Fleuve","weight":0,"mode":"driving","maneuver":{"bearing_after":0,"location":o-70.952959,46.852494],"type":"arrive","bearing_before":41,"modifier":"left"}}],"weight":32.4,"distance":285.1,"summary":"Rue du Moulin, Rue Péan","duration":32.4}],"weight_name":"routability","geometry":{"coordinates":uo-70.955509,46.852183],1-70.955418,46.852265],2-70.955302,46.852347],3-70.955159,46.852438],4-70.955029,46.852529],5-70.954991,46.852556],5-70.9549,46.85262],2-70.954744,46.852703],7-70.954575,46.852812],8-70.954497,46.852858],8-70.954337,46.852697],6-70.954164,46.852546],5-70.954058,46.852483],4-70.953965,46.852421],4-70.953753,46.852297],2-70.95362,46.85219],2-70.953481,46.85208],2-70.953308,46.852218],2-70.953118,46.852369],3-70.953038,46.852432],4-70.952959,46.852494]],"type":"LineString"},"weight":32.4,"distance":285.1,"duration":32.4}]}

Great to see that you received a solution here!


Reply