Osm Api
Example of pulling relation data:
https://www.openstreetmap.org/api/0.6/relation/391736
The relation produces a list of ways.
Or the JSON version:
https://www.openstreetmap.org/api/0.6/relation/391736.json
Example of pulling way data:
https://www.openstreetmap.org/api/0.6/way/1340854645
The way produces a list of nodes.
Example of pulling node data:
https://www.openstreetmap.org/api/0.6/node/618924457
(This node is the first on the LT - MA border)
Example of this node data:
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="openstreetmap-cgimap 2.0.1 (3529598 spike-06.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<node id="618924457" visible="true" version="2" changeset="53023383" timestamp="2017-10-17T20:13:12Z" user="Third Hiker" uid="6127286" lat="42.7441642" lon="-73.1553688"/>
</osm>
This alternative version seems to convert the relation into both nodes and ways:
https://www.openstreetmap.org/api/0.6/relation/391736/full.json
Top-level element called “elements” is an array of objects. Look at “type”: “node” objects.
Converting to elevation:
https://api.open-meteo.com/v1/elevation?latitude=42.7441642&longitude=-73.1553688
Example of result (in meters):
{
"elevation": [719]
}
ESA - EUsers, who, in their research, use the Copernicus DEM, are requested to use the following DOI when citing the data source in their publications:
https://doi.org/10.5270/ESA-c5d3d65
Another API: https://www.opentopodata.org/datasets/ned/ https://api.opentopodata.org/v1/ned10m?locations=42.7438189,%20-73.1555346
ASTER (30m) Dataset:
https://api.opentopodata.org/v1/aster30m?locations=42.7438189,%20-73.1555346
Result:
{
"results": [
{
"dataset": "ned10m",
"elevation": 711.9287719726562,
"location": {
"lat": 42.7438189,
"lng": -73.1555346
}
}
],
"status": "OK"
}