Skip to content

Commit c5c54ec

Browse files
jesmakclaude
andcommitted
Remove semicolons and clause-joining colons from the format doc and README
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d13a963 commit c5c54ec

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ Franklin (CC BY-SA 3.0).
250250
| ------------------ | -------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
251251
| `entity` | string | **Required** | The map feed entity |
252252
| `show_area` | boolean | `false` | Draw the feed's area, if it has one |
253-
| `area_color` | string | `#1565c0` | Colour of the area outline: a name, hex or `rgb()` value. CSS variables do not work here |
254-
| `labels` | boolean / `hover` / number | `hover` | Labels next to markers: `false` off, `hover` on mouse-over, `true` always, or a zoom level (e.g. `12`) to show them always from that level up and on mouse-over below it |
253+
| `area_color` | string | `#1565c0` | Colour of the area outline as a name, hex or `rgb()` value. CSS variables do not work here |
254+
| `labels` | boolean / `hover` / number | `hover` | Labels next to markers. `false` off, `hover` on mouse-over, `true` always, or a zoom level (e.g. `12`) to show them always from that level up and on mouse-over below it |
255255
| `color_by` | enum | `kind` | `kind`, or `delay` for items with a delay (e.g. trains) |
256256
| `delay_thresholds` | list | `[3, 10]` | Minutes late from which an item is shown as late (yellow) and very late (red) |
257257
| `max_age_minutes` | number | none | Hide items whose position is older than this |
@@ -303,7 +303,7 @@ Without this plugin, ha-map-card's own `geojson` option draws the same entity as
303303
## Development
304304

305305
The plugin is written in TypeScript and bundled with esbuild into the single file HACS installs,
306-
`dist/ha-map-card-plugin-map-feed.js`. It has no runtime dependencies: Leaflet comes from ha-map-card.
306+
`dist/ha-map-card-plugin-map-feed.js`. It has no runtime dependencies, since Leaflet comes from ha-map-card.
307307

308308
Requires Node.js 22.13 or newer.
309309

‎docs/map-feed-format.md‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Map Feed format, version 1
22

3-
A map feed is a Home Assistant entity that describes a set of things on a map: ships, trains, buses, road
4-
works, road cameras, anything with a position. The [map feed plugin](../README.md) for ha-map-card draws any entity in this
5-
format. Anything can produce a feed: an integration, or a template entity.
3+
A map feed is a Home Assistant entity that describes a set of things on a map, such as ships, trains, buses, road
4+
works, road cameras or anything else with a position. The [map feed plugin](../README.md) for ha-map-card draws any
5+
entity in this format. Any integration or template entity can produce a feed.
66

77
The keywords **MUST**, **SHOULD** and **MAY** are used as described in
88
[RFC 2119](https://datatracker.ietf.org/doc/html/rfc2119).
@@ -48,7 +48,7 @@ anything that changes on its own, such as "2 min ago".
4848

4949
| Field | Type | Required | Meaning |
5050
| ------------------ | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
51-
| state | integer | **MUST** | Number of items. The source decides what an item is; usually it is the number of Point features. |
51+
| state | integer | **MUST** | Number of items. The source decides what an item is. Usually it is the number of Point features. |
5252
| `map_feed_version` | integer | **MUST** | `1`. The card uses this to recognise a feed. |
5353
| `geojson` | object | **MUST** | A GeoJSON `FeatureCollection` object (not a JSON string). |
5454
| `attribution` | string | SHOULD | Data credit, added to the map's attribution line. Required when the data licence asks for credit. |
@@ -60,10 +60,10 @@ longitude first.
6060

6161
## Features
6262

63-
| Field | Type | Required | Meaning |
64-
| ---------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
65-
| `id` | string | **MUST** | Unique within the feed and stable between updates. The card uses it to move an existing marker and keep its popup open. Prefix it with the kind of identifier: `ship:230113940`, `train:2026-09-14/8`, `vehicle:LPR/1042`. |
66-
| `geometry` | object | **MUST** | A GeoJSON `Point`, or a line or polygon: see [lines and polygons](#lines-and-polygons). WGS84 `[longitude, latitude]`. |
63+
| Field | Type | Required | Meaning |
64+
| ---------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
65+
| `id` | string | **MUST** | Unique within the feed and stable between updates. The card uses it to move an existing marker and keep its popup open. Prefix it with the kind of identifier, as in `ship:230113940`, `train:2026-09-14/8`, `vehicle:LPR/1042`. |
66+
| `geometry` | object | **MUST** | A GeoJSON `Point`, or a line or polygon (see [lines and polygons](#lines-and-polygons)). WGS84 `[longitude, latitude]`. |
6767

6868
## Feature properties
6969

@@ -77,16 +77,16 @@ longitude first.
7777
| `speed_kmh` | number | MAY | Speed over ground. Shown in knots for `ship.*` kinds, km/h otherwise. |
7878
| `delay_minutes` | number | MAY | Negative means early. Used by `color_by: delay`. |
7979
| `cancelled` | boolean | MAY | Shown as cancelled. |
80-
| `badge` | string | MAY | Short text drawn inside the marker: `IC 8`, `5`. Keep it to a few characters. |
80+
| `badge` | string | MAY | Short text drawn inside the marker, such as `IC 8` or `5`. Keep it to a few characters. |
8181
| `label` | string | MAY | Text beside the marker when labels are on. Defaults to `name`. |
82-
| `subtitle` | string | MAY | Second line of the popup: `Joensuu → Helsinki`. |
82+
| `subtitle` | string | MAY | Second line of the popup, such as `Joensuu → Helsinki`. |
8383
| `color` | string | MAY | CSS hex colour. Replaces the kind's default colour when the card colours by kind. |
8484
| `details` | row[] | MAY | Popup rows, in display order. See [rows](#rows). |
8585
| `notices` | string[] | MAY | Free-text notices shown under the rows. |
86-
| `footer` | string | MAY | Small grey line at the bottom of the popup: `MMSI 210533000 · IMO 9466219`. |
86+
| `footer` | string | MAY | Small grey line at the bottom of the popup, such as `MMSI 210533000 · IMO 9466219`. |
8787
| `detail_action` | object | MAY | More details, loaded when the popup opens. See [detail actions](#detail-actions). |
8888
| `images` | image[] | MAY | Pictures shown in the popup, such as a road camera's views. See [images](#images). |
89-
| `point` | string | MAY | Lines and polygons only: the `id` of the Point feature they belong to. |
89+
| `point` | string | MAY | The `id` of the Point feature a line or polygon belongs to. |
9090

9191
Properties the card doesn't know are ignored.
9292

@@ -106,7 +106,7 @@ kind is drawn as a plain dot.
106106

107107
Road works, announcements, accidents, weight restrictions and exempted transports are drawn as a warning sign,
108108
`road.camera` as a camera, and `bird` as a bird. A bird's badge starts with a small bird. The popup of something
109-
that moves (ships, trains, transit and `road.maintenance`) shows how old its position is; for everything else it
109+
that moves (ships, trains, transit and `road.maintenance`) shows how old its position is. For everything else it
110110
shows when the item was updated.
111111

112112
### Rows
@@ -138,7 +138,7 @@ a place, and the item's `images` when the pictures belong to the item as a whole
138138
}
139139
```
140140

141-
The card translates only what it renders itself: ages, speeds, delays and "cancelled". Everything else
141+
The card translates only what it renders itself, which is ages, speeds, delays and "cancelled". Everything else
142142
comes from the source in its own words, so a feed can carry any data without a card release.
143143

144144
### Images
@@ -174,13 +174,13 @@ When the popup is opened, the card calls the action with a response requested. T
174174

175175
## Lines and polygons
176176

177-
Features MAY have a `LineString`, `MultiLineString`, `Polygon` or `MultiPolygon` geometry: a stretch of road
178-
under construction, the route a snow plough has driven, a road section's driving conditions, an area.
177+
Features MAY have a `LineString`, `MultiLineString`, `Polygon` or `MultiPolygon` geometry, such as a stretch of
178+
road under construction, the route a snow plough has driven, a road section's driving conditions or an area.
179179

180180
They take the same properties as points, apart from the ones about movement and markers (`heading`,
181181
`stationary`, `speed_kmh`, `delay_minutes`, `cancelled`, `badge`, `label`, `detail_action`), which are ignored.
182182
The card colours them by `kind` or `color`, shows `name` on hover, and opens a popup when they are tapped and
183-
have something to show. Road kinds are drawn wider than other lines; `road.maintenance_track` is drawn thin and
183+
have something to show. Road kinds are drawn wider than other lines, and `road.maintenance_track` is drawn thin and
184184
faint, so routes stay in the background.
185185

186186
A line or polygon MAY belong to a Point feature, named in its `point` property. It is then drawn in that point's
@@ -229,7 +229,7 @@ example with the Douglas–Peucker algorithm and a tolerance of 10–20 metres.
229229
## Rules for sources
230230

231231
- Integrations **MUST** list `geojson` in `_unrecorded_attributes`, so only the count reaches the database.
232-
Template entities can't do this: exclude them from the recorder instead. Without that, the recorder drops
232+
Template entities can't do this, so exclude them from the recorder instead. Without that, the recorder drops
233233
all attributes above 16 384 bytes and logs a warning on every update.
234234
- Feature ids **MUST** be stable between updates, and coordinates **MUST** be `[longitude, latitude]`.
235235
- Actions named in `detail_action` **MUST** be read-only.

0 commit comments

Comments
 (0)