/// <summary> /// Returns this route as geojson. /// </summary> public static string ToGeoJson(this Route route, bool includeShapeMeta = true, bool includeStops = true, bool groupByShapeMeta = true) { var stringWriter = new StringWriter(); route.WriteGeoJson(stringWriter, includeShapeMeta, includeStops, groupByShapeMeta); return(stringWriter.ToInvariantString()); }
/// <summary> /// Writes the route as geojson. /// </summary> public static void WriteGeoJson(this Route route, Stream stream, bool includeShapeMeta = true, bool includeStops = true, bool groupByShapeMeta = true) { route.WriteGeoJson(new StreamWriter(stream), includeShapeMeta, includeStops, groupByShapeMeta); }