Nearby card

Featured place with photo and walk time, the closest places by walk and today's events nearby.

Supplied nearby places and events surround a featured or nearest-open destination, shown with its photo and walking time. Primetime introduces that destination with a gentle hero entrance over a slow district-signpost background, adding quiet cues at supplied event starts and data updates. Closing-soon and stale states remain restrained. Existing selection, opening-status and event-window rules are retained.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Public information. Tags: Wayfinding and directories, Lobbies and reception.

Data and privacy

Feed: screenrig.nearby/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Nearby"maxLength: 40
areastring""maxLength: 40The neighbourhood's name, when the feed carries none.
showstring"both""both", "places", "events"What to list: places and events, or one of them.
countinteger5minimum: 2; maximum: 8Most rows in each of the places and events lists.
windowHoursinteger12minimum: 1; maximum: 48Events starting later than this are left out.
walkMetersPerMininteger80minimum: 40; maximum: 120Walking pace for a distance without a walk time.
unitsstring"metric""metric", "imperial"metric: m and km. imperial: ft and mi.
staleMinutesinteger30minimum: 1; maximum: 1440
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
placesarray[]minItems: 0; maxItems: 60Places near the screen. A feed (screenrig.nearby/v1) wins when present; the data store supplies the same rows otherwise.
places[].idstringmaxLength: 40
places[].namestringminLength: 1; maxLength: 50; Required
places[].categorystringmaxLength: 30For example Coffee, Restaurant, Pharmacy, Park.
places[].walkMinnumberminimum: 0; maximum: 240
places[].distanceMnumberminimum: 0; maximum: 20000
places[].ratingnumberminimum: 0; maximum: 5
places[].priceLevelintegerminimum: 1; maximum: 4
places[].openboolean
places[].opensAtstringmaxLength: 32ISO 8601; the next opening, when closed.
places[].closesAtstringmaxLength: 32ISO 8601; today's closing time.
places[].photostringmaxLength: 120A media reference (media:<id>).
places[].featuredbooleanfalse
eventsarray[]minItems: 0; maxItems: 60Events near the screen. A feed wins when present; the data store supplies the same rows otherwise.
events[].idstringmaxLength: 40
events[].titlestringminLength: 1; maxLength: 80; Required
events[].venuestringmaxLength: 50
events[].categorystringmaxLength: 30
events[].startstringmaxLength: 32; RequiredISO 8601.
events[].endstringmaxLength: 32ISO 8601.
events[].walkMinnumberminimum: 0; maximum: 240
events[].distanceMnumberminimum: 0; maximum: 20000
events[].freeboolean
events[].photostringmaxLength: 120A media reference (media:<id>).
updatedstring""maxLength: 32When the data was fetched, ISO 8601 (data store only; a feed carries fetchedAt).

Example params

{
  "theme": "neomustard"
}
screenrig card create --type nearby --major 1 --file params.json --context-file context.md

Example data

{
  "places": [],
  "events": [],
  "updated": ""
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

Use this card

Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.