示例#1
0
        /// <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());
        }
示例#2
0
 /// <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);
 }