ported geomap to json-rpc