Count matching features
count_featuresCount OpenStreetMap features matching tag filters within a point radius or bounding box to estimate result size before downloading data.
Instructions
Count OpenStreetMap features matching tag filters in an area without returning them. Cheap. Use this before pulling data when the result size is unknown. Give either a point (lat, lon, radius_m) or a bounding box (south, west, north, east).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lon | No | ||
| east | No | ||
| tags | Yes | OpenStreetMap tag filters, all must match. Use "*" as the value to match any value, e.g. {"amenity": "cafe"} or {"opening_hours": "*"}. | |
| west | No | ||
| north | No | ||
| south | No | ||
| radius_m | No | Radius in metres, used with lat/lon (default 500) |