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

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

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