roberdam / Xaddress
- четверг, 11 августа 2016 г. в 03:13:53
Ruby
Xaddress - Give 7 billion people an instant physical address
Give 7 billion people an instant physical address that can be used offline and decoded with low tech (pen & paper).
Xaddress encodes the latitude & longitude of a place in a form that resembles a normal address and can be decoded back easily even in a low tech environment using paper, pen and a physical map.
TRY IT IN ENGLISH | PRUEBALO EN ESPAÑOL
The demo site uses some free apis with limited requests per day,
some functionality might be unavailable on high demand.
Used like a visual hash to ensure that you write the Xaddress right, if you change any letter it will generate another image, for example MAGICAL PEARLS will show you a different image so you can know that you write a wrong address.
If you want to transmit your Xaddress by phone you will say
"7150 MAGICAL PEARL - Maluku ,Indonesia" my avatar is a boot
You can see right away the country and state where that Xaddress is located, and you can recognize it as an address.
By default Xaddress create 2 kind of codes, each one independent from the other, the short code can be decoded by itself, it can have 1 meter accuracy, and is useful to storage or send it as a link, like ubicate.me/NOMATAL-KOROFAD
Now to get started with Xaddress you would perform the following:
git clone https://github.com/roberdam/Xaddress.git
cd Xaddress
bundle
ruby encode.rb "-6.7184,129.5080"
You can use it without using geocoder by specify state and country in the command line:
ruby encode.rb "-6.7184,129.5080" "Maluku, Indonesia"
ruby decode.rb "7150 MAGICAL PEARL - Maluku, Indonesia"
Option | Location : -6.7184 , 129.5080 |
---|---|
XADDRESS | 7150 Magical Pearl - Maluku, Indonesia |
WHAT3WORDS | percolator.surmount.retooled |
GEOHASH | qyu1g0by7 |
MAPCODE | VQ6.1MFD |
OPENLOCATIONCODE | 6Q5F 7GJ5+J6 |
There is a lot to do if you want to contribute: