Hi - sorry - but there's an error on the documentation page, but thanks for
helping find it!

The URL should be (using 'kml' instead of 'grid'):

https://grid.plus.codes/kml?BBOX=-49.108361,-28.647304,-49.106151,-28.645176

I'll update the documentation now, apologies again.

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 Fri, 5 Apr 2019 at 06:03, <he...@instinctive.io> wrote:

> Doesn't seem like the BBOX endpoint works properly. I keep getting a bad
> tile request error when trying this:
>
> https://grid.plus.codes/grid?BBOX=-49.108361,-28.647304,-49.106151,-28.645176
>
> On Friday, January 18, 2019 at 11:40:29 AM UTC-5, Barry Hunter wrote:
>>
>> Hmm, ok, so yes, you are basically wanting the 'grid' of codes that
>> intersert the area.
>>
>> If you dont need them in 'list' form, then could perhaps add the
>> plus-code grid to your map
>>
>> https://grid.plus.codes/
>>
>>
>> But actually the grid service, basically just plots all the plus codes in
>> the area. Which is very close to what you want to do.
>>
>> So you perhaps could 'abuse' the grid service for your list. The above
>> page, has details of making a 'manual' request.
>>
>> It seems it can only get the codes withing a rectangular area defined by
>> a BBOX. So could compute the BBOX of your drawn area, make a request from
>> the API, then check which of the returned plus codes are in the area.
>>
>> Lots of algorithms for that.
>> https://www.google.com/search?q=point+in+polygon
>>
>> The Maps API also have a containsLocation which would do it
>>
>> https://developers.google.com/maps/documentation/javascript/reference/geometry#poly
>>
>>
>> On Fri, Jan 18, 2019 at 4:15 PM Himanshu Arora <himans...@urbanclap.com>
>> 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>
>>> 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 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/72251d0e-1dd3-47a7-b4ae-8b523039c5ef%40googlegroups.com
> <https://groups.google.com/d/msgid/open-location-code/72251d0e-1dd3-47a7-b4ae-8b523039c5ef%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/CAGFr2L%2BtZH87NTc%2BDQOSk5_qGcr2p1REE8RqC008j7brA6mrNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to