i see a lot of news about australian politics, news of seattle, darmstadt, brazil, … all places where i don’t live, where the posts aren’t relevant to me. it would be cool to be able to tag posts/communities with a geographical location so i can easily filter which posts are / aren’t probably relevant to me. in one setting in my profile, instead of having to block each community individually (there’s hundreds of them at this point)

  • Aniki@feddit.orgOP
    link
    fedilink
    English
    arrow-up
    5
    ·
    11 days ago

    i propose that each post has a (one or many) geo_tag fields that just link to the canonical wikipedia page about the place, for example,

    
    {
      "post_id": 1543535,
      "geo_tags": [
        "https://en.wikipedia.org/wiki/Melbourne"
      ]
    
    }
    
    
        • Baŝto@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 day ago

          https://www.wikidata.org/wiki/Q3141

          It’s linked on that Wikipedia article. It’s very useful to connect data independent of language. OSM can use it to connect places to more data. I think searxng uses it to generate infoboxes

          It’s enough to automatically extract coordinates and compare that to your location. For an area comparation it is connected to the OSM relation https://www.openstreetmap.org/relation/4246124 among other things. Getting actual areas is pretty hard due to heterogene data

          Q3141 is actually enough to know what it is

          Each item is allocated a unique persistent identifier called its QID, a positive integer prefixed with the upper-case letter “Q”

          • Aniki@feddit.orgOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            24 hours ago

            oh, that is really useful! thank you

            xD it even has its lemmy community linked

            which seems super useful actually, if you just enter your location.

    • Pamasich@kbin.earth
      link
      fedilink
      arrow-up
      7
      ·
      11 days ago

      Why invent new stuff for this? AS2 has the location property and Place object, which imo should be used for this. It’s not like the request here requires functionality not enabled by those.

    • hendrik@palaver.p3x.de
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      11 days ago

      I’m afraid if the idea is something like that, it won’t allow users to search for content nearby. That’d require some coordinates to calculate distance. If it’s just names, it’s closer to the concept of hashtags. You could as well add #Melbourne in the text (on Mastodon for example). And people would then be able to click on #Melbourne or maybe subscribe to the hashtag once/if that feature is ready on Lemmy.

      • Aniki@feddit.orgOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        11 days ago

        yeah but hashtags don’t tell you anything about what kind of thing it refers to. Is it a place? Is it a person? Is it an event? It does not provide that structured data that would be useful.

        • hendrik@palaver.p3x.de
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          11 days ago

          The thing is, a link to a Wikipedia article isn’t structured data either. It could very well link to the article about The Little Mermaid. Or the List of fictional pirates. So in that regard, both approaches are about on the same level. The hashtag just cuts off the unnecessary “https://en.wikipedia.org/wiki/…”

          • Aniki@feddit.orgOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 days ago

            yeah it’s more about having a Place: ... property, not so much about the link itself.