{"action":"created","issue":{"url":"https://api.github.com/repos/google/open-location-code/issues/168","repository_url":"https://api.github.com/repos/google/open-location-code","labels_url":"https://api.github.com/repos/google/open-location-code/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/google/open-location-code/issues/168/comments","events_url":"https://api.github.com/repos/google/open-location-code/issues/168/events","html_url":"https://github.com/google/open-location-code/issues/168","id":327755326,"node_id":"MDU6SXNzdWUzMjc3NTUzMjY=","number":168,"title":"Feature request : Polygone to Plus Code area","user":{"login":"tspoke","id":7793586,"node_id":"MDQ6VXNlcjc3OTM1ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/7793586?v=4","gravatar_id":"","url":"https://api.github.com/users/tspoke","html_url":"https://github.com/tspoke","followers_url":"https://api.github.com/users/tspoke/followers","following_url":"https://api.github.com/users/tspoke/following{/other_user}","gists_url":"https://api.github.com/users/tspoke/gists{/gist_id}","starred_url":"https://api.github.com/users/tspoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tspoke/subscriptions","organizations_url":"https://api.github.com/users/tspoke/orgs","repos_url":"https://api.github.com/users/tspoke/repos","events_url":"https://api.github.com/users/tspoke/events{/privacy}","received_events_url":"https://api.github.com/users/tspoke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-30T14:24:37Z","updated_at":"2018-06-01T08:50:20Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm looking for a feature, but I can't see it in any of the repository. I hope I missed it!\r\n\r\n*Is there any implementation of the following problem ?* \r\nFrom a closed polygon (array of Point(lat, lon)), I would like to determine the list of all the plus code inside this polygon (area) with a specific precision (inclusive or exclusive).\r\n\r\n\r\nThanks !"},"comment":{"url":"https://api.github.com/repos/google/open-location-code/issues/comments/393814965","html_url":"https://github.com/google/open-location-code/issues/168#issuecomment-393814965","issue_url":"https://api.github.com/repos/google/open-location-code/issues/168","id":393814965,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzgxNDk2NQ==","user":{"login":"bocops","id":29770778,"node_id":"MDQ6VXNlcjI5NzcwNzc4","avatar_url":"https://avatars1.githubusercontent.com/u/29770778?v=4","gravatar_id":"","url":"https://api.github.com/users/bocops","html_url":"https://github.com/bocops","followers_url":"https://api.github.com/users/bocops/followers","following_url":"https://api.github.com/users/bocops/following{/other_user}","gists_url":"https://api.github.com/users/bocops/gists{/gist_id}","starred_url":"https://api.github.com/users/bocops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocops/subscriptions","organizations_url":"https://api.github.com/users/bocops/orgs","repos_url":"https://api.github.com/users/bocops/repos","events_url":"https://api.github.com/users/bocops/events{/privacy}","received_events_url":"https://api.github.com/users/bocops/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T08:50:20Z","updated_at":"2018-06-01T08:50:20Z","author_association":"CONTRIBUTOR","body":"@tspoke I'm not yet completely happy with it, but I added this functionality to the \"tile-area\" branch of the repo @zongweil mentioned. Basically, you could now do:\r\n\r\n    ArrayList<Coordinate> coordinates = ...; // list of coordinates goes here\r\n    OpenGeoTile.TileSize tileSize = ...; // precision of resulting area\r\n    TileArea area = new TileAreaPolygonalBuilder()\r\n        .setTileSize(tileSize)\r\n        .setCoordinatesList(coordinates)\r\n        .build();\r\n\r\nYou can then retrieve all plus codes from the resulting TileArea.\r\n\r\nThere are still some issues with the code as is, I will add them to the issue tracker over the next few days - feel free to comment over there as well - but perhaps this already helps you a bit."}}
{"actor":{"display_login":"bocops"}}