Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trovster/polyline-to-svg
Convert a collection of Google Map polyline encoded strings to SVG.
https://github.com/trovster/polyline-to-svg
Last synced: about 1 month ago
JSON representation
Convert a collection of Google Map polyline encoded strings to SVG.
- Host: GitHub
- URL: https://github.com/trovster/polyline-to-svg
- Owner: trovster
- Created: 2022-09-28T16:56:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-29T14:39:29.000Z (over 2 years ago)
- Last Synced: 2024-12-06T21:05:29.448Z (about 2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Polyline to SVG
Convert a collection of Google Map polyline encoded strings to SVG.
Place each polyline as a `.txt` file in the `polylines` folder, then
run `npm start`. This will generate the individual SVG files in the `dist`
folder and an `index.html` to view as a webpage.## Example
The `example.txt` polyline has been converted to the following SVG;
```plain
ixgaIpzfKLb@DXp@~BD^AAP`@VvALTbAxCHHLBBABUTa@Pi@Ti@\k@x@i@XKXGf@{@PSTMTAJBz@Ab@@r@KvBAnEOTFh@E`@BfCIhA?b@CPB\EP?VI~AIl@Xt@h@TFd@BV?LCp@?`B`@|@P^Dz@PZDFg@BEf@i@z@uAlA_BbAcA^[^c@\Yh@o@l@_@LEZAZFbAd@x@f@~Av@LBT?VG\WJWDBNTJz@i@|F[|AKdAIRSDKHU|@GPk@f@[p@Gh@Q`@Kd@]^KV[~BFbAI`@AXAnBGpAOd@Ml@w@dCY`DENYf@QtAM\In@Md@AVEREnAQ^GBkAOy@EgASqA_@_AMiAUSKu@Qw@YMKYYWi@AGBCUSaBcCaAmAYc@GEu@}@e@c@q@y@eCyBmAw@qCsBuA{@UUk@[IGaI}Do@a@_@OaCkAy@[O@o@SIMY_Aw@yBE]]iAGq@EQo@aBSe@Oc@
```![](example.svg)