Geojson object as a function