[Surfraw-devel] elvi for openstreetmap.org
ruthard.baudach at web.de
ruthard.baudach at web.de
Thu May 8 12:49:03 UTC 2014
I'd like to share an elvi to search openstreetmap.org:
--------------------%<--------------------------------
#!/bin/sh
# $Id$
# elvis: openstreetmap -- Search opentstreetmap.org
surfraw || exit 1
# zoom, x and y coordinates of map shown with search results. default is whole world, change to suite your preferences
SURFRAW_openstreetmap_zoom="2"
SURFRAW_openstreetmap_x="45.0"
SURFRAW_openstreetmap_y="7.0"
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw searches the open source map openstreetmap.org
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@"
url="http://www.openstreetmap.org/search?query="
url="${url}$(w3_url_escape "$w3_args")#map=$SURFRAW_openstreetmap_zoom/$SURFRAW_openstreetmap_x/$SURFRAW_openstreetmap_y"
w3_browse_url "$url"
--------------------%<--------------------------------
More information about the Surfraw-devel
mailing list