{"id":15008670,"url":"https://github.com/marchdev-tk/google_polyline_algorithm","last_synced_at":"2025-04-09T16:30:43.797Z","repository":{"id":56831552,"uuid":"243861104","full_name":"marchdev-tk/google_polyline_algorithm","owner":"marchdev-tk","description":"Dart implementation of Googles Polyline Encoding lossy compression Algorithm.","archived":false,"fork":false,"pushed_at":"2022-02-21T14:44:20.000Z","size":25,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-23T18:38:11.838Z","etag":null,"topics":["dart","dart-library","dart-package","dart2","dartlang","google-maps","polyline","polyline-algorithm","polyline-decoder","polyline-encoder"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marchdev-tk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-28T21:54:14.000Z","updated_at":"2024-09-14T01:17:17.000Z","dependencies_parsed_at":"2022-08-28T21:02:32.796Z","dependency_job_id":null,"html_url":"https://github.com/marchdev-tk/google_polyline_algorithm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_polyline_algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_polyline_algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_polyline_algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_polyline_algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marchdev-tk","download_url":"https://codeload.github.com/marchdev-tk/google_polyline_algorithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248067647,"owners_count":21042333,"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":["dart","dart-library","dart-package","dart2","dartlang","google-maps","polyline","polyline-algorithm","polyline-decoder","polyline-encoder"],"created_at":"2024-09-24T19:19:58.180Z","updated_at":"2025-04-09T16:30:43.779Z","avatar_url":"https://github.com/marchdev-tk.png","language":"Dart","readme":"# google_polyline_algorithm\n\n![Build](https://github.com/marchdev-tk/google_polyline_algorithm/workflows/build/badge.svg)\n[![codecov](https://codecov.io/gh/marchdev-tk/google_polyline_algorithm/branch/master/graph/badge.svg)](https://codecov.io/gh/marchdev-tk/google_polyline_algorithm)\n[![Pub](https://img.shields.io/pub/v/google_polyline_algorithm.svg)](https://pub.dartlang.org/packages/google_polyline_algorithm)\n![GitHub](https://img.shields.io/github/license/marchdev-tk/google_polyline_algorithm)\n![GitHub stars](https://img.shields.io/github/stars/marchdev-tk/google_polyline_algorithm?style=social)\n\nDart implementation of Googles Polyline Encoding lossy compression Algorithm.\n\n## Getting Started\n\nThis package adds following methods to work with Googles Polyline Encoding Algorithm:\n\n* `encodePoint(num current, {num previous = 0, int accuracyExponent = 5})` encodes a single coordinate\n\n* `encodePolyline(List\u003cList\u003cnum\u003e\u003e coordinates, {int accuracyExponent = 5})` encodes a list of coordinates into an encoded polyline stirng\n\n* `decodePolyline(String polyline, {int accuracyExponent = 5})` decodes an encoded polyline string into a list of coordinates\n\n## Examples\n\n```dart\nimport 'package:google_polyline_algorithm/google_polyline_algorithm.dart';\n\nfinal coord = encodePoint(-179.9832104);\nprint(coord);\n// output is `~oia@'\n\nfinal coords = encodePolyline([\n  [38.5, -120.2],\n  [40.7, -120.95],\n  [43.252, -126.453],\n]);\nprint(coords);\n// output is `_p~iF~ps|U_ulLnnqC_mqNvxq`@'\n\nfinal polyline = decodePolyline('_p~iF~ps|U_ulLnnqC_mqNvxq`@');\nprint(polyline);\n// output is [[38.5, -120.2],[40.7, -120.95],[43.252, -126.453],]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchdev-tk%2Fgoogle_polyline_algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarchdev-tk%2Fgoogle_polyline_algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchdev-tk%2Fgoogle_polyline_algorithm/lists"}