api: return links as GeoJSON with configurable count