Display embedded GeoTags #508

Open
opened 2024-01-29 13:52:12 +01:00 by voxdumnonia · 1 comment

Terence Eden is in the process of developing a location-aware ActivityPub server. His main idea is for a "FourSquare"-like experience, but for it to work well, it obviously needs other servers in the ActivityPub space to handle the location data. What follows is his entry on the Issues page of Mastodon's Github, but I think it applies to IceShrimp too.


Pitch

When an ActivityPub post contains geolocation metadata, that location should be displayed in the user interface.

For example, the account @edent_location@location.edent.tel creates AP posts in the style of a FourSquare check-in to a location:
{ "@context": "https://www.w3.org/ns/activitystreams", "id": "https://location.edent.tel/9bc18f6eb339ec475c9bcfe69acf21fb", "type": "Note", "published": "2024-01-28T12:13:38+00:00", "attributedTo": "https://location.edent.tel/edent_location", "content": "I just checked-in to <a href=\"https://www.openstreetmap.org/way/958999496\">John Lennon's Imagine Mosaic</a>.", "to": [ "https://www.w3.org/ns/activitystreams#Public" ], "location": { "name": "John Lennon's Imagine", "type": "Place", "longitude": 40.77563, "latitude": -73.97474 } }

At the moment, the Iceshrimp interface and API don't expose this location data. Services like PixelFed and honk will display it.

I would like to see (in order of difficulty)

IceShrimp displays the post's location in the web interface by text.
IceShrimp displays the post's location in the web interface in the form of an OpenStreetMap embed.
IceShrimp allows searching by location.
IceShrimp allows users to attach their own geolocation to their posts in the same way they attach media.

Motivation

This feature is useful for anyone who decides to share a location. Both Twitter and Facebook support the concept of attaching a location to your own posts. Twitter takes the raw latitude and longitude and displays it as a human-readable location. Facebook allows a user to select a location (e.g. Starbucks) to display.

It allows people to search for posts in a specific location (e.g. what's happening in Berlin).

Obviously, this is an optional feature. If a user is privacy conscious, they shouldn't attach their location to a post.


I hope I'm not overstepping anything with this suggestion - I've not found other issues related to location data.

[Terence Eden](https://mastodon.social/@Edent) is in the process of developing a location-aware ActivityPub server. His main idea is for a "FourSquare"-like experience, but for it to work well, it obviously needs other servers in the ActivityPub space to handle the location data. What follows is his entry on the Issues page of Mastodon's Github, but I think it applies to IceShrimp too. --------------------------- ### Pitch When an ActivityPub post [contains geolocation metadata](https://www.w3.org/TR/activitystreams-vocabulary/#places), that location should be displayed in the user interface. For example, the account [@edent_location@location.edent.tel](https://location.edent.tel/edent_location) creates AP posts in the style of a FourSquare check-in to a location: `{ "@context": "https://www.w3.org/ns/activitystreams", "id": "https://location.edent.tel/9bc18f6eb339ec475c9bcfe69acf21fb", "type": "Note", "published": "2024-01-28T12:13:38+00:00", "attributedTo": "https://location.edent.tel/edent_location", "content": "I just checked-in to <a href=\"https://www.openstreetmap.org/way/958999496\">John Lennon's Imagine Mosaic</a>.", "to": [ "https://www.w3.org/ns/activitystreams#Public" ], "location": { "name": "John Lennon's Imagine", "type": "Place", "longitude": 40.77563, "latitude": -73.97474 } }` At the moment, the Iceshrimp interface and API don't expose this location data. Services like [PixelFed](https://pixelfed.social/p/dansup/75783646421848064?fs=1) and [honk](https://benjojo.co.uk/u/benjojo/h/5j4yjq8JbrKY6Vp79K) will display it. I would like to see (in order of difficulty) IceShrimp displays the post's location in the web interface by text. IceShrimp displays the post's location in the web interface in the form of an OpenStreetMap embed. IceShrimp allows searching by location. IceShrimp allows users to attach their own geolocation to their posts in the same way they attach media. ### Motivation This feature is useful for anyone who decides to share a location. Both Twitter and Facebook support the concept of attaching a location to your own posts. Twitter takes the raw latitude and longitude and displays it as a human-readable location. Facebook allows a user to select a location (e.g. Starbucks) to display. It allows people to search for posts in a specific location (e.g. what's happening in Berlin). Obviously, this is an optional feature. If a user is privacy conscious, they shouldn't attach their location to a post. --------------------------- I hope I'm not overstepping anything with this suggestion - I've not found other issues related to location data.
zotan added the
enhancement
label 2024-01-29 20:07:25 +01:00
Owner

Heya! This looks very interesting, I'll keep it in mind for our rewrite. Once the basics are done over there, I'll comb through all open issues on this repository and see if they're resolved and if not, move them over to the other repo. Cheers!

Heya! This looks very interesting, I'll keep it in mind for our [rewrite](../iceshrimp.net). Once the basics are done over there, I'll comb through all open issues on this repository and see if they're resolved and if not, move them over to the other repo. Cheers!
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: iceshrimp/iceshrimp#508
No description provided.