This depends on how exact you want that cover to be. Generally speaking, 
you could do the following:

1. Start with a "useful" code length (one where the entire feature is 
contained within a "few" OLC blocks of that size - in your example, this 
might be length 6).
2. Find and list all codes of that length that have at least a bit of your 
3. Then, for each of the codes in that list still bigger than the minimum 
block size you want to use
  a. for all of the 20x20 sub-blocks, check whether they contain the 
feature, and store those that do on a separate list
  b. depending on the number of items now on that separate list, decide to
    I. remove the original block, and append the list of sub-blocks to the 
original list OR
    II. keep the original block, OR
    III. remove the original block without replacement.

Once you've reached the end of that list, it will contain all of the OLC 
blocks that make up your feature, with varying precision as necessary.

On Saturday, January 27, 2018 at 3:35:14 AM UTC+1, HANUMAN ACHOLIA wrote:
> Hi,
> Suppose i want to cover 400 meter area using olc. I have lat,log and 
> radius. I know i can get olc for 275 meter using 8 code length. How i can 
> cover remaining area and get olc codes for remaining area.

Public site:
Github project:
Demo site:
You received this message because you are subscribed to the Google Groups 
"open-location-code" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send an email to
Visit this group at
To view this discussion on the web, visit
For more options, visit

Reply via email to