Hitchwiki / hitchwiki

The Hitchhiker's Guide to Hitchhiking the World
https://hitchwiki.org
32 stars 9 forks source link

Add upload filetype GPX #174

Closed noahsmindfuck closed 1 year ago

noahsmindfuck commented 6 years ago

I am creating GPX files with 'gas station within 100m of highway'-lists per country and would love to upload them and link them to each countries page.

simison commented 6 years ago

Nice :-)

Would it be possible to link to the source where you generate those files, instead? Or even just share queries that you used to generate those files? GPX files are a quite technically oriented thing so instructions how to generate them can be technical, too.

That way they would always be fresh.

noahsmindfuck commented 6 years ago

That would be really great. At the moment I use the website Overpass-Turbo and the query is

area[~"name"~"yourRegexHere"];
  way(area)[highway=motorway]->.ways;
  ( 
    way(around.ways:100)[amenity=fuel];
    node(around.ways:100)[amenity=fuel];
  );
  (._;>;);
  out meta;

I am not perfectly sure if the query could be a little more specified:

There are several Overpass Servers that have a public API (https://wiki.openstreetmap.org/wiki/Overpass_API | http://overpass-api.de/) and it might be scriptable but I didn't find myself through the API description yet.

simison commented 6 years ago

Looks like you could create direct links to queries by pressing "share" from the main menu.

image