gibbons
En-Route
Ok smart guys and gals, I'm working on a program to build routes to display on google maps. I've gotten carried away and now I'm attempting to use their encoded format (much faster).
Here is a snip from the instructions:
Place the 5-bit chunks into reverse order:
00001 11111 10000 01010 00010 00001
OR each value with 0x20 if another bit chunk follows:
100001 111111 110000 101010 100010 000001
I know how to "OR", but I don't understand the instruction to OR each value with 0x20. I also don't understand the "if another bit chunk follows".
The full instructions can be found here.
Three questions:
1) How do I or something with 0x20?
2) Are you aware of a function in Pascal (Delphi) that would do this?
3) Why am I doing this???
Here is a snip from the instructions:
Place the 5-bit chunks into reverse order:
00001 11111 10000 01010 00010 00001
OR each value with 0x20 if another bit chunk follows:
100001 111111 110000 101010 100010 000001
I know how to "OR", but I don't understand the instruction to OR each value with 0x20. I also don't understand the "if another bit chunk follows".
The full instructions can be found here.
Three questions:
1) How do I or something with 0x20?
2) Are you aware of a function in Pascal (Delphi) that would do this?
3) Why am I doing this???