{"id":16940708,"url":"https://github.com/twpayne/go-gpx","last_synced_at":"2025-08-24T00:17:38.234Z","repository":{"id":52930780,"uuid":"56984048","full_name":"twpayne/go-gpx","owner":"twpayne","description":"Package gpx provides convenience types for reading and writing GPX files.","archived":false,"fork":false,"pushed_at":"2024-12-25T14:41:42.000Z","size":126,"stargazers_count":40,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T00:34:53.231Z","etag":null,"topics":["geospatial","gis","go","golang","gpx"],"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/twpayne.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":"2016-04-24T17:12:42.000Z","updated_at":"2025-03-14T13:46:38.000Z","dependencies_parsed_at":"2024-10-26T20:14:04.356Z","dependency_job_id":"5af46b02-305d-4d12-9c9c-b98d917c9f85","html_url":"https://github.com/twpayne/go-gpx","commit_stats":{"total_commits":127,"total_committers":8,"mean_commits":15.875,"dds":"0.11023622047244097","last_synced_commit":"2a7a8db916a7ee2b60d8070fd083bc8c310c40d9"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-gpx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-gpx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-gpx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-gpx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twpayne","download_url":"https://codeload.github.com/twpayne/go-gpx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248126144,"owners_count":21051875,"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","gis","go","golang","gpx"],"created_at":"2024-10-13T21:07:44.731Z","updated_at":"2025-04-09T23:20:26.310Z","avatar_url":"https://github.com/twpayne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-gpx\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/twpayne/go-gpx)](https://pkg.go.dev/github.com/twpayne/go-gpx)\n\nPackage `gpx` provides convenince methods for reading and writing GPX documents.\n\n## Read example\n\n```go\nr := bytes.NewBufferString(`\n    \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n    \u003cgpx version=\"1.1\" creator=\"ExpertGPS 1.1 - http://www.topografix.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.topografix.com/GPX/1/1\" xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 https://www.topografix.com/GPX/1/1/gpx.xsd\"\u003e\n        \u003cwpt lat=\"42.438878\" lon=\"-71.119277\"\u003e\n        \u003cele\u003e44.586548\u003c/ele\u003e\n        \u003ctime\u003e2001-11-28T21:05:28Z\u003c/time\u003e\n        \u003cname\u003e5066\u003c/name\u003e\n        \u003cdesc\u003e5066\u003c/desc\u003e\n        \u003csym\u003eCrossing\u003c/sym\u003e\n        \u003ctype\u003eCrossing\u003c/type\u003e\n        \u003c/wpt\u003e\n    \u003c/gpx\u003e\n`)\nt, err := gpx.Read(r)\nif err != nil {\n    fmt.Printf(\"err == %v\", err)\n    return\n}\nfmt.Printf(\"t.Wpt[0] == %+v\", t.Wpt[0])\n// Output:\n// t.Wpt[0] == \u0026{Lat:42.438878 Lon:-71.119277 Ele:44.586548 Speed:0 Course:0 Time:2001-11-28 21:05:28 +0000 UTC MagVar:0 GeoidHeight:0 Name:5066 Cmt: Desc:5066 Src: Link:[] Sym:Crossing Type:Crossing Fix: Sat:0 HDOP:0 VDOP:0 PDOP:0 AgeOfDGPSData:0 DGPSID:[] Extensions:\u003cnil\u003e}\n```\n\n## Write example\n\n```go\ng := \u0026gpx.GPX{\n    Version: \"1.1\",\n    Creator: \"ExpertGPS 1.1 - http://www.topografix.com\",\n    Wpt: []*gpx.WptType{\n        {\n            Lat:  42.438878,\n            Lon:  -71.119277,\n            Ele:  44.586548,\n            Time: time.Date(2001, 11, 28, 21, 5, 28, 0, time.UTC),\n            Name: \"5066\",\n            Desc: \"5066\",\n            Sym:  \"Crossing\",\n            Type: \"Crossing\",\n        },\n    },\n}\nif _, err := os.Stdout.WriteString(xml.Header); err != nil {\n    fmt.Printf(\"err == %v\", err)\n}\nif err := g.WriteIndent(os.Stdout, \"\", \"  \"); err != nil {\n    fmt.Printf(\"err == %v\", err)\n}\n// Output:\n// \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n// \u003cgpx version=\"1.1\" creator=\"ExpertGPS 1.1 - http://www.topografix.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.topografix.com/GPX/1/1\" xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 https://www.topografix.com/GPX/1/1/gpx.xsd\"\u003e\n//   \u003cwpt lat=\"42.438878\" lon=\"-71.119277\"\u003e\n//     \u003cele\u003e44.586548\u003c/ele\u003e\n//     \u003ctime\u003e2001-11-28T21:05:28Z\u003c/time\u003e\n//     \u003cname\u003e5066\u003c/name\u003e\n//     \u003cdesc\u003e5066\u003c/desc\u003e\n//     \u003csym\u003eCrossing\u003c/sym\u003e\n//     \u003ctype\u003eCrossing\u003c/type\u003e\n//   \u003c/wpt\u003e\n// \u003c/gpx\u003e\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwpayne%2Fgo-gpx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwpayne%2Fgo-gpx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwpayne%2Fgo-gpx/lists"}