View source: R/shapes_helpers.R
| resolve_shapes_method | R Documentation |
If method is "shapes" but the GTFS object has no shapes table or its
trips table has no shape_id column (see has_shapes()), raises a
warning of class gtfstools_shapes_unavailable and returns
"euclidean". Otherwise returns method unchanged.
resolve_shapes_method(gtfs, method, fallback)
gtfs |
A GTFS object. |
method |
A string, |
fallback |
A string. The "i" bullet of the warning, which says what is calculated instead. It is interpolated by cli in the helper, so it may use cli markup but not the caller's variables. |
A string, the method to use.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.