11
I have a series of (encoded, or decoded) polylines captured from a service like Google Maps / Open Street Maps.
For example:
var polylines = ["kclaG|i_qLe@i@{AgBu@_AsCyCiBmBMMW[eCiC}A_BEEeBiB{@}@MW]a@a@e@]a@IGGG_AgAm@i@MOYYMEQSCCi@k@KKu@y@{A}Ay@cA{@{@eBiBOMe@k@_@a@e@e@QQY[cAkAUWMOUWu@w@AACCYY?AMKUUSSSQ]]GGECCCECA?AAA?A?C?G?WB"
,"yfnaGld}pL?e@?]AuDAgA?KAkBGqG?{C?_B?S?aC?[?]A}A?wAASAQ"
,"qmnaGlxxpLn@tEL~@"]
I want to store these as GeoJSON. I've found plenty of packages which render GeoJSON through tools like Leaflet, but I'm having trouble finding packages that could export polylines to GeoJSON.
Do any solutions like this exist or is there a particular subset of the GeoJSON standard that I should be looking into so I can write the tool myset?
Side note: I ultimately want a KML or SHP file. I'm planning to use http://ogre.adc4gis.com/ to convert from GeoJSON to SHP.