JavaScript, PostGIS, Python

A simple CherryPy RESTful JSON server

A simple CherryPy RESTful JSON server

I have recently been working with CherryPy. It seems really cool, but it is quite hard to find simple and clear online examples for some things. In this case I wanted to set up a RESTful server that can accept POST requests containing JSON/GeoJSON, and return JSON/GeoJSON, with the request coming from JavaScript in a web page (no jQuery). Continue reading