update api and add support for multipoint geometry