Nearby card

What is around the screen: a featured place with its walk time and photo, the closest places by walk and today's events nearby.

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

Previews

Nearby
Canvas
Nearby
Corner
Nearby
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

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 and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

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).

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "nearby",
  "primitive": "card",
  "card": "nearby",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "nearby-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/nearby-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"places":[],"events":[],"updated":""}}'