~shakna/j6

A worded location encoding
Add link to map
Added a simple test. Made callable as library
Reflect db changes in readme

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~shakna/j6
read/write
git@git.sr.ht:~shakna/j6

You can also use your local clone with git send-email.

J6

This is a simplistic word-based geolocation system.

The more words in common, the closer two locations are together (something other systems struggle to encode well).


Stability

This was a quick project. I haven't spent the time necessary to guarantee each part of it works correctly.

The dictionary used has been changed several times.

If you encounter any errors, please report it.


Contrived Example:

Longitude to 6 Decimal Places: 178.000000

Latitude to 6 Decimal Places: 68.000000

unnerving-halogen-dropper-treason-twisting-deviator

6 decimal places gives you a 10cm resolution

An extremely rough JS implementation can be found here.


How it works:

It's quite simple.

There's a list of words kept for each of the final tokens, which have no crossover.

The first token is the number before the decimal place in the longitude.

The second token is the number before the decimal place in the lattitude.

The third token is the first three decimal places of the longitude.

The fourth token is the first three decimal places of the lattitude.

The fifth token is the last three decimal places of the longitude.

The sixth token is the last three decimal places of the lattitude.