{"id":17790004,"url":"https://github.com/samrocksc/polygon-test","last_synced_at":"2026-02-03T06:37:19.675Z","repository":{"id":39011157,"uuid":"204837935","full_name":"samrocksc/polygon-test","owner":"samrocksc","description":"A simple UI to explore places in polygons","archived":false,"fork":false,"pushed_at":"2023-01-04T18:02:38.000Z","size":3226,"stargazers_count":0,"open_issues_count":19,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T18:08:11.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samrocksc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-28T03:12:13.000Z","updated_at":"2019-08-28T03:33:25.000Z","dependencies_parsed_at":"2023-02-02T19:45:55.503Z","dependency_job_id":null,"html_url":"https://github.com/samrocksc/polygon-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samrocksc/polygon-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocksc%2Fpolygon-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocksc%2Fpolygon-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocksc%2Fpolygon-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocksc%2Fpolygon-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samrocksc","download_url":"https://codeload.github.com/samrocksc/polygon-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocksc%2Fpolygon-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29035787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:11:29.234Z","status":"ssl_error","status_checked_at":"2026-02-03T06:11:03.146Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-27T10:39:40.567Z","updated_at":"2026-02-03T06:37:19.656Z","avatar_url":"https://github.com/samrocksc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to run:\n---\nIn order to run this app, you must have a google maps API key. \n\n```\nnpm i\nexport REACT_APP_GRAPH_URI=http://localhost:4000\nexport GMAPS_API_KEY=\u003cinsert api key here\u003e\nnpm run server \u0026\u0026\nnpm run start\n```\n\n## About This Application\n---\n\n**Time To Complete: 3 Hour, 30 mins**\nFor the most part I kept the entire application's structure extremely simple, and just used a single resolver hooked up to a standard Apollo Server.  As I have been working with AppSync a lot over the past few months at my current job, I found that it was easier to just use the TypeDefs here to enforce server-side validation.\n\nMost of the time on this project was researching how the whole polygon factor worked.  I took the mathematical approach instead of using an API online.  Using the `point-in-polygon` package made this super easy, and I was able to just use some vim macros to convert the kml layer into usable data to be able to referencea polygon framework-agnostically.\n\nI did build in a simple redundancy in turning the API into an array with a reduce function over the available delivery areas.  The reasons I did this, was because due to future consideration for expansion of the API, it's a safe assumption that we would probably have multiple overlays with different information in the future.\n\nAnyways, I had a lot of fun writing this!\n\n\n\n## Accessing graphql client\n---\nThere is actually a graphql client running on port 4000, you can test all of my results via the API only by using the following graphql query:\n\n```\n{\n getLocation(address: \"Ungargasse 17, Vienna, Austria\") {\n    status\n  \tdeliveryAreas\n  \tlocationData {\n      placeId\n      formattedAddress\n    }\n  }\n}\n```\n\n\n## Known Bugs\nThere shouldn't be any known bugs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrocksc%2Fpolygon-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamrocksc%2Fpolygon-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrocksc%2Fpolygon-test/lists"}