Hello, can anyone point me in the direction of how one might be able to extract OSM feature information from a GPX file. For example, I would like to determine all the peaks that may have been summited on a GPS track. asked 06 Sep '18, 22:56 ClarionRunner aseerel4c26 ♦ |
The Overpass API around filter queries for elements within a given radius (in meters) along a linestring when given a list of lat/lon pairs:
For example (in Overpass Turbo):
There might be better ways, but here is a one-liner for the Linux/Ubuntu command-line to convert a GPX track to the expected linestring format:
answered 14 Sep '18, 20:39 ikonor Thank you so much!!!! Just what I was looking for :)
(17 Sep '18, 07:05)
ClarionRunner
how would I pass this query to https://www.overpass-api.de/api/interpreter from a php file?
(17 Sep '18, 07:58)
ClarionRunner
1
The custom shortcut "{{latlons}}" only works in Overpass Turbo. Elsewhere, you need to replace it yourself. You can get an interpreter URL from Overpass Turbo with Export > Data > raw data from Overpass API interpreter: https://wiki.openstreetmap.org/wiki/Overpass_turbo#Data Or use a POST request, see https://overpass-api.de/command_line.html
(17 Sep '18, 08:42)
ikonor
|
Do you think of adding these peaks to OSM (contribution) or do you think of, instead, querying the OSM data for nearby peaks (possibly with name infomation) (usage)?
the latter querying the OSM data for nearby peaks