{"id":26103552,"url":"https://github.com/yhozen/rn-maps-polyline","last_synced_at":"2025-04-12T17:41:45.063Z","repository":{"id":69182036,"uuid":"82337251","full_name":"Yhozen/rn-maps-polyline","owner":"Yhozen","description":"A tiny library to use polyline in react-native-maps","archived":false,"fork":false,"pushed_at":"2017-02-20T18:30:04.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T22:07:52.345Z","etag":null,"topics":["api","gmaps","gmaps-api","js","polyline","react-native","react-native-maps"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Yhozen.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":"2017-02-17T20:57:26.000Z","updated_at":"2020-12-13T15:33:56.000Z","dependencies_parsed_at":"2023-03-31T11:47:38.811Z","dependency_job_id":null,"html_url":"https://github.com/Yhozen/rn-maps-polyline","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"96507d8c8560c91c49857772f33810ef56fbf3c8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yhozen%2Frn-maps-polyline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yhozen%2Frn-maps-polyline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yhozen%2Frn-maps-polyline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yhozen%2Frn-maps-polyline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yhozen","download_url":"https://codeload.github.com/Yhozen/rn-maps-polyline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248608011,"owners_count":21132648,"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":["api","gmaps","gmaps-api","js","polyline","react-native","react-native-maps"],"created_at":"2025-03-09T20:29:20.118Z","updated_at":"2025-04-12T17:41:45.041Z","avatar_url":"https://github.com/Yhozen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rn-maps-polyline\n[![npm](https://img.shields.io/npm/v/rn-maps-polyline.svg?style=flat-square)](https://npmjs.com/package/rn-maps-polyline)\n[![npm](https://img.shields.io/npm/l/rn-maps-polyline.svg?style=flat-square)](https://npmjs.com/package/rn-maps-polyline)\n[![npm](https://img.shields.io/npm/dm/rn-maps-polyline.svg?style=flat-square)](https://npmjs.com/package/rn-maps-polyline)\n\nA tiny library to use polyline in react-native-maps (MapView.Polyline), based in [google-polyline](https://www.npmjs.com/package/google-polyline) \n\n## v2.0.0\nNow decoding is almost 3x times faster than before\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --save rn-maps-polyline\n```\n\n## Usage\n\n```js\nimport RNPolyline  from 'rn-maps-polyline'\n//or\nimport { decode, encode } from 'rn-maps-polyline'\n```\nor\n\n```js\nvar RNPolyline  = require('rn-maps-polyline')\n```\n```js\nRNPolyline.encode([\n  { latitude: 37.772, longitude: -122.214 },\n  { latitude: 21.291, longitude: -157.821 },\n  { latitude: -18.142, longitude: 178.431 },\n  { latitude: -27.467, longitude: 153.027 }\n])\n\n\u003e '_jpeFn||hVf}qcBvnixEfwtoF_fic_Afh|w@~u`zC'\n```\n\n```js\nRNPolyline.decode('_jpeFn||hVf}qcBvnixEfwtoF_fic_Afh|w@~u`zC')\n\n\u003e [\n  { latitude: 37.772, longitude: -122.214 },\n  { latitude: 21.291, longitude: -157.821 },\n  { latitude: -18.142, longitude: 178.431 },\n  { latitude: -27.467, longitude: 153.027 }\n  ]\n```\n## Contribute\nThe project is using babel and uglifyjs to compile so make sure you have both if you want to clone the repo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhozen%2Frn-maps-polyline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhozen%2Frn-maps-polyline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhozen%2Frn-maps-polyline/lists"}