Geometry api mysql