Пример #1
0
 public static RouteSegment CreateNew(ICoordinate coordinate, OsmSharp.Routing.Profiles.Profile profile)
 {
     return(new RouteSegment()
     {
         Latitude = coordinate.Latitude,
         Longitude = coordinate.Longitude,
         Profile = profile.Name
     });
 }
Пример #2
0
        public static RouteSegment CreateNew(float latitude, float longitude, OsmSharp.Routing.Profiles.Profile profile)
        {
            RouteSegment routeSegment = new RouteSegment();

            routeSegment.Latitude  = latitude;
            routeSegment.Longitude = longitude;
            string name = profile.Name;

            routeSegment.Profile = name;
            return(routeSegment);
        }