Skip to content

A wrapper from a XAPI or Overpass API request to provide converted output (with osmconvert) to nodes only, the output can either be osm or gpx

Notifications You must be signed in to change notification settings

osm-fr/osm2node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osm2node

A wrapper from a XAPI or Overpass API request to provide converted output (with osmconvert) to nodes only, the output can either be osm or gpx

I can be usefull when you want restaurant or hôtels drawn as polygons in the osm database to be converted to a virtual node in the centroid. (easier to process when the client tool does not provide this simplification)

Read the code for more ;-)

Note : You need osmconvert to make it work : http://wiki.openstreetmap.org/wiki/Osmconvert

wget -O - http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert

should download it and compile it

Tweaks for fixme and osmand

If you want to export objects from osm with a fixme tag set into the gpx's name : http://api.openstreetmap.fr/osm2nodegpx?*[bbox=5.71,45.37626,6.2752533,45.7301497][fixme=*]&magouillefixme

If you want to work around an osmand bug where favorites.gpx does not support nameless poi : http://api.openstreetmap.fr/osm2nodegpx?*[bbox=5.71,45.37626,6.2752533,45.7301497][fixme=*]&magouillefixme&magouilleforceaname

Install

  • Just put those files (including the .htaccess for apache) into a directory accessible by an url.
  • copy the config-sample.php to config.php and adapt (or symlink if the defaut config file suits you)

About

A wrapper from a XAPI or Overpass API request to provide converted output (with osmconvert) to nodes only, the output can either be osm or gpx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages