fromString static method
fromString method to get the OsrmGeometries from a string
Implementation
static OsrmGeometries fromString(String geometries) {
switch (geometries) {
case 'polyline':
return OsrmGeometries.polyline;
case 'polyline6':
return OsrmGeometries.polyline6;
case 'geojson':
return OsrmGeometries.geojson;
default:
throw ArgumentError('Invalid geometries: $geometries');
}
}