Himanshu Arora, I haven't done much with it lately, but this might be of help to you. Basically, starting from a list of coordinates (which will be interpreted as vertices of a well-formed polygon - no error checking yet), you can output a list of plus codes that correspond to the polygon's area, in any precision you like:
https://github.com/bocops/open-geotiling/blob/tile-area/java/org/bocops/opengeotiling/TileAreaPolygonalBuilder.java This is currently just available in a branch because I haven't found time to test for all sorts of bugs. It should be mostly OK, though. On Friday, January 18, 2019 at 5:15:21 PM UTC+1, Himanshu Arora wrote: > > Thanks a lot Barry! > > Apologies, I did not clarify too well initially. It is closed to the first > comment you made. > > I have an area carved out like below. > > [image: image.png] > > I want to see what all 8 digit plus code grids lie within this area. There > are infinite location points but only a finite number of 8 digit plus code > grids possible within this area (that are completely within this area). > > [image: image.png] > > Thanks a lot, > Himanshu > > On Fri, Jan 18, 2019 at 9:05 PM Barry Hunter <barryb...@gmail.com > <javascript:>> wrote: > >> Plus codes of *what*? >> >> A plus code is a representation of a coordinate, or point. In a given >> area there are effectively infinite points. Although depending on precision >> of quoting location there can be less effective 'usable points'. Eg in >> lat/long if quote locations to 6 decimal places, then there are only a >> certain number of points at that precision. >> >> Same with Plus codes. For example may quote codes as 10 digit, which >> means lots of the points have the same plus code. Another way of thinking >> of it a given plus code presents an area (roughly rectangular) >> >> ... so you could be looking for all the unique plus codes that *intersect >> *the 'drawn' area. ie the rectangles overlap your area. >> ... or could be thinking of areas 'wholly enclosed' by. ie plus codes >> wholey within the area, no part of the rectangle outside it. >> >> Or maybe are you thinking of just plus-codes that represent specific >> features within the area? ie you have a list of addresses. First find which >> of the addresses are in the area (Eg using lat/long coordinate), then can >> just compute the plus codes for those matching. >> >> ... the exact algorithm, will depend on what trying to get. >> >> >> >> >> >> >> >> >> >> >>> >>> > > -- > > *Himanshu Arora* > AVP - Business Development > M: +91 958201 3353 > ------------------------------ > <https://www.urbanclap.com/> > <https://www.facebook.com/UrbanClap> <https://twitter.com/urbanclap> > <https://plus.google.com/109935716552629322712/posts> > <https://www.instagram.com/urbanclap/> > <https://www.linkedin.com/company/urbanclap> > Book services on the go, Download the app now! > <https://urbanclap.onelink.me/3304985952?pid=Signature&c=UrbanClap> > <https://urbanclap.onelink.me/3304985952?pid=Signature&c=UrbanClap> > <http://bit.ly/2bV5tSC> > ------------------------------ > > DISCLAIMER This e-mail message may contain confidential or legally > privileged information and is intended only for the use of the intended > recipient(s). Any unauthorized disclosure, dissemination, distribution, > copying or the taking of any action in reliance on the information herein > is prohibited. UrbanClap is not responsible for errors or omissions in this > message and denies any responsibility for any damage arising from the use > of e-mail. Any opinion and other statement contained in this message and > any attachment are solely those of the author and do not necessarily > represent those of the company. > -- 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/c79a0f9d-c1fd-40c9-9814-e37348d7ab3b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.