{"id":16398908,"url":"https://github.com/albertyw/localtimezone","last_synced_at":"2025-03-21T02:32:37.941Z","repository":{"id":58838499,"uuid":"533058670","full_name":"albertyw/localtimezone","owner":"albertyw","description":"Go latlong to timezone","archived":false,"fork":false,"pushed_at":"2025-03-06T05:50:27.000Z","size":169149,"stargazers_count":4,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T20:03:08.989Z","etag":null,"topics":["geospatial","golang","openstreetmap","timezone","tzdata"],"latest_commit_sha":null,"homepage":"","language":"Go","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/albertyw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-09-05T21:00:23.000Z","updated_at":"2025-03-06T05:50:27.000Z","dependencies_parsed_at":"2023-11-19T02:40:33.080Z","dependency_job_id":"b091bf49-d459-4ed2-95c6-911ec7d20cb6","html_url":"https://github.com/albertyw/localtimezone","commit_stats":{"total_commits":223,"total_committers":3,"mean_commits":74.33333333333333,"dds":"0.013452914798206317","last_synced_commit":"4ac37ab09b96ddc4c09ee691cf80755c7a3bbfed"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Flocaltimezone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Flocaltimezone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Flocaltimezone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertyw%2Flocaltimezone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertyw","download_url":"https://codeload.github.com/albertyw/localtimezone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244725615,"owners_count":20499636,"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":["geospatial","golang","openstreetmap","timezone","tzdata"],"created_at":"2024-10-11T05:14:16.592Z","updated_at":"2025-03-21T02:32:37.934Z","avatar_url":"https://github.com/albertyw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github.com/albertyw/localtimezone\n\n[![Build Status](https://drone.albertyw.com/api/badges/albertyw/localtimezone/status.svg)](https://drone.albertyw.com/albertyw/localtimezone)\n[![Go Reference](https://pkg.go.dev/badge/github.com/albertyw/localtimezone/v3.svg)](https://pkg.go.dev/github.com/albertyw/localtimezone/v3)\n[![Go Report Card](https://goreportcard.com/badge/github.com/albertyw/localtimezone/v3)](https://goreportcard.com/report/github.com/albertyw/localtimezone/v3)\n[![Maintainability](https://api.codeclimate.com/v1/badges/ce341d42186e116cd50c/maintainability)](https://codeclimate.com/github/albertyw/localtimezone/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/ce341d42186e116cd50c/test_coverage)](https://codeclimate.com/github/albertyw/localtimezone/test_coverage)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nLatLong conversion to time zone.\nThis is a fork of [github.com/ugjka/go-tz](https://github.com/ugjka/go-tz).\n\n## Usage / Example\n\n```go\nimport localtimezone \"github.com/albertyw/localtimezone/v3\"\n\n// Loading Zone for Line Islands, Kiritimati\ntz, err := localtimezone.NewLocalTimeZone()\nif err != nil {\n    panic(err)\n}\nzone, err := tz.GetZone(localtimezone.Point{\n    Lon: -157.21328, Lat: 1.74294,\n})\nif err != nil {\n    panic(err)\n}\nfmt.Println(zone[0])\n```\n\nUses simplified shapefile from [timezone-boundary-builder](https://github.com/evansiroky/timezone-boundary-builder/)\n\nGeoJson Simplification done with [orb](https://github.com/paulmach/orb).\n\n## Features\n\n- The timezone shapefile is embedded in the build binary\n- Supports overlapping zones\n- You can load your own geojson shapefile if you want\n- Sub millisecond lookup even on old hardware\n\n## Problems\n\n- Shapefile is simplified using a lossy method so it may be innacurate along the borders\n- This is purely in-memory. Uses ~50MB of ram\n\n## Updating data\nGet the most current timezone release version at https://github.com/evansiroky/timezone-boundary-builder/tags\n\n```bash\ngo run tzshapefilegen/main.go\n```\n\n## Licenses\n\nThe code used to lookup the timezone for a location is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n\nThe data in timezone shapefile is licensed under the [Open Data Commons Open Database License (ODbL)](https://opendatacommons.org/licenses/odbl/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertyw%2Flocaltimezone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertyw%2Flocaltimezone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertyw%2Flocaltimezone/lists"}