{"id":17733676,"url":"https://github.com/jifalops/geo-codec","last_synced_at":"2025-03-14T13:30:34.467Z","repository":{"id":57741328,"uuid":"70175087","full_name":"jifalops/geo-codec","owner":"jifalops","description":"An element to perform geocoding and reverse geocoding using the Google maps API.","archived":false,"fork":false,"pushed_at":"2018-08-25T20:13:12.000Z","size":2626,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T21:15:01.515Z","etag":null,"topics":["geocode","google-maps","polymer","polymer-element","reverse-geocode","webcomponents"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jifalops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-06T17:08:36.000Z","updated_at":"2024-03-02T04:14:55.000Z","dependencies_parsed_at":"2022-08-29T07:20:21.640Z","dependency_job_id":null,"html_url":"https://github.com/jifalops/geo-codec","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Fgeo-codec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Fgeo-codec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Fgeo-codec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jifalops%2Fgeo-codec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jifalops","download_url":"https://codeload.github.com/jifalops/geo-codec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243584032,"owners_count":20314683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["geocode","google-maps","polymer","polymer-element","reverse-geocode","webcomponents"],"created_at":"2024-10-25T23:05:18.495Z","updated_at":"2025-03-14T13:30:33.918Z","avatar_url":"https://github.com/jifalops.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on Vaadin  Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/jifalopsgeo-codec)\n[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/jifalopsgeo-codec.svg)](https://vaadin.com/directory/component/jifalopsgeo-codec)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jifalops/geo-codec)\n\n# geo-codec\nEasily geocode and reverse geocode strings and coordinates.\n\n## Installation\n```\nbower i -S geo-codec        # Polymer 2.0 hybrid (1.x compatible)\nbower i -S geo-codec#^1.1.2 # Polymer 1.x based\n```\n\n## Usage\nYou will need your own Google Maps API key to use this element. See the demo.\n\n## Demo\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003cscript src=\"../webcomponentsjs/webcomponents-lite.js\"\u003e\u003c/script\u003e\n    \u003clink rel=\"import\" href=\"geo-codec.html\"\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n    \u003cscript\u003e\n      var codec = document.getElementById('codec');\n      var search = document.getElementById('search');\n      var return1 = document.getElementById('return');\n      var results = document.getElementById('results');\n      function runDemo() {\n        var ret = codec.geocode(search.value, function (address, lat, lng, place) {\n          results.innerHTML = 'address: ' + address\n            + '\u003cbr\u003elat: ' + lat\n            + '\u003cbr\u003elng: ' + lng\n            + '\u003cbr\u003eplaceId: ' + place;\n        });\n        if (ret) return1.innerText = 'Sent to geocoder.';\n        else if (ret === null) return1.innerText = 'Geocoder will use when ready.';\n        else if (ret === false) return1.innerText = 'Result was cached.';\n      }\n    \u003c/script\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n\n```html\n\u003cgeo-codec id=\"codec\" api-key=\"AIzaSyAUPOaJubJnaRTPUd_xX8MOA62gRtSlfCc\"\u003e\u003c/geo-codec\u003e\n\u003cinput id=\"search\" /\u003e\u003cbutton onclick=\"runDemo()\"\u003eSearch\u003c/button\u003e\n\u003cdiv id=\"return\"\u003e\u003c/div\u003e\n\u003cdiv id=\"results\"\u003e\u003c/div\u003e\n```\n\nFull demo:\n[webcomponents.org](https://www.webcomponents.org/element/jifalops/geo-codec/demo/demo/index.html)\n| [github](https://jifalops.github.io/geo-codec/components/geo-codec/demo/).\n\nAPI: [webcomponents.org](https://www.webcomponents.org/element/jifalops/geo-codec/geo-codec)\n| [github](https://jifalops.github.io/geo-codec).\n\n## Contributing\n\n1. Fork it on Github.\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjifalops%2Fgeo-codec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjifalops%2Fgeo-codec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjifalops%2Fgeo-codec/lists"}