Goal: Given a list of node ids, return a list of objects, one for each node id, that contain its coordinates.
Context: With Overpass I can submit, for example, the following query:
[out:json][timeout:25];
node(69292918);
out body;
This returns to me an object with a component, “elements” that contains a list of length 1. The first object holds some metadata that I want that pertains to that node:
{
"type": "node",
"id": 69292918,
"lat": 33.7371510,
"lon": -84.3681960
}
What I am trying to figure out is how to supply a list of node ids such that I can receive a list of node id metadata in response.
For example, I imagine it might look something like this:
[out:json][timeout:25];
node(ids=[69292918,69292921,69292913]);
out body;
Bonus points: If someone can help me identify a way to query for all nodes in a bounding box that are only within ways (regardless of whether deprecated/unused or used), that would be awesome.
That would be sort of like this query:
[out:json][timeout:25];
node({{bbox}});
out body;
But would limit to only nodes that are part of streets.
Example of a node that is part of a street:
https://www.openstreetmap.org/node/69521872#map=19/33.75817/-84.40781
Example of a node that is not part of a street:
https://www.openstreetmap.org/node/2754887580