Code to provide a tile server is now in github: https://github.com/google/open-location-code/tree/master/tile_server
Ngā mihi, Doug Rinckes, Technical Program Manager, Google Switzerland GmbH; 9G8F+6W Zü rich <https://www.google.com/maps/search/9G8F%2B6W%20Z%C3%BCrich> On Sun, 9 Sep 2018 at 15:08, Nikhil VJ <nikhil...@gmail.com> wrote: > Hi, sorry I just now read Doug's reply earlier in this thread. Thats what > it amounts to! > > precision : intervals in lat-long units > precision 10 : 0.000125 > precision 8 : 0.0025 > precision 6 : 0.05 > precision 4 : 1 > precision 2 : 20 > > If I try this in python: (first four numbers are the lat-long bounds) > > olc.decode('7J000000+') > > [10.0, 60.0, 30.0, 80.0, 20.0, 70.0, 2] > > olc.decode('7J220000+') > > [10.0, 60.0, 11.0, 61.0, 10.5, 60.5, 4] > > olc.decode('7J222200+') > > [10.0, 60.0, 10.049999999999997, 60.05000000000001, 10.024999999999999, > 60.025000000000006, 6] > > olc.decode('7J222222+') > > [10.0, 60.0, 10.002499999999998, 60.0025, 10.001249999999999, 60.00125, > 8] > > > In QGIS, you can generate a grid by: > Menu > Vector > Research tools > Vector Grid > > grid extent (xmin,xmax,ymin,ymax): 78.1,79,16.9,18.2 (in my example, a > city in India) > set both lat and lon interval as per the precision level you want > And that should generate the grid for you. You can save that layer as a > shapefile in any format. > > -Nikhil VJ > Pune, India > > > On Sunday, September 9, 2018 at 2:27:57 PM UTC+5:30, Nikhil VJ wrote: >> >> Hello, >> >> I found this post from a web search for the same! >> >> IMHO what we need is the precise co-ordinates of OpenLocationCode's grid >> lines, and different sets of that data for the different levels of >> precision. With a list of longitudes and a list of latitudes we can >> generate our grids easily. >> >> The plus.codes website's map does show this grid, meaning they have >> generated it. Can we have that please? :D >> >> I'm looking at the code on python side >> <https://github.com/google/open-location-code/blob/master/python/openlocationcode.py> >> but >> its confusing for now. >> It seems there are methods given for finding the bounding lat-longs for a >> given location code. >> >> One way of going about this would be to generate a listing of all >> location codes, and then run the decoding method on them all. But I feel >> like this will be a reverse work while in the internal processes the grids >> may be generated first and then the location codes are generated. >> >> This would be a one-time exercise, we can create a shapefile having the >> gridlines and put it on github. >> >> If anybody's already done this then please say so! >> >> -Nikhil VJ >> Pune, India >> > -- > Public site: http://www.openlocationcode.com/ > Github project: https://github.com/google/open-location-code > Demo site: http://plus.codes/ > --- > You received this message because you are subscribed to the Google Groups > "Plus Codes Community Forum" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to open-location-code+unsubscr...@googlegroups.com. > To post to this group, send email to open-location-code@googlegroups.com. > Visit this group at https://groups.google.com/group/open-location-code. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/open-location-code/8418da33-9c94-4408-823b-beb681f12b92%40googlegroups.com > <https://groups.google.com/d/msgid/open-location-code/8418da33-9c94-4408-823b-beb681f12b92%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Public site: http://www.openlocationcode.com/ Github project: https://github.com/google/open-location-code Demo site: http://plus.codes/ --- You received this message because you are subscribed to the Google Groups "Plus Codes Community Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-location-code+unsubscr...@googlegroups.com. To post to this group, send an email to open-location-code@googlegroups.com. Visit this group at https://groups.google.com/group/open-location-code. To view this discussion on the web, visit https://groups.google.com/d/msgid/open-location-code/CAGFr2LJA5uoNdzbWA0_0eo_vT-KmUM46JX%3Docuim_roaOf%2B_AQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.