Places
The places module’s root lookups: finding Google places to set as locations. Admins only.
Root fields
Section titled “Root fields”| Field | Type | Description |
|---|---|---|
places staffql only |
IAudiencePlaces! |
The instance’s IAudiencePlaces mixin. Left out of the schema where its module isn’t installed. |
Objects
Section titled “Objects”AudiencePlacesView
Section titled “AudiencePlacesView”Object · implements IAudiencePlaces · staffql only
The local Places implementation of the places module’s root lookups.
| Field | Type | Description |
|---|---|---|
search staffql onlyafter: Stringbefore: Stringfirst: Intlast: IntlocaleId: IDquery: String!regions: Boolean |
PlaceSearchResultConnection! |
Finds places on Google Maps to set as venues’ and locales’ locations. requires places:read:* |
GooglePhoto
Section titled “GooglePhoto”Object
A photo of a place from Google, stored on our CDN. Google asks that its author be shown with it.
| Field | Type | Description |
|---|---|---|
author |
String |
Who took it, as Google credits them. |
authorUrl |
String |
A link to the author’s Google Maps profile. |
url |
PhotoURL! |
The photo’s CDN URL. |
GooglePlace
Section titled “GooglePlace”Object
What Google Maps says about a location, as of the last Refresh Google places run (or when its place was set). Fields Google has no value for are null.
| Field | Type | Description |
|---|---|---|
businessStatus |
String |
OPERATIONAL, CLOSED_TEMPORARILY or CLOSED_PERMANENTLY. |
category |
String |
Its main type, e.g. “Gay bar” or “Night club”. |
hours |
[String!]! |
Its opening hours, a line a day, e.g. “Monday: 4:00 PM – 2:00 AM”. |
isOpenNow |
Boolean |
Whether it is open now by its hours; null without hours. |
mapsUrl |
String |
Its page on Google Maps. |
name |
String |
Its name on Google Maps. |
phone |
String |
Its phone number, as written locally. |
photos |
[GooglePhoto!]! |
Google’s first few photos of it. |
priceLevel |
Int |
From 0 (free) to 4 (very expensive). |
rating |
Float |
Its average Google review rating, from 1 to 5. |
ratingCount |
Int |
How many Google reviews the rating averages. |
summary |
String |
Google’s short description of it. |
website |
String |
Its website, as Google lists it. |
OpeningHours
Section titled “OpeningHours”Object
A place’s opening hours and whether it’s open now, from Google (OpeningState),
in the place’s own time zone. Every field but lines is about the moment of the request.
| Field | Type | Description |
|---|---|---|
closesAt |
ISO8601DateTime |
When it next closes, while it is open. Null when closed, or open around the clock. |
isOpen |
Boolean |
Whether it is open now; null when nobody knows (UNKNOWN). |
label |
String |
One short line saying so, in its time zone: “Open until 2 AM”, “Opens at 4 PM”, “Opens tomorrow at 4 PM”, “Open 24 hours”, “Temporarily closed”. Null when the hours are unknown. |
lines |
[String!]! |
Its weekly hours, a line a day, e.g. “Monday: 4:00 PM – 2:00 AM”. Empty without hours. |
opensAt |
ISO8601DateTime |
When it next opens, while it is closed by its hours. Null when open or never opening. |
status |
OpeningStatus! |
Open, closed or unknown now. |
timeZone |
String |
The IANA time zone its hours are read in. |
PlaceSearchResult
Section titled “PlaceSearchResult”Object · staffql only
A place Google Maps knows, to set as a venue’s location.
| Field | Type | Description |
|---|---|---|
address staffql only |
String |
Where it is, e.g. “East Sprague Avenue, Spokane, WA, USA”. |
name staffql only |
String |
Its name on Google Maps. |
placeId staffql only |
String! |
Its Google place ID, for VenueInput.googlePlaceId. |
PlaceSearchResultConnection
Section titled “PlaceSearchResultConnection”Object · staffql only
The connection type for PlaceSearchResult.
| Field | Type | Description |
|---|---|---|
edges staffql only |
[PlaceSearchResultEdge] |
A list of edges. |
nodes staffql only |
[PlaceSearchResult] |
A list of nodes. |
pageInfo staffql only |
PageInfo! |
Information to aid in pagination. |
PlaceSearchResultEdge
Section titled “PlaceSearchResultEdge”Object · staffql only
An edge in a connection.
| Field | Type | Description |
|---|---|---|
cursor staffql only |
String! |
A cursor for use in pagination. |
node staffql only |
PlaceSearchResult |
The item at the end of the edge. |
PlacesProfile
Section titled “PlacesProfile”Object · implements IPlacesProfile
The Places module’s view of a venue, locale or location.
| Field | Type | Description |
|---|---|---|
details |
JSON |
The place details stored from Google, as Google sent them. Only on a location; null on a profile. |
hours |
OpeningHours! |
Its opening hours and whether it’s open now, in its time zone (a venue’s own when Google gave none). UNKNOWN without a Google place or hours. |
place |
GooglePlace |
Its Google place, if its location is one. |
placeId |
String |
Its Google place ID, from its location. |
Interfaces
Section titled “Interfaces”IAudiencePlaces
Section titled “IAudiencePlaces”Interface · implemented by AudiencePlacesView · mixin edge places on Audience · staffql only
The places module’s root lookups: finding Google places to set as locations. Admins only.
| Field | Type | Description |
|---|---|---|
search staffql onlyafter: Stringbefore: Stringfirst: Intlast: IntlocaleId: IDquery: String!regions: Boolean |
PlaceSearchResultConnection! |
Finds places on Google Maps to set as venues’ and locales’ locations. requires places:read:* |
IPlacesProfile
Section titled “IPlacesProfile”Interface · implemented by PlacesProfile · mixin edge places on ListingProfile, Location
What Google Maps says about a venue, locale or location, from its location.
| Field | Type | Description |
|---|---|---|
details |
JSON |
The place details stored from Google, as Google sent them. Only on a location; null on a profile. |
hours |
OpeningHours! |
Its opening hours and whether it’s open now, in its time zone (a venue’s own when Google gave none). UNKNOWN without a Google place or hours. |
place |
GooglePlace |
Its Google place, if its location is one. |
placeId |
String |
Its Google place ID, from its location. |
OpeningStatus
Section titled “OpeningStatus”Enum
Whether a place is open now, by its Google opening hours and business status (OpeningState).
CLOSEDClosed now by its hours; opensAt says when it next opens.CLOSED_PERMANENTLYGoogle marks it closed for good.CLOSED_TEMPORARILYGoogle marks it closed for now, whatever its hours say.OPENOpen now by its hours.UNKNOWNGoogle gave no hours. Apps treat it as possibly open and show nothing.