Learn R Programming

googleway (version 2.0.0)

objPolylineCoords: Obj Polyline Coords

Description

Creates a list object that can be converted into the required JSON for plotting coordinates as polylines

Usage

objPolylineCoords(obj, ids, otherColumns)

Arguments

obj

data.frame consisting of columns 'lat' and 'lng'

ids

vector of ids for each path/line

otherColumns

vector of attribute columns (e.g. stroke_fill, stroke_weight) that are to be kept in the output