{"id":13557277,"url":"https://github.com/beyondopen/geocode-cache-service","last_synced_at":"2025-04-03T11:31:37.849Z","repository":{"id":40288572,"uuid":"248087414","full_name":"beyondopen/geocode-cache-service","owner":"beyondopen","description":"Flask app to geocode \u0026 cache","archived":false,"fork":false,"pushed_at":"2023-07-25T18:34:18.000Z","size":80,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T03:12:51.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://geocode.app.vis.one","language":"Python","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/beyondopen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-17T22:41:00.000Z","updated_at":"2021-11-15T10:57:23.000Z","dependencies_parsed_at":"2024-01-17T05:28:50.136Z","dependency_job_id":"5aed4270-9e61-4fa6-a02f-7add60a64959","html_url":"https://github.com/beyondopen/geocode-cache-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondopen%2Fgeocode-cache-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondopen%2Fgeocode-cache-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondopen%2Fgeocode-cache-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondopen%2Fgeocode-cache-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondopen","download_url":"https://codeload.github.com/beyondopen/geocode-cache-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246993026,"owners_count":20865926,"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":[],"created_at":"2024-08-01T12:04:15.284Z","updated_at":"2025-04-03T11:31:32.834Z","avatar_url":"https://github.com/beyondopen.png","language":"Python","funding_links":[],"categories":["Python","others"],"sub_categories":[],"readme":"# cache-geocode-service\n\nFlask app to geocode locations and cache the results.\n\nUsing \u003chttps://developer.here.com/documentation/geocoding-search-api/dev_guide/index.html\u003e.\n\nhttps://developer.here.com/documentation/geocoding-search-api/api-reference-swagger.html\n\n```bash\ncurl -u username:password https://geocode.app.vis.one/\\?city=Berlin\\\u0026provider\\=here\\\u0026country\\=Deutschland\\\u0026state\\=Berlin\n```\n\n## API\n\nTwo endpoints:\n\n### GET\n\n```\nGET https://geocode.app.vis.one/?provider=here\u0026city=Haldensleben\u0026county=B%C3%B6rde\u0026state=Sachsen-Anhalt\u0026country=Deutschland\n```\n\nReturns 400 if no location was found.\n\n### POST\n\n```\nPOST https://geocode.app.vis.one/\n```\n\nwith data in body:\n\n```json\n{\n  \"provider\": \"here\",\n  \"locations\": [\n    {\n      \"query\": {\n        \"city\": \"Haldensleben\",\n        \"county\": \"Börde\",\n        \"state\": \"Sachsen-Anhalt\",\n        \"country\": \"Deutschland\"\n      }\n    }\n  ]\n}\n```\n\nNB: Returns 200 even if no location wasn't found (for one item). Iterate over the responding array to verify if matching geo coords were found.\n\n## Development\n\nCreate `keys.txt` and store a HERE API key in it.\n\n```bash\ndocker-compose up\n```\n\n## Deployment\n\nDeploy with Dokku.\n\n```bash\nsudo dokku run geocode flask resetdb\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondopen%2Fgeocode-cache-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondopen%2Fgeocode-cache-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondopen%2Fgeocode-cache-service/lists"}