find_routes {himach}R Documentation

Find best routes between airport-pair & aircraft combinations

Description

find_routes combines an aircraft and airport-pair list and finds the best routes between them, refuelling if necessary

Usage

find_routes(ac_ids, ap2_ids, aircraft, airports, ...)

Arguments

ac_ids

A vector of aircraft IDs, as in column 'id' from make_aircraft

ap2_ids

A 2-column matrix or dataframe of airport pair text IDs

aircraft

Specification of the aircraft, see make_aircraft

airports

Airport locations as from make_airports

...

Other parameters, passed to find_route.

Details

This function finds is a wrapper for the single-case function find_route. It takes (text) lists of aircraft and airport codes, combines them, then finds routes for all of these. A 'route' is made up of one or two 'legs' (airport to airport without intermediate stop).

For more details see find_route

Value

Dataframe with details of the routes

Examples

# need to load some of the built-in data
aircraft <- make_aircraft(warn = FALSE)
airports <- make_airports(crs = crs_Pacific)
# get test datasets
NZ_buffer30 <- hm_get_test("buffer")
NZ_grid <- hm_get_test("grid")

options("quiet" = 4) #for heavy reporting
# from Auckland to Christchurch
ap2 <- make_AP2("NZAA","NZCH",airports)
## Not run: 
routes <- find_route(aircraft[4,],
                    ap2,
                    fat_map = NZ_buffer30,
                    route_grid = NZ_grid,
                    ap_loc = airports)

## End(Not run)


[Package himach version 0.3.2 Index]