{"id":17283630,"url":"https://github.com/choefele/here-tracking-go","last_synced_at":"2025-03-26T16:16:03.794Z","repository":{"id":71495999,"uuid":"129418857","full_name":"choefele/here-tracking-go","owner":"choefele","description":"Go client library for HERE Tracking API","archived":false,"fork":false,"pushed_at":"2020-09-01T01:49:45.000Z","size":63,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T19:06:33.077Z","etag":null,"topics":["go","golang","here","heremaps","iot"],"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/choefele.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":"2018-04-13T15:11:38.000Z","updated_at":"2023-07-06T09:20:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d28bc903-4143-4bdb-b84c-02776a270614","html_url":"https://github.com/choefele/here-tracking-go","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/choefele%2Fhere-tracking-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choefele%2Fhere-tracking-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choefele%2Fhere-tracking-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choefele%2Fhere-tracking-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choefele","download_url":"https://codeload.github.com/choefele/here-tracking-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689509,"owners_count":20656417,"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":["go","golang","here","heremaps","iot"],"created_at":"2024-10-15T09:51:48.959Z","updated_at":"2025-03-26T16:16:03.775Z","avatar_url":"https://github.com/choefele.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# here-tracking-go\n![Travis Status](https://travis-ci.org/choefele/here-tracking-go.svg?branch=master)\n\nhere-tracking-go is a Go client library for accessing the [HERE Tracking API v2](https://developer.here.com/documentation/tracking/api-reference-swagger.html).\n\nNote: the implementation's interfaces aren't final yet – expect changes\n\nThis libary provides a client for devices to send new location data and a client for programmatically accessing the admin API. The services of each client divide the API into logical chunks and correspond to the structure of the [HERE Tracking API v2](https://developer.here.com/documentation/tracking/api-reference-swagger.html).\n\n## Device Client\n\n### Credentials\nTo use the device client:\n\n1. Sign up for a [developer account with HERE Tracking](https://app.tracking.here.com).\n2. In the vendor role, create some devices with device licenses.\n3. In the user role, claim those devices.\n\nThe device license includes device ID and device secret.\n\n### Building the Sample Application\nYou'll need a valid `$GOPATH` and working Go setup. Then install with `go get`:\n\n```\n$ go get -u github.com/choefele/here-tracking-go/cmd/ingest\n```\n\nRun `ingest` providing the device ID and secret:\n\n```\n$ ingest \u003cdevice ID\u003e \u003cdevice secret\u003e\n```\n\nThis will send test location data to the HERE Tracking Service, which you can monitor in the [admin console](https://app.tracking.here.com/).\n\n### Usage\n ```go\nimport \"github.com/choefele/here-tracking-go/pkg/tracking\"\n```\n\nConstruct a new client, then use the various services on the client to access different parts of the API. For example:\n\n```go\nfunc main() {\n\tif len(os.Args) \u003c 3 {\n\t\tfmt.Println(\"Usage: ingest device_id device_secret\")\n\t\tos.Exit(-1)\n\t}\n\n\tclient := tracking.NewDeviceClient(os.Args[1], os.Args[2])\n\tdr := \u0026tracking.DataRequest{\n\t\tTimestamp: tracking.Time{Time: time.Now()},\n\t\tPosition: \u0026tracking.Position{\n\t\t\tLat:      52,\n\t\t\tLng:      13,\n\t\t\tAccuracy: 100,\n\t\t},\n\t}\n\terr := client.Ingestion.Send(context.Background(), []*tracking.DataRequest{dr})\n\tfmt.Printf(\"Send: done, error: %v\\n\", err)\n}\n```\n\n## Admin Client\n\n### Building the Sample Application\nYou'll need a valid `$GOPATH` and working Go setup. Then install with `go get`:\n\n```\n$ go get -u github.com/choefele/here-tracking-go/cmd/admin\n```\n\nRun `admin` providing your email and password:\n\n```\n$ admin \u003cemail\u003e \u003cpassword\u003e\n```\n\nThis will list your devices.\n\n### Usage\n ```go\nimport \"github.com/choefele/here-tracking-go/pkg/tracking\"\n```\n\nConstruct a new client, then use the various services on the client to access different parts of the API. For example:\n\n```go\nfunc main() {\n\tif len(os.Args) \u003c 3 {\n\t\tfmt.Println(\"Usage: admin email password\")\n\t\tos.Exit(-1)\n\t}\n\n\tclient := tracking.NewAdminClient(os.Args[1], os.Args[2])\n\terr := client.User.ListDevices(context.Background())\n\tfmt.Printf(\"ListDevices: done, error: %v\\n\", err)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoefele%2Fhere-tracking-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoefele%2Fhere-tracking-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoefele%2Fhere-tracking-go/lists"}