spatial api

will probably drop this lib file. i'm using this for personal reasons, but certainly do not want to maintain it.