{"id":16941079,"url":"https://github.com/twpayne/go-polyline","last_synced_at":"2025-07-05T16:34:23.127Z","repository":{"id":16461029,"uuid":"19213053","full_name":"twpayne/go-polyline","owner":"twpayne","description":"Package polyline implements a Google Maps Encoding Polyline encoder and decoder.","archived":false,"fork":false,"pushed_at":"2024-12-27T15:44:14.000Z","size":67,"stargazers_count":113,"open_issues_count":0,"forks_count":30,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T10:07:32.632Z","etag":null,"topics":["decoding","encoding","geospatial","gis","go","golang","google-maps","polyline"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"yonghengshikong/newrepository","license":"bsd-2-clause","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":"2014-04-27T18:32:05.000Z","updated_at":"2025-03-24T06:47:07.000Z","dependencies_parsed_at":"2023-02-14T10:15:27.389Z","dependency_job_id":"48ebefc2-1fa4-4188-b0e1-d80a34fa995e","html_url":"https://github.com/twpayne/go-polyline","commit_stats":{"total_commits":107,"total_committers":1,"mean_commits":107.0,"dds":0.0,"last_synced_commit":"6c0e2eeac481cabe38eadedde6f40d08f02f60be"},"previous_names":["twpayne/gopolyline2"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-polyline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-polyline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-polyline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-polyline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twpayne","download_url":"https://codeload.github.com/twpayne/go-polyline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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":["decoding","encoding","geospatial","gis","go","golang","google-maps","polyline"],"created_at":"2024-10-13T21:08:40.093Z","updated_at":"2025-04-04T11:11:22.630Z","avatar_url":"https://github.com/twpayne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-polyline\n\n[![Build Status](https://github.com/twpayne/go-polyline/workflows/Test/badge.svg)](https://github.com/twpayne/go-polyline/actions?query=workflow%3ATest)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/twpayne/go-polyline)](https://pkg.go.dev/github.com/twpayne/go-polyline)\n[![Coverage Status](https://coveralls.io/repos/github/twpayne/go-polyline/badge.svg)](https://coveralls.io/github/twpayne/go-polyline)\n\nPackage `polyline` implements a Google Maps Encoding Polyline encoder and decoder.\n\n## Encoding example\n\n```go\nfunc ExampleEncodeCoords() {\n\tcoords := [][]float64{\n\t\t{38.5, -120.2},\n\t\t{40.7, -120.95},\n\t\t{43.252, -126.453},\n\t}\n\tfmt.Println(string(polyline.EncodeCoords(coords)))\n\t// Output: _p~iF~ps|U_ulLnnqC_mqNvxq`@\n}\n```\n\n## Decoding example\n\n```go\nfunc ExampleDecodeCoords() {\n\tbuf := []byte(\"_p~iF~ps|U_ulLnnqC_mqNvxq`@\")\n\tcoords, _, _ := polyline.DecodeCoords(buf)\n\tfmt.Println(coords)\n\t// Output: [[38.5 -120.2] [40.7 -120.95] [43.252 -126.453]]\n}\n```\n\n## License\n\nBSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwpayne%2Fgo-polyline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwpayne%2Fgo-polyline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwpayne%2Fgo-polyline/lists"}