Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 299 Bytes

Block ID.md

File metadata and controls

12 lines (8 loc) · 299 Bytes

SOA Block Ids

Unique Block ID is a string consisting of lat/long doubled and ceil/floor. The 2 are concat with comma:

lat = Math.ceil(lat*2).toString();
long = Math.floor(long*2).toString();
                
block_id = [lat+','+long];

Use split to get two elements seperated