...I have a list of more than 20.000 cities, their country and latitude/longitude values. I'd like to include the list into a PB source to have the data "onboard" -- and as compact as possible.
So the country will be translated to a single byte and the coordinates to floats, the cityname will be kept as a string:
Code: Select all
Andorra la Vella 1 42,51 1,51
Les Escaldes 1 42,50 1,53
Abû Zabi 2 24,48 54,37
al-ŽAyn 2 24,23 55,74
Khawr Fakkân 2 25,34 56,36
:
Code: Select all
Data.s Andorra la Vella
Data.b 1
Data.f 42.51 1.51
Code: Select all
Data.s "Andorra la Vella","Les Escaldes",...
Data.b 1,1,2,...
Data.f Data42.51,1.51,42.50,...

Code: Select all
DataStructure .x Uses "sbff"
Data.x "Andorra la Vella",1,42.51,1.51
Data.x "Les Escaldes,1,42.50,1.53