I have an array of nodes and am using https://api.openstreetmap.org/api/0.6/node/{node} to get the lng and lat of each node. Is their an easier way to fetch multiple nodes at the same time? |
You can ask for multiple nodes by ID like this: https://api.openstreetmap.org/api/0.6/nodes/?nodes=123456700,123456701,123456702 The same command works for just a single node ID as well: https://api.openstreetmap.org/api/0.6/nodes/?nodes=123456700 See the API documentation: |