{"id":19798487,"url":"https://github.com/jms/urban-spoon","last_synced_at":"2026-04-13T13:01:56.480Z","repository":{"id":66499387,"uuid":"286911734","full_name":"jms/urban-spoon","owner":"jms","description":"fastapi project","archived":false,"fork":false,"pushed_at":"2020-08-27T21:21:51.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T04:02:27.576Z","etag":null,"topics":["docker","fastapi","postgis","postgresql","sqlalchemy"],"latest_commit_sha":null,"homepage":"","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/jms.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-08-12T04:00:01.000Z","updated_at":"2025-01-18T14:33:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"61e3b6f7-70de-45c6-acc2-c6c1701d91f7","html_url":"https://github.com/jms/urban-spoon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jms/urban-spoon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Furban-spoon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Furban-spoon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Furban-spoon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Furban-spoon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jms","download_url":"https://codeload.github.com/jms/urban-spoon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jms%2Furban-spoon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["docker","fastapi","postgis","postgresql","sqlalchemy"],"created_at":"2024-11-12T07:29:33.119Z","updated_at":"2026-04-13T13:01:56.464Z","avatar_url":"https://github.com/jms.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# urban-spoon\nfastapi project\n\nTo run the project \n\nsetup db, using the shapefile from [Timezone boundary builder project](https://github.com/evansiroky/timezone-boundary-builder/releases/) and the postgis tool `shp2pgsl`\n```sql\nCREATE DATABASE tzdb;\n\\c tzdb\nCREATE EXTENSION postgis;\n```\nexport shapefile to db\n```bash\nshp2pgsql -D combined-shapefile.shp timezones | psql -U \u003cdb user\u003e -d tzdb\n```\nthen:\n\n```bash\nexport DATABASE_URL=postgresql://user:password@localhost/tzdb\nuvicorn main:app --reload\n```\ntesting the endpoint:\n```bash\ncurl -X GET \"http://localhost:8000/timezone?latitude=12\u0026longitude=-86\" -H  \"accept: application/json\"\n\n# result\n{\n  \"name\": \"America/Managua\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjms%2Furban-spoon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjms%2Furban-spoon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjms%2Furban-spoon/lists"}