For each example in this post, I will be linking to the sea otter pools at the Vancouver aquarium. That location has the coordinates of 49.301,-123.131.

To link to it, you would use ‘geo:49.301,-123.131’.

Depending on your web browser, pasting that into the search bar might prompt you to select which map website you want to use to view that location. For me in Firefox, it asked me to pick between Google Maps and OpenStreetMaps. It’s even more convenient on mobile, where it asks me which map app I want to open it with. Both CoMaps and Google Maps handled it correctly.

If you are writing a post or comment on Lemmy/Piefed/etc., you can place it in the second part of the markdown link format: [Sea Otter Pools](geo:49.301,-123.131). This would output like this: Sea Otter Pools

The linked OpenStreetMap wiki page has a good summary of how well various apps support this scheme. A lot of people here are active in the open source space, so please consider following up with the apps that are currently missing support or have partial support for this.

  • GTG3000@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    Doesn’t do anything as far as I can tell? Or is this android specific?

    Also the links don’t work in discord.

    • gwl [he/him]@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 days ago

      It’s what’s known as a “Protocol URI”, which the OS and/or browser have to choose what to do with that

      Sounds like you have an OS or Browser that haven’t implemented the protocol

  • cloudsurfer@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    Does anyone know, why GitHub of all places does not support geo links in their readme or issue markdown files?

    • filcuk@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 days ago

      Mailto is explicitly allowed in the sanitizer they use, other such uri schemes aren’t.
      This is relatively standard, likely due to the mixed support.
      Geo is not well supported, and ones like sms are platform-dependent.
      It’s just a pain noone wants to deal with.

    • arschfidel@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 days ago

      For me it does work when I hold press the link and then choose “Open in external” in the popup that opens. But yes, simply tapping does nothing.

  • Nurgus@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    Is this better than What Three Words which also has a URL scheme? And is more memorable.

    • Otter@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 days ago

      Since WhatThreeWords is proprietary, it likely won’t be as easy to get it implemented in everything. I think the difficulty with coordinates can be solved by having an easy way to copy the Geo URI from various map apps

    • teolan@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 days ago

      The geo URL scheme works even for non English speakers and it won’t give you a location on the other side of the world if you lake a typo or pronounce it bad.

      • Blackmist@feddit.uk
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 days ago

        I mean, that’s kind of on purpose with W3W.

        A slight error should make the recipient go “Wait, what? That’s in Venezuela!” rather than sending an ambulance crew to a location like 20 miles away from you.

      • friend_of_satan@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 days ago

        maybe geo:earth.surface/lat,lon?date=date or geo:mars.sky?lat=lat,lon=lon,date=date or something? I’m sure there could be a stanard syntax for but I’m pretty ignorant about how that could work well.

      • friend_of_satan@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 days ago

        I’m trying to say “great job pointing that out” without soundling like an LLM. But seriously, I’m happy you pointed that out. I completely forgot about those syntaxes. After you mentioned them, I went and browsed RFC3986 and found these sample URIs, which include news, mailto, ftp, and more, which covers both // style and non-// style. https://www.rfc-editor.org/info/rfc3986/#section-1.1.2

        It’s too late for me to claim that I fully grok the nuances, so that’ll have to wait for anther day, but I appreciate your comment. TIL some cool stuff.

  • deltapi@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 days ago

    Very cool, this was the result for me, so at least on android it seems to work as advertised. A picture of an app choice dialog after checking on a 'geo' link showing several map/location apps to choose from

  • OldChicoAle@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 days ago

    Cool stuff, but don’t use this for your business. You want actual links that will always work regardless of browser support for Geo. You want your customers to easily retrieve information so you gain their business.

  • chunes@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 days ago

    Depending on your web browser, pasting that into the search bar might prompt you to select which map website you want to use to view that location. For me in Firefox, it asked me to pick between Google Maps and OpenStreetMaps.

    I’m on Firefox and all it did was initiate a web search that found one result: this thread. If it’s a hyperlink, all it does is open a blank page.