roberdam / Xaddress

Xaddress - Give 7 billion people an instant physical address
http://xaddress.org
MIT License
1.19k stars 52 forks source link

Documentation Request: Encoding/Decoding Algorithm #20

Closed spidergears closed 7 years ago

spidergears commented 7 years ago

Can you provide some documentation around encoding and decoding algorithms. The process for encoding the latlng, by-hand looks significantly different from what is used in Ruby encoder. Since most variable names and function names are in Spanish (I guess), comprehending the meaning is a bit difficult.

roberdam commented 7 years ago

Of course, I will make a pseudocode step by step guide to port xaddress on any language tomorrow using actual tables so you dont have to rely on the ruby code

roberdam commented 7 years ago

@spidergears @elpoisterio here is the pseudocode guide for decoding https://github.com/roberdam/Xaddress/blob/master/pseudocode/decode I will work on the encode now, please let me know if is clear enough or if you need something else.

spidergears commented 7 years ago

lgtm, I will let you know I if i don't understand anything. Thanks.

roberdam commented 7 years ago

Encode added, you can open again the issue on any question.