source: subversion/sites/other/trapi/fetchtile @ 31161

Last change on this file since 31161 was 20486, checked in by deelkar, 10 years ago

fix old api 0.5 references

  • Property svn:executable set to *
File size: 489 bytes
Line 
1#!/bin/sh
2
3./dumptile.pl $@ >/tmp/fi
4
5grep '^Node' </tmp/fi | cut '-d ' -f2 >/tmp/n
6while read n ; do wget -O- http://api.openstreetmap.org/api/0.6/node/$n ; done </tmp/n >>/tmp/foo.osm
7grep '^Way' </tmp/fi | cut '-d ' -f2 >/tmp/n
8while read n ; do wget -O- http://api.openstreetmap.org/api/0.6/way/$n ; done </tmp/n >>/tmp/foo.osm
9grep '^Relation' </tmp/fi | cut '-d ' -f2 >/tmp/n
10while read n ; do wget -O- http://api.openstreetmap.org/api/0.6/relation/$n ; done </tmp/n >>/tmp/foo.osm
11
Note: See TracBrowser for help on using the repository browser.