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.30063,-123.13149

To link to it, you would use ‘geo:49.30063,-123.13149’.

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.30063,-123.13149). 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: https://wiki.openstreetmap.org/wiki/Geo_URI_scheme


EDIT: I forgot to mention, you can also use apps like this one to convert maps links between each other

https://github.com/jakubvalenta/GeoShare

https://f-droid.org/packages/page.ooooo.geoshare/

https://apt.izzysoft.de/fdroid/index/apk/page.ooooo.geoshare

  • DougPiranha42@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    1 month ago

    This sounds nice. On iphone, nothing happens when I click your link. When I paste it in safari, it searches for it, and the ddg results are coordinates finder websites, not related to the specific location.

  • deltapi@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 month 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

  • aim4harmony@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    1 month ago

    I got the correct area on Fennec -> CoMaps (app) on /e/OS. ☺️ The website alone resulted in a blank page.

  • GTG3000@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month 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
      2
      ·
      1 month 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

    • pelespirit@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 month ago

      You need the ! to start it off.

      ![Let’s see](geo:37.1213785, -98.9773100)

      Edit: Not working

      Edit 2, trying again:

      ![Let’s see](geo:37.1213785 -98.9773100)

      Edit 3: no worky

      Edit 4: Now it works as a link, thanks to the other posters, but it doesn’t really do anything. Maybe Ublock Origin?

      Let’s see

    • bampop@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 month ago

      For me in Firefox it just takes me to my search engine, which proposes a bunch of sites to convert gps coordinates, top item is a front end for google maps. No OpenStreetMaps to be seen. Doesn’t look like it’s a universally supported thing. Also none of the position links in this thread are clickable

      • friend_of_satan@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month 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.

  • Otter@lemmy.caOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 month ago

    An unnecessary complicated example where I use an image in the first part of the markdown notation:

    [![A computer icon of a map location pinpoint with geographic context.](https://thumb.wikimedia.org/wikipedia/commons/thumb/e/e2/Pin_location_context.svg/330px-Pin_location_context.svg.png)](geo:49.30063,-123.13149)

    Which renders as:

    A computer icon of a map location pinpoint with geographic context.


    Also, no, I do not live at this location. Not currently.

    • Zachariah@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      1 month ago

      Also, no, I do not live at this location. Not currently.

      You otter consider it though. Free food. Swim any time you want. That’s the life.

      Also: Unfortunately, in Voyager, the geo link is rendered just as the link description and isn’t clickable. And on iOS, I tried Firefox Focus and Safari and both just took me to a web search for longitude and latitude. I really wish it worked because it’s a great feature.

  • ArchEngel@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 month ago

    Does not seem to open via Thunder. Can confirm that copying and pasting it into CoMaps or Waterfox works great though.

    I have submitted a feature request to Thunder.

  • chunes@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 month 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.

  • Nurgus@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

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

    • teolan@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 month 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.

    • Otter@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month 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