toMap method
toMap method to get the OsrmLineString as a json map
Implementation
@override
Map<String, dynamic> toMap() {
return {
'type': 'LineString',
'coordinates': coordinates.map((e) => e.toCoordinateList()).toList(),
};
}
toMap method to get the OsrmLineString as a json map
@override
Map<String, dynamic> toMap() {
return {
'type': 'LineString',
'coordinates': coordinates.map((e) => e.toCoordinateList()).toList(),
};
}