{"id":26544730,"url":"https://github.com/zweihander/tile38-client","last_synced_at":"2025-03-22T04:01:49.765Z","repository":{"id":38323425,"uuid":"253252290","full_name":"shadowspore/t38c","owner":"shadowspore","description":"Tile38 Client package","archived":true,"fork":false,"pushed_at":"2023-10-31T07:00:35.000Z","size":299,"stargazers_count":82,"open_issues_count":11,"forks_count":31,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-06T15:11:25.602Z","etag":null,"topics":["geo","geofence","geolocation","geospatial","golang-package","spatial","tile38"],"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/shadowspore.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-04-05T14:19:44.000Z","updated_at":"2024-06-20T04:39:23.971Z","dependencies_parsed_at":"2024-06-20T04:39:22.172Z","dependency_job_id":"7ef63f76-7f50-4753-b048-ab9a84d05f5e","html_url":"https://github.com/shadowspore/t38c","commit_stats":null,"previous_names":["zerobounty/tile38-client","lostpeer/tile38-client","sevenbaff/tile38-client","xjem/tile38-client","powercake/tile38-client","shadowspore/tile38-client","qwertyspore/tile38-client","b3q/tile38-client","cqln/tile38-client","marmellado/tile38-client","axvq/tile38-client","zweihander/tile38-client","xjem/t38c"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowspore%2Ft38c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowspore%2Ft38c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowspore%2Ft38c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowspore%2Ft38c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadowspore","download_url":"https://codeload.github.com/shadowspore/t38c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902929,"owners_count":20529115,"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":["geo","geofence","geolocation","geospatial","golang-package","spatial","tile38"],"created_at":"2025-03-22T04:01:48.817Z","updated_at":"2025-03-22T04:01:49.756Z","avatar_url":"https://github.com/shadowspore.png","language":"Go","readme":"# Tile38 Client for Go\n[![Go](https://github.com/shadowspore/t38c/workflows/Go/badge.svg)](https://github.com/shadowspore/t38c/actions)\n[![Documentation](https://pkg.go.dev/badge/github.com/shadowspore/t38c)](https://pkg.go.dev/github.com/shadowspore/t38c?tab=doc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/shadowspore/t38c)](https://goreportcard.com/report/github.com/shadowspore/t38c)\n[![codecov](https://codecov.io/gh/shadowspore/t38c/branch/master/graph/badge.svg)](https://codecov.io/gh/shadowspore/t38c)\n[![license](https://img.shields.io/github/license/shadowspore/t38c.svg)](https://github.com/shadowspore/t38c/blob/master/LICENSE)\n\nSee what [Tile38](https://tile38.com/) is all about.\n\n- [Supported features](TODO.md)\n- [Examples](examples)\n\n## Installation\n\n```\ngo get github.com/xjem/t38c@latest\n```\n\n## Basic example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/xjem/t38c\"\n)\n\nfunc main() {\n\tclient, err := t38c.New(t38c.Config{\n\t\tAddress: \"localhost:9851\",\n\t\tDebug:   true, // print queries to stdout\n\t})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer client.Close()\n\n\tif err := client.Keys.Set(\"fleet\", \"truck1\").Point(33.5123, -112.2693).Do(context.TODO()); err != nil {\n\t\tpanic(err)\n\t}\n\n\tif err := client.Keys.Set(\"fleet\", \"truck2\").Point(33.4626, -112.1695).\n\t\tField(\"speed\", 20). // optional\n\t\tExpiration(20).     // optional\n\t\tDo(context.TODO()); err != nil {\n\t\tpanic(err)\n\t}\n\n\t// search 6 kilometers around a point. returns one truck.\n\tresponse, err := client.Search.Nearby(\"fleet\", 33.462, -112.268, 6000).\n\t\tWhere(\"speed\", 0, 100).\n\t\tMatch(\"truck*\").\n\t\tFormat(t38c.FormatPoints).\n\t\tDo(context.TODO())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// truck1 {33.5123 -112.2693}\n\tfmt.Println(response.Points[0].ID, response.Points[0].Point)\n}\n```\n\n## License\n\nSource code is available under the [MIT License](LICENSE).","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweihander%2Ftile38-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweihander%2Ftile38-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweihander%2Ftile38-client/lists"}