{
  "_id": "polyline",
  "maintainers": [
    {
      "email": "accounts@mapbox.com",
      "name": "mapbox-admin"
    }
  ],
  "dist-tags": {
    "latest": "0.2.0"
  },
  "author": {
    "name": "Tom MacWright",
    "email": "tom@macwright.org",
    "url": "http://macwright.org/"
  },
  "_rev": "26-1721671a417127768a0eea008705a0cc",
  "description": "Polyline encoding and decoding",
  "readme": "[![Build Status](https://secure.travis-ci.org/mapbox/polyline.png?branch=master)](http://travis-ci.org/mapbox/polyline) [![Coverage Status](https://coveralls.io/repos/mapbox/polyline/badge.svg)](https://coveralls.io/r/mapbox/polyline)\n\n# polyline\n\nA simple [google-esque polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)\nimplementation in Javascript. Compatible with nodejs (`npm install polyline` and the browser (copy `src/polyline.js`)).\n\nEncodes/decodes into lat/lng coordinate pairs. Use `fromGeoJSON()` to encode from GeoJSON objects.\n\n## Installation\n\n    npm install polyline\n\n## Example\n\n```js\nvar polyline = require('polyline');\n\n// returns an array of lat, lon pairs\npolyline.decode('_p~iF~ps|U_ulLnnqC_mqNvxq`@');\n\n// returns a string-encoded polyline\npolyline.encode([[38.5, -120.2], [40.7, -120.95], [43.252, -126.453]]);\n\n// returns a string-encoded polyline from a GeoJSON LineString\npolyline.fromGeoJSON({ \"type\": \"Feature\",\n  \"geometry\": {\n    \"type\": \"LineString\",\n    \"coordinates\": [[-120.2, 38.5], [-120.95, 40.7], [-126.453, 43.252]]\n  },\n  \"properties\": {}\n});\n```\n\n# [Documentation](https://github.com/mapbox/polyline/blob/master/API.md)\n\n## See Also\n\n* [polyline algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)\n* [Mark McClure's Google Maps Project](http://facstaff.unca.edu/mcmcclur/GoogleMaps.html)\n* [Routing geometry decoder in project-osrm](https://github.com/Project-OSRM/osrm-frontend/blob/master/WebContent/routing/OSRM.RoutingGeometry.js)\n",
  "repository": {
    "type": "git",
    "url": "git://github.com/mapbox/polyline.git"
  },
  "users": {
    "fgribreau": true,
    "acollins-ts": true,
    "joshua.marquez": true,
    "markstos": true,
    "joe223": true
  },
  "bugs": {
    "url": "https://github.com/mapbox/polyline/issues"
  },
  "versions": {
    "0.0.0": {
      "author": {
        "name": "Tom MacWright",
        "email": "tom@macwright.org",
        "url": "http://macwright.org/"
      },
      "name": "polyline",
      "description": "Polyline encoding and decoding",
      "version": "0.0.0",
      "repository": {
        "type": "git",
        "url": "git://github.com/tmcw/polyline.git"
      },
      "dependencies": {},
      "devDependencies": {
        "mocha": "1.2.x"
      },
      "optionalDependencies": {},
      "scripts": {
        "test": "mocha -R spec"
      },
      "main": "src/polyline.js",
      "engines": {
        "node": "*"
      },
      "_id": "polyline@0.0.0",
      "dist": {
        "shasum": "fcd07a7f5f3d485395cf3f132b16b2e2ad87ec52",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/polyline/-/polyline-0.0.0.tgz",
        "integrity": "sha512-UoP6eQ95OQRf23sg8Wq3ggQJfsoRwW6YQbPTQavxBfdmjU95NbvqQAbB7fhA+vewANe9qF4ioZrewQdt/5s8wg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDLTg9sFLsxDF57/KUyvAMMBEoKVajwRH/b2BDFDnlHCAIhAM/eHyKFga2YeeccLbEDv2OCUAvFMJHON7RKV1cbcEin"
          }
        ]
      },
      "maintainers": [
        {
          "name": "tmcw",
          "email": "tom@macwright.org"
        }
      ],
      "deprecated": "This module is now under the @mapbox namespace: install @mapbox/polyline instead",
      "directories": {}
    },
    "0.0.1": {
      "author": {
        "name": "Tom MacWright",
        "email": "tom@macwright.org",
        "url": "http://macwright.org/"
      },
      "name": "polyline",
      "description": "Polyline encoding and decoding",
      "version": "0.0.1",
      "repository": {
        "type": "git",
        "url": "git://github.com/mapbox/polyline.git"
      },
      "dependencies": {},
      "devDependencies": {
        "jshint": "2.3.0",
        "mocha": "1.2.x"
      },
      "optionalDependencies": {},
      "scripts": {
        "test": "jshint src && mocha -R spec"
      },
      "main": "src/polyline.js",
      "engines": {
        "node": "*"
      },
      "jshintConfig": {
        "undef": true,
        "node": true
      },
      "bugs": {
        "url": "https://github.com/mapbox/polyline/issues"
      },
      "homepage": "https://github.com/mapbox/polyline",
      "_id": "polyline@0.0.1",
      "dist": {
        "shasum": "6efecf0d3563f72212b3aa98e2267adbd3addfe3",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/polyline/-/polyline-0.0.1.tgz",
        "integrity": "sha512-GaXj78lAwrDolu1kQU5QPFJ3AtZY+V8Y0Iq7rlID/73O1N0J5G5aOm4ob1K/f6dDfSu1UFOtik6Wlclvp8ercw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIFyIv4HZWKqiejDSSNOW826UmQj3ZD+xOIYYiOLyQxTcAiAWAbTd1c5h1ZlRdpAugM9Zxan96qfqdHSeHWtBiD+z4A=="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.3.14",
      "_npmUser": {
        "name": "jfirebaugh",
        "email": "john.firebaugh@gmail.com"
      },
      "maintainers": [
        {
          "name": "tmcw",
          "email": "tom@macwright.org"
        },
        {
          "name": "jfirebaugh",
          "email": "john.firebaugh@gmail.com"
        }
      ],
      "deprecated": "This module is now under the @mapbox namespace: install @mapbox/polyline instead",
      "directories": {}
    },
    "0.0.2": {
      "author": {
        "name": "Tom MacWright",
        "email": "tom@macwright.org",
        "url": "http://macwright.org/"
      },
      "name": "polyline",
      "description": "Polyline encoding and decoding",
      "version": "0.0.2",
      "repository": {
        "type": "git",
        "url": "git://github.com/mapbox/polyline.git"
      },
      "dependencies": {},
      "devDependencies": {
        "jshint": "2.3.0",
        "mocha": "1.2.x"
      },
      "optionalDependencies": {},
      "scripts": {
        "test": "jshint src && mocha -R spec"
      },
      "main": "src/polyline.js",
      "engines": {
        "node": "*"
      },
      "jshintConfig": {
        "undef": true,
        "node": true
      },
      "bugs": {
        "url": "https://github.com/mapbox/polyline/issues"
      },
      "homepage": "https://github.com/mapbox/polyline",
      "_id": "polyline@0.0.2",
      "dist": {
        "shasum": "633906f1c102f166ad72e63b8c3100ec0a97e114",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/polyline/-/polyline-0.0.2.tgz",
        "integrity": "sha512-Hxp6oowJtndCASdLJTruJa43gCu8r3QRdVc+JGILHrKjeHhZB3+AfPtm3iAmeya7JYWFP2c/YQgVPj20PWA9Uw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDD3m4P3lwgNfc+CH/ue8HQqdbeDuxY47oyzdticYelsQIhAJJBsC9XOQLU+LMAGVruftwYKQCUfa4tYCjRsKxHxvRA"
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.3.14",
      "_npmUser": {
        "name": "jfirebaugh",
        "email": "john.firebaugh@gmail.com"
      },
      "maintainers": [
        {
          "name": "tmcw",
          "email": "tom@macwright.org"
        },
        {
          "name": "jfirebaugh",
          "email": "john.firebaugh@gmail.com"
        }
      ],
      "deprecated": "This module is now under the @mapbox namespace: install @mapbox/polyline instead",
      "directories": {}
    },
    "0.0.3": {
      "author": {
        "name": "Tom MacWright",
        "email": "tom@macwright.org",
        "url": "http://macwright.org/"
      },
      "name": "polyline",
      "description": "Polyline encoding and decoding",
      "version": "0.0.3",
      "repository": {
        "type": "git",
        "url": "git://github.com/mapbox/polyline.git"
      },
      "dependencies": {},
      "devDependencies": {
        "jshint": "2.3.0",
        "mocha": "1.2.x"
      },
      "optionalDependencies": {},
      "scripts": {
        "test": "jshint src && mocha -R spec"
      },
      "main": "src/polyline.js",
      "engines": {
        "node": "*"
      },
      "jshintConfig": {
        "undef": true,
        "node": true
      },
      "bugs": {
        "url": "https://github.com/mapbox/polyline/issues"
      },
      "homepage": "https://github.com/mapbox/polyline",
      "_id": "polyline@0.0.3",
      "dist": {
        "shasum": "075151fa52e32956883a65acd02c794b7a57b63c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/polyline/-/polyline-0.0.3.tgz",
        "integrity": "sha512-kM9l6Zi5m8GxNH4VF2amQm64gP+RcdQZN7DzwqeYZT6ILyFRhjibRAgTnV9jsckzApRByPiVOtwna1/6fOLGYg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIFtXuUch3wUBmlwo2p13SF3mV1K7g3edOCD04XA3C8zvAiEAip+kDTWdMxwlxgFxWJ+9xiTByQ6vZ5SUkFIQYD/Q1Ow="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.3.14",
      "_npmUser": {
        "name": "jfirebaugh",
        "email": "john.firebaugh@gmail.com"
      },
      "maintainers": [
        {
          "name": "tmcw",
          "email": "tom@macwright.org"
        },
        {
          "name": "jfirebaugh",
          "email": "john.firebaugh@gmail.com"
        }
      ],
      "deprecated": "This module is now under the @mapbox namespace: install @mapbox/polyline instead",
      "directories": {}
    },
    "0.1.0": {
      "author": {
        "name": "Tom MacWright",
        "email": "tom@macwright.org",
        "url": "http://macwright.org/"
      },
      "name": "polyline",
      "description": "Polyline encoding and decoding",
      "version": "0.1.0",
      "repository": {
        "type": "git",
        "url": "git://github.com/mapbox/polyline.git"
      },
      "dependencies": {},
      "devDependencies": {
        "eslint": "^0.23.0",
        "tap": "^1.2.1"
      },
      "optionalDependencies": {},
      "scripts": {
        "test": "eslint --no-eslintrc -c .eslintrc src && tap --coverage test/polyline.test.js"
      },
      "main": "src/polyline.js",
      "engines": {
        "node": "*"
      },
      "gitHead": "4314da45b5c2ebde19d872e93e8bef4802cce994",
      "bugs": {
        "url": "https://github.com/mapbox/polyline/issues"
      },
      "homepage": "https://github.com/mapbox/polyline#readme",
      "_id": "polyline@0.1.0",
      "_shasum": "56c111a5e419cb71f6cbe2bda82e7931e0fe9985",
      "_from": ".",
      "_npmVersion": "2.10.1",
      "_nodeVersion": "0.12.4",
      "_npmUser": {
        "name": "tmcw",
        "email": "tom@macwright.org"
      },
      "maintainers": [
        {
          "name": "tmcw",
          "email": "tom@macwright.org"
        },
        {
          "name": "jfirebaugh",
          "email": "john.firebaugh@gmail.com"
        },
        {
          "name": "mapbox",
          "email": "accounts@mapbox.com"
        }
      ],
      "dist": {
        "shasum": "56c111a5e419cb71f6cbe2bda82e7931e0fe9985",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/polyline/-/polyline-0.1.0.tgz",
        "integrity": "sha512-4Jg4j/hAL75TuL4QQCRg1myGdtusn4WBwQcWKO2YkW2AIMy8/nc+V/2Scur/cnGoa0j78xxzivKKxaWBgTj+Nw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQC/Vz5Y9Jd9yzs0OKxVgn2qgkaYl3xVZHxNeECcTHpSPgIgcXEqGMaokdzi+yC788PyZw8L2oNCD04tQvj3ovJndvg="
          }
        ]
      },
      "deprecated": "This module is now under the @mapbox namespace: install @mapbox/polyline instead",
      "directories": {}
    },
    "0.2.0": {
      "author": {
        "name": "Tom MacWright",
        "email": "tom@macwright.org",
        "url": "http://macwright.org/"
      },
      "name": "polyline",
      "description": "Polyline encoding and decoding",
      "version": "0.2.0",
      "repository": {
        "type": "git",
        "url": "git://github.com/mapbox/polyline.git"
      },
      "dependencies": {},
      "devDependencies": {
        "eslint": "^0.23.0",
        "tap": "^1.2.1"
      },
      "optionalDependencies": {},
      "scripts": {
        "test": "eslint --no-eslintrc -c .eslintrc src && tap --coverage test/polyline.test.js"
      },
      "main": "src/polyline.js",
      "engines": {
        "node": "*"
      },
      "gitHead": "d55f84a6279f00e84d6a09ad2e0da7d6e745dc4b",
      "bugs": {
        "url": "https://github.com/mapbox/polyline/issues"
      },
      "homepage": "https://github.com/mapbox/polyline",
      "_id": "polyline@0.2.0",
      "_shasum": "4f2b716ca81134a6cbaa488975d236ecb1cc2840",
      "_from": ".",
      "_npmVersion": "2.1.3",
      "_nodeVersion": "0.10.32",
      "_npmUser": {
        "name": "jfirebaugh",
        "email": "john.firebaugh@gmail.com"
      },
      "maintainers": [
        {
          "name": "tmcw",
          "email": "tom@macwright.org"
        },
        {
          "name": "jfirebaugh",
          "email": "john.firebaugh@gmail.com"
        },
        {
          "name": "mapbox",
          "email": "accounts@mapbox.com"
        }
      ],
      "dist": {
        "shasum": "4f2b716ca81134a6cbaa488975d236ecb1cc2840",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/polyline/-/polyline-0.2.0.tgz",
        "integrity": "sha512-rCJSkIHWZ/HOUoEWgjZ1DrRjLpTeTjgaktyJV0yhm8PugM5sKoavNjUHtI/amjsTn/Tq+Q3IIAuBD/dUSsWwxQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCKMuvhtXa9yG0ABjBjsDFwt82mgLTUu5GofIyNW2q9eAIgIKTlBYQZGNJTWVJ2dOXDU8Jj2/h5Yxef1jTNkRyyVyw="
          }
        ]
      },
      "deprecated": "This module is now under the @mapbox namespace: install @mapbox/polyline instead",
      "directories": {}
    }
  },
  "name": "polyline",
  "time": {
    "modified": "2026-05-22T22:15:14.484Z",
    "created": "2012-07-26T19:18:33.031Z",
    "0.0.0": "2012-07-26T19:18:33.524Z",
    "0.0.1": "2013-12-09T20:18:16.937Z",
    "0.0.2": "2013-12-10T19:38:29.042Z",
    "0.0.3": "2013-12-17T18:57:40.234Z",
    "0.1.0": "2015-06-21T21:52:23.949Z",
    "0.2.0": "2015-08-04T21:58:06.581Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/mapbox/polyline"
}