Associated Type: Location

Activity Vocabulary: location

PropertyBase SpecRequiredDescriptionRestrictions
typeActivity Vocabulary 2.0YESIdentifies the type of the objectMUST be set to Place
nameActivity Vocabulary 2.0YESThe display name for the location
accuracyActivity Vocabulary 2.0noThe accuracy of the coordinates as a percentage. (e.g. “94.0” means “94.0% accurate”)
altitudeActivity Vocabulary 2.0noThe altitude of the location
latitudeActivity Vocabulary 2.0noThe latitude of the location
longitudeActivity Vocabulary 2.0noThe longitude of the location
radiusActivity Vocabulary 2.0noThe area around the given point that comprises the location
unitsActivity Vocabulary 2.0noThe units for radius and altitude (defaults to meters)MUST be one of these: cm, feet, inches, km, m, miles

Warning

Location data may pose a privacy danger to users. Users should be warned before publishing location data.

Example

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Note",
  "content": "I'm in NYC!",
  "mediaType": "text/plain",
  "location": {
    "type": "Place",
    "name": "New York City, NY",
    "latitude": "40.73",
    "longitude": "-73.93",
    "accuracy": "94.0"
  },
  "published": "1970-01-01T00:00:00+00:00"
}