I would like to calculate the distance of some points to the nearest motorway, for that i would obviously need a series of vectors/lines etc. to represent the motorway.
On Overpass Turbo, the query
way["highway"~"motorway"]
(33.60615,-84.51173,33.92940,-84.22099);
out;
returns various objects like this:
{
"type": "way",
"id": 41047668,
"nodes": [
68146293,
68146294
],
"tags": {
"bridge": "yes",
"destination": "Peachtree Industrial Boulevard",
"destination:ref": "GA 141 North",
"highway": "motorway_link",
"lanes": "1",
"layer": "1",
"oneway": "yes",
"surface": "concrete"
}
}
How can I use this information to come to my final destination?
Does each node have its own coordinates and is there a straight vector between these nodes which is the motoway? Or should I somehow modify my query?
Does anyone have experience with such a problem and can share some knowledge?
way["highway"~"motorway"] (33.60615,-84.51173,33.92940,-84.22099); /*added by auto repair*/ (._;>;); /*end of auto repair*/ out;
. Also Im not sure if I understand your question. Why don't you just use the GeoJSON it returns? Also please clarify what you are trying to do using Python as you did not mention it in your question body.