Skip to main content
Question

I would like to transform a GeoJSON file into a line feature

  • May 25, 2021
  • 1 reply
  • 39 views

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":[{"hint":"xPMEgEswB4AKAAAAAAAAAFcAAAAAAAAAJ0k3QQAAAADB2cBCAAAAAAoAAAAAAAAAVwAAAAAAAADaAAAAC07F-1foygJzT8X7X-bKAggAnw0GXKGa","location":[-70.955509,46.852183],"name":"Rue du Moulin"},{"hint":"4nEJgIjqCYAMAAAABQAAAH0AAAAaAAAAUXXHQaFyEkF2A31DScJOQgwAAAAFAAAAfQAAABoAAADaAAAAAVjF-47pygK1V8X7u-nKAgUA3w0GXKGa","location":[-70.952959,46.852494],"name":"Route du Fleuve"}],"routes":[{"legs":[{"steps":[{"intersections":[{"out":0,"entry":[true],"location":[-70.955509,46.852183],"bearings":[37]}],"driving_side":"right","geometry":{"coordinates":[[-70.955509,46.852183],[-70.955418,46.852265],[-70.955302,46.852347],[-70.955159,46.852438],[-70.955029,46.852529],[-70.954991,46.852556],[-70.9549,46.85262],[-70.954744,46.852703],[-70.954575,46.852812],[-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":[-70.955509,46.852183],"type":"depart","bearing_before":0,"modifier":"right"}},{"intersections":[{"out":1,"in":2,"entry":[true,true,false,true],"location":[-70.954497,46.852858],"bearings":[45,150,225,315]}],"driving_side":"right","geometry":{"coordinates":[[-70.954497,46.852858],[-70.954337,46.852697],[-70.954164,46.852546],[-70.954058,46.852483],[-70.953965,46.852421],[-70.953753,46.852297],[-70.95362,46.85219],[-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":[-70.954497,46.852858],"type":"turn","bearing_before":47,"modifier":"right"}},{"intersections":[{"out":0,"in":2,"entry":[true,true,false],"location":[-70.953481,46.85208],"bearings":[45,225,315]}],"driving_side":"right","geometry":{"coordinates":[[-70.953481,46.85208],[-70.953308,46.852218],[-70.953118,46.852369],[-70.953038,46.852432],[-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":[-70.953481,46.85208],"type":"turn","bearing_before":139,"modifier":"left"}},{"intersections":[{"in":0,"entry":[true],"location":[-70.952959,46.852494],"bearings":[221]}],"driving_side":"right","geometry":{"coordinates":[[-70.952959,46.852494],[-70.952959,46.852494]],"type":"LineString"},"duration":0,"distance":0,"name":"Route du Fleuve","weight":0,"mode":"driving","maneuver":{"bearing_after":0,"location":[-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":[[-70.955509,46.852183],[-70.955418,46.852265],[-70.955302,46.852347],[-70.955159,46.852438],[-70.955029,46.852529],[-70.954991,46.852556],[-70.9549,46.85262],[-70.954744,46.852703],[-70.954575,46.852812],[-70.954497,46.852858],[-70.954337,46.852697],[-70.954164,46.852546],[-70.954058,46.852483],[-70.953965,46.852421],[-70.953753,46.852297],[-70.95362,46.85219],[-70.953481,46.85208],[-70.953308,46.852218],[-70.953118,46.852369],[-70.953038,46.852432],[-70.952959,46.852494]],"type":"LineString"},"weight":32.4,"distance":285.1,"duration":32.4}]}

1 reply

nampreetatsafe
Safer
Forum|alt.badge.img+13

Great to see that you received a solution here!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings