Skip to content

Declare coordinates in the fieldset #194

Description

@edalzell

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:

  • coordinatestype: 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.

Docs

  • move coordinates out of the documented-but-undeclared list and into the fieldset section
  • document the latitude / longitude shape and the GEO: mapping in the field table from Reconcile the contradicting ICS field docs #191
  • note it's optional, and only meaningful alongside a physical location

Branch

feature/coordinates-field off main. Needs #192; otherwise independent — can land before or after the online_url and location work.

Part of #190.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions