#!/bin/bash
# usage:
#   kml2poi < poi.kml > poi.asc
#
# convert Google Placemarks to ASCII POI File

if [ $# -ne 0 ]; then
  echo "usage: kml2poi < poi.kml > poi.asc"
  exit
fi

gpsbabel -w -i kml -f - -o xcsv,style=/etc/gpsbabel/style/csv_poi.style -c latin1 -F -
