Borrowing scotts GEOAPI code base as a starting point.