Skip to content

Place

A Place is a physical location: a store, a warehouse, a venue, a pick-up point. It holds an address and geo coordinates, regular and special opening hours, amenities, and the places it contains or is contained in.

Modeled on schema.org/Place · JSON Schema · ABAC object type Place

Example

Create one with POST /places:

{
  "name": [
    {
      "at_language": "en",
      "at_value": "Northpeak Store Berlin Mitte"
    }
  ],
  "branchCode": "BER-01",
  "address": {
    "streetAddress": "Alexanderplatz 1",
    "postalCode": "10178",
    "addressLocality": "Berlin",
    "addressCountry": "DE"
  },
  "geo": {
    "latitude": 52.5219,
    "longitude": 13.4132
  },
  "openingHoursSpecification": [
    {
      "dayOfWeek": [
        "https://schema.org/Monday",
        "https://schema.org/Friday"
      ],
      "opens": "10:00:00",
      "closes": "20:00:00"
    }
  ]
}

Fields

Required: name.

Field Type Required Description
id string The object's id. Assigned by ObjectsGrid when the object is created.
at_context https://schema.org JSON-LD @context, always https://schema.org.
at_type Place JSON-LD @type, the object's type name.
at_id URL The object's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>, its JSON-LD @id: what References to it hold. Assigned by ObjectsGrid.
identifier string The object's id, as Schema.org identifier. Assigned by ObjectsGrid.
image URL image URL
name list of LanguageTaggedString Yes The Object Name. See schema.org/name.
alternateName list of LanguageTaggedString An alias for the item
description list of LanguageTaggedString The Object Description. See schema.org/description.
sameAs URL URL of a reference Web page that unambiguously indicates the item's identity
url URL This Object URL
additionalType string (110 values) The kind of place: LocalBusiness or a Schema.org subtype of it (Store, Restaurant, Hotel...), a venue (EventVenue, StadiumOrArena, Museum...), a sports facility or a residence (ApartmentComplex): its JSON-LD @type. None for a Place.
address PostalAddress The physical address of the item.
aggregateRating AggregateRating The overall rating, based on a collection of reviews or ratings, of the item.
additionalProperty list of PropertyValue A property-value pair representing an additional characteristic of the Place.
amenityFeature list of LocationFeatureSpecification An amenity feature (e.g. a characteristic or service) of the Accommodation.
branchCode string A short textual code (also called 'store code') that uniquely identifies a place of business.
containedInPlace Reference to Place The basic containment relation between a place and one that contains it.
containsPlace computed: list of Place The basic containment relation between a place and another that it contains. Computed, read-only: the objects whose Place.containedInPlace points to this object, listed from that type; never stored or written.
event list of References to Event Upcoming or past events associated with this place or organization.
faxNumber string The fax number.
geo GeoCoordinates The geo coordinates of the place.
globalLocationNumber string The global location number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place.
hasDriveThroughService boolean Indicates whether the place has a drive-through service.
hasGS1DigitalLink URL Indicates whether the place supports the specified digital link.
hasMap URL A URL to a map of the place.
isAccessibleForFree boolean A flag to signal that the Place is accessible for free.
isicV4 string The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
keywords list of string Keywords or tags used to describe this place. Multiple entries in a keywords list are typically delimited by commas.
latitude number The latitude of a location. For example 37.42242 (WGS 84).
logo URL An associated logo.
longitude number The longitude of a location. For example -122.08585 (WGS 84).
maximumAttendeeCapacity integer The total number of individuals that may attend an event or venue.
openingHoursSpecification list of OpeningHoursSpecification The opening hours of a certain place.
publicAccess boolean A flag to signal that the Place is open to public visitors.
parentOrganization Reference to Organization LocalBusiness: the Organization the business belongs to, e.g. the chain of a store
hasOfferCatalog list of References to OfferCatalog LocalBusiness: the catalogs of the services or products the business offers
makesOffer computed: list of Offer LocalBusiness: the Offers the business makes. Computed, read-only: the objects whose Offer.offeredBy points to this object, listed from that type; never stored or written.
paymentAccepted string LocalBusiness: the payment methods accepted, e.g. 'Cash, Credit Card'
priceRange string LocalBusiness: the price range, e.g. '$$' or '10-30 EUR'
currenciesAccepted string LocalBusiness: the currencies accepted, ISO 4217 codes, e.g. 'EUR, USD'
review computed: list of Review A review of the item. Computed, read-only: the objects whose Review.itemReviewed points to this object, listed from that type; never stored or written.
slogan list of LanguageTaggedString A slogan or motto associated with the item.
smokingAllowed boolean Indicates whether smoking is allowed.
specialOpeningHoursSpecification list of OpeningHoursSpecification The special opening hours of a certain place.
telephone string The telephone number.
tourBookingPage URL A page providing information on how to book a tour of some place.
tags list of Tag Tags your ABAC policy decides on. Created empty when not sent, kept by a PUT that leaves them out, cleared by null or [].
checkinTime string LodgingBusiness: the check-in time, HH:MM
checkoutTime string LodgingBusiness: the check-out time, HH:MM
numberOfRooms number LodgingBusiness: the number of rooms or units
starRating Reference to Rating LodgingBusiness: its official star rating, a Rating (ratingValue, and its author, the rating body)
petsAllowed boolean LodgingBusiness: whether pets are allowed
availableLanguage list of string LodgingBusiness: the languages its staff speak, BCP 47
audience Audience LodgingBusiness: who it is meant for, e.g. families, business travellers
hasMenu list of References to Menu FoodEstablishment: its menus
areaServed list of any The areas where the business works: a name (text, e.g. 'Berlin'), a GeoCircle (a radius around a point) or a GeoShape, each with its at_type. Stored and returned, not searchable.
containsAccommodation computed: list of Accommodation The Accommodations it contains: a hotel's rooms, a building's apartments. Computed, read-only: the objects whose Accommodation.containedInPlace points to this object, listed from that type; never stored or written. ObjectsGrid's, beyond Schema.org: Schema.org's containsPlace would hold them, but here it lists Places only; left out of JSON-LD documents.

REST API

Base URL https://apis.objectsgrid.com. Every request sends the X-ObjectsGrid-AccessPoint and Authorization: Bearer <access token> headers; see the REST API guide.

Operation Request
Create POST /places
List and search GET /places
Create up to 100 at once POST /places/batch
Retrieve GET /places/{id}
Retrieve as a JSON-LD document for your pages GET /places/{id} with Accept: application/ld+json; see JSON-LD for your pages
Replace PUT /places/{id}
Update some fields PATCH /places/{id}
Delete DELETE /places/{id}

The OpenAPI contract, with every parameter and response: Places (JSON).

GraphQL

Endpoint POST https://apis.objectsgrid.com/graphql; see the GraphQL guide.

Operation Field
Query place(id: ID!, version: String): Place
Query places(where: PlaceWhereInput, orderBy: [PlaceOrderByInput!], first: Int, after: String): PlaceConnection!
Query placesGroupBy(by: [PlaceGroupByField!]!, where: PlaceWhereInput, having: PlaceHavingInput, orderBy: [PlaceGroupByOrderByInput!], first: Int, after: String): PlaceGroupByConnection!
Mutation createPlace(input: CreatePlaceInput!): Place!
Mutation updatePlace(input: UpdatePlaceInput!, expectedVersion: String): Place!
Mutation deletePlace(id: ID!, expectedVersion: String): Boolean!

Webhook events

Subscribe to these events in your webhook configuration to be called when a Place changes:

PlaceCreated, PlaceUpdated, PlacePatched, PlaceDeleted.