4 ms·
Yet another alternative is GeohashPhrase (https://www.qalocate.com/resources/ https://www.qalocate.com/resources/) which is a simple and direct mapping of word
by thelittlenag 7y ago
Yet another alternative is GeohashPhrase (https://www.qalocate.com/resources/ https://www.qalocate.com/resources/) which is a simple and direct mapping of word tuples to geohashes.
The word tuples are intentionally structured so they can form a phrase. The exact phrase is left up to the person, with the only constraint being that that phrase use all the base words.
And because of how word choice is made (words that map different parts of the geohash come from disjoint dictionaries) the phrase mapping is invariant under changes in recalled word ordering, word use (noun to verb, or adjective to noun), and more.
Some advantages of the GeohashPhrase:
1) Will be open source and free (Once we finalize the dictionaries and write some real docs.).
2) Designed for offline usage.
3) Designed to be friendly to humans. Phrases and words are MUCH more friendly than alphanumeric digits.
4) Multi-language. The encoding scheme works for most languages.
5) Resilient to errors in human memory, which tends to re-order words, change pluralization, etc.
6) Easy to read, write, share, etc.
7) Directly decodes to a geohash.
8) Works with any map.
-----------------------------------------
Here is a comparison side by side of each option:
Lat/Lon : -6.7184 , 129.5080
GeohashPhrase (Raw): salute tell small student muddy
GeohashPhrase ("Encoded"): The small muddy student told me of a salute.
XADDRESS: 7150 Magical Pearl - Maluku, Indonesia
WHAT3WORDS: percolator.surmount.retooled
GEOHASH: qyu1g0by7
MAPCODE: VQ6.1MFD
OPENLOCATIONCODE: 6Q5F 7GJ5+J6
-----------------------------
(Disclosure: I work for QALocate.)
- flak48 7y agoWill two close-by locations eg. just a meter apart have any part of the phrase in common?
- thelittlenag 7y agoA five word phrase is roughly a 5m x 5m region, so 1m wouldn't be enough to move into the next block. But in general yes, locations that are "close by" will share the same set of words. The mapping itself is extremely simple. A geohash is encoded as string of alphanumeric characters where each character is in base-32. This means each character encodes 5-bits of coordinate information. To get to a 5m x 5m region you need 45-bits worth or 9 geohash characters. To map this 9 character geohash to a phrase is simple - we simply use the binary representation of the characters as a numeric index into a fixed dictionary of words. The first character is mapped to a word in a dictionary containing 32 entries. After that we map characters in pairs to dictionaries of 1024 words; 2 geohash characters being 5-bits we get a 10-bit index. So two geohashes that share the same prefix will also share the same words, modulo our grouping scheme.