You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The addon reads and documents coordinates but never declares it, so GEO: only works if a site happens to define a matching field by hand. Part of giving #190 a complete, declared location contract instead of a set of conventions.
Field
resources/fieldsets/event.yaml, in the Location section:
coordinates — type: group containing latitude and longitude, both type: float
Statamic 6 core has no map or coordinates fieldtype, so a group is the shape. It also matches what the addon already reads and what existing sites have on disk, so there's nothing to migrate.
Tests
TDD — write these failing first.
a declared coordinates emits GEO: with both values
validation rejects a non-numeric latitude or longitude
The addon reads and documents
coordinatesbut never declares it, soGEO:only works if a site happens to define a matching field by hand. Part of giving #190 a complete, declared location contract instead of a set of conventions.Field
resources/fieldsets/event.yaml, in the Location section:coordinates—type: groupcontaininglatitudeandlongitude, bothtype: floatStatamic 6 core has no map or coordinates fieldtype, so a group is the shape. It also matches what the addon already reads and what existing sites have on disk, so there's nothing to migrate.
Tests
TDD — write these failing first.
coordinatesemitsGEO:with both valuesGEO:— confirms the Multi-day ICS downloads drop location, URL, description and coordinates #192 guard holds once the field is declared and therefore augmentedDocs
coordinatesout of the documented-but-undeclared list and into the fieldset sectionlatitude/longitudeshape and theGEO:mapping in the field table from Reconcile the contradicting ICS field docs #191Branch
feature/coordinates-fieldoffmain. Needs #192; otherwise independent — can land before or after theonline_urlandlocationwork.Part of #190.