public OsmStreamFilterPoly(LineairRing poly)
 {
     if (poly == null)
     {
         throw new ArgumentNullException("poly");
     }
     this._poly = poly;
     this._box  = new GeoCoordinateBox((IList <GeoCoordinate>)poly.Coordinates);
     this.Meta.Add("poly", GeoJsonConverter.ToGeoJson(this._poly));
 }
Exemple #2
0
 public static string ToGeoJson(this IList <Instruction> instructions, Route route)
 {
     return(GeoJsonConverter.ToGeoJson(instructions.ToFeatureCollection(route)));
 }
 public static string ToGeoJson(this Route route)
 {
     return(GeoJsonConverter.ToGeoJson(route.ToFeatureCollection()));
 }