Tag: Mapping

  • Location hashtags

    While people already tag their posts with hashtags derived from city or other location names (e.g. , ), these hashtags aren’t always useful: if you want to see content from just your neighborhood in a large city, or content that is local to your current position in a rural area that does not have a single, useful location name, there might not be any agreed-upon hashtag that can be searched for.

    Even in cases where such a hashtag does exist, it might be hard to learn about the exact one being used, for example if you are new to a certain region as a visitor. Last but not least, name hashtags might not be unique: there are at least 30 locations sharing the name Berlin, plus several more non-location entities or people that might be referenced instead – and there are a lot of Central Parks all over the world.

    Screenshot of the Mastodon web interface, displaying statistics about the hashtag #Berlin: 1.3K posts, 532 participants, 116 posts today.
    How many of these posts are about Berlin, Alabama?

    Geocoding to the rescue!

    Instead of picking a random name that might or might not be a good way to reference a location, an existing geocoding system can be used to encode coordinates of a location or area into a short string, or decode such strings back into coordinates. These geocodes can then be used as hashtags, either directly or with some additional formatting.

    One such geocoding system is Open Location Code (OLC), which uses short strings like 9F4C6VWR+C5 to identify any location world-wide. These strings can additionally be abbreviated (9F4C6VWR+, 9F4C6V00+), corresponding to larger areas roughly the size of a neighborhood or city district.

    Especially the last one with six relevant digits turns out to be useful, with a good compromise between location accuracy and area size.

    Formatting suggestion

    These strings could be used as-is, but are better amended as follows:

    • “Geo” prefix – with a common prefix, location hashtags will be grouped in search results, and can more easily be identified as a hashtag referencing a location instead of, say, a sports result.
    • While the ‘+’ and ‘0’ characters are meaningful parts of the OLC specification, they aren’t strictly necessary when used as a hashtag. Dropping these characters can reduce the string length by a third.
    • Optionally, if identifying the exact geocoding system is considered useful in a specific context, it can be suffixed with a ‘:’ character, which will typically terminate the hashtag.
    • Optionally, to aid discoverability, cascading geocodes (e.g. the six-digit followed by the four-digit code) can be used.

    A resulting location hashtag line could then look like this:
    :OLC

    Use cases

    This concept is not a full replacement for, nor can it be fully replaced by, dedicated applications that automatically tag some or all posts of a user with their current location, use geotagged digital photos, and/or use the device’s current location to display content that was created nearby using the same application. While these applications can be interesting and useful, location hashtags differ from them by allowing among other things:

    • talking about your current whereabouts without revealing your exact location, by using a hashtag that for example represents a larger area of several square kilometers
    • enhancing established posting routines instead of having to adopt something completely different, for example by
      adding matching location hashtags to weekly photo posts
    • building local communities on already existing social media platforms, without necessarily isolating content from the rest of the open web, and without relying on server-side functionality, like a “Nearby” feed, that may or may not exist (yet)
    • enabling various forms of grassroot movement in a community or district, without having to convince people of a
      different platform at the same time
    • participating in conversations about a certain location even while not currently being at that location
  • Open Location Code

    Open Location Code (OLC) is a geocoding system that encodes latitude/longitude coordinates into a short string of typically 9-12 characters, the idea being that these strings can be communicated better than the latitude/longitude coordinates themselves.

    Individual codes are also called plus codes, because the OLC specification mandates a ‘+’ character after the eighth code digit for easier identification. An example is the plus code 9F4MG98H+G3, encoding the location (52.516312,13.377688) – or rather, a small area of around 100m² including the location.

    Full vs. Short codes

    Full plus codes – codes with eight characters preceding the ‘+’ – are globally unique, and can be decoded offline and without any additional information. Alternatively, a reference location can be used to shorten plus codes by dropping leading characters.

    This reference location needs to be known to properly decode the shortened plus code. It can be added to the end in form of a place name, in which case the example location given above becomes G98H+G3, Berlin. It may also be shared knowledge, for example when arranging a meeting in a certain city.

    One promoted use case for short plus codes are postal services in regions where street adresses don’t exist. After getting a postal item to the correct city, a short plus code like G98H+G3M could be used within the city to identify the correct dwelling to deliver to.

    Exact vs. coarse location

    While plus codes are mostly designed to address a specific location, they can also be used to identify larger areas, by removing characters (or replacing them with ‘0’ as a padding character) from the end:

    example codeapproximate size
    9F4MG98H+G3Mprecise enough to identify a specific entrance to a building
    9F4MG98H+G3single-family house
    9F4MG98H+small neighborhood
    9F4MG900+city district
    9F4M0000+larger than Berlin, Germany
    9F000000+most of the Scandinavian peninsula plus surrounding seas, large parts of Germany, Poland, the Netherlands, Belgium etc.
    comparison between plus codes of various lengths and the area identified by that code

    The multi-colored elephant in the room

    The Open Location Code system was developed by one of Google’s engineering teams, and is actively used on Google Maps: you can search for any plus code, and points of interest will typically display their shortened plus code.

    While that makes the use of short codes somewhat controversial – the typical argument being that decoding a short code will only work while having access to the same geocoding database that was used to shorten the code in the first place – it doesn’t affect the use of full plus codes at all, and is a mostly theoretical concern in many other scenarios.

    Links