FediForum 2024 Location Sharing

As a fediverse user, I would like to share posts that show my presence at a location.

These notes are collected to support discussion during the upcoming FediForum Sep 12-14, 2024

Location sharing vocabularies already exist in ActivityPub as Place objects and Geo-Social Events with Activity Types arrive Arrive, Leave, and Travel .

It might be possible to extend wordpress-activitypub plugin to support place and location activities in wp post types.

This continues discussion from 2023 FediForum – Session: Physical Location in Fediverse data model and open mastodon issue #29002

Previously indieweb.org/location , geosocial networking, ( for profit: swarm/foursquare, gowalla, dodgeball )

As an example, Pixelfed allows including a place from a set list of cities.

  "location": {
    "type": "Place",
    "name": "Los Angeles",
    "longitude": "-118.243680",
    "latitude": "34.052230",
    "country": "USA"
  }

WordPress Notes

I will be at WordCamp US 2024 on September 17 for contributor day working on this integration.

filter “activitypub_transformer” in transformer/class-factory.php

		 * // Filter be object type
		 * add_filter( 'activitypub_transformer', function( $transformer, $object, $object_class ) {
		 *     if ( $object->post_type === 'event' ) {
		 *         return new My_Event_Transformer( $object );
		 *     }
		 *     return $transformer;
		 * }, 10, 3 )

class-base-object.php:

		$array = \apply_filters( 'activitypub_activity_object_array', $array, $class, $this->id, $this );
		$array = \apply_filters( "activitypub_activity_{$class}_object_array", $array, $this->id, $this );

Fedi Notes

Current Support:

Fedi Development

Example Use

  "location": {
    "name": "Palladium Box Office",
    "type": "Place",
    "longitude": "-0.1404904",
    "latitude": "51.5144945"
  },

Previously:

January 2024
– github/mastodon – Display embedded GeoTags #29002
– FourSquare / Swarm for fediverse demo by Terence Eden @[email protected] including a minimum viable Mastodon broadcast with check-in support

October 2023 – Mapping blog posts ( ap )- @[email protected] – WordPress Travelers’ Map plugin

September 2023 – FediForum – Session: Physical Location in Fediverse data model

January 2023
– FourSquare / Swarm @[email protected] , @[email protected] .
– github/mastodon – Add a location under a toot #22963

2018 – WordPress Pterotype plugin
2016 – GeoTag toggle #281 – github/mastodo
2012 – indieweb.org/location

Mapping Notes

  • Meridian – OpenStreetMap-based places database and API. Point of Interest reverse geo-coding and osm contribution tool