Data model
The objects the API returns and how they relate.
Everything the API returns is measured by Civimatica devices and processed by Civimatica models. You receive structured results, never imagery.
Geography
A city is addressed by its identifier. Pass it as city.
Inside a city, parking is organised into city zones. List them with
GET /v1/city-zones. A zone id is canonical with a hyphen. The same id
written with a space or a slash is accepted on input, and responses always
use the hyphen form.
A street that runs through several zones comes back once per zone when you ask for the chance of finding a spot.
Objects
City zone
A parking area you can query:
id— zone id, such as702-16name— short name, such asArea 16tariff_band— the pricing bandtariff_eur_hour— the hourly price in euroshours— when that tariff applies, in local timearea— the main streets around the zonealso_tariffs— another band and its hourly price, included only when the zone has one
A zone that is turned off is left out of this list. Asking for its spots
returns 400 with code zone_disabled.
Spot
A space a vehicle found free in the last 10 minutes. The list contains only free spots.
id— stable id, prefixedcv-lat,lon— positionavailable_at— when a vehicle last found it freesize—small,medium, orlargein_shade— whether it is currently shadedshade_until— when it next sees sun. An ISO 8601 time, ornightwhen it stays shaded. Null when it is sunlit.
window_minutes on the response is the look-back, currently 10.
Spots stay stored for up to 60 days after the last detection. A spot that is not seen again in that window expires.
Vehicle
One detection vehicle patrols each city zone.
id—cv-veh-plus the zone idlat,lon— live positionheading_deg— compass bearing, 0 to 360speed_kmhdirection—outboundorreturnalong its route
Event
A record from the detection service. Each has a monotonic seq (your
cursor), a type, and ts.
spot_detected— a vehicle found a spot freespot_free— a later pass finds a taken spot free againspot_occupied— a later pass finds a free spot takenspot_expired— the spot was not detected again within 60 daysengine_started— the detection service started
spot_detected, spot_free, and spot_occupied also carry spot_id,
coordinates, street, size, free, city, city_zone, in_shade, and
shade_until. spot_expired carries spot_id, coordinates, street, and
reason. engine_started carries stored_spots. Events whose zone is
turned off are omitted.
Spot type
The parking class at a coordinate:
blue— paidwhite— freeyellow— reserveddisabled— a disabled bayloading— a loading zoneunknown— no street within 400 m
Along with type you get type_label, the nearest street, city, and
city_zone. paid_until is the local HH:MM when paid hours end, or null
when there is none. product is a tariff code when that street has one,
otherwise null. A turned-off zone comes back with city_zone, paid_until,
and product null.
Street chance
One street inside one city zone:
streetcity_zone— null when the street never enters a zoneprobability— 0 to 1percent— the same chance as a whole numberchance—easyabove 60%,possibleabove 30%, otherwisehardlength_m— how much of the street lies in that zonelat,lon— a point on the longest stretchnear— another street beside that stretch, or null
Rows are easiest first. evaluated_at is the time used for the chance, in UTC.
Time
Timestamps are ISO 8601 UTC. available_at, event ts, and evaluated_at
are moments on the street or on the service clock. hours and paid_until
are local clock times for the tariff.