Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Filter transport modes in 'connection()' #130

Closed
munterfi opened this issue Apr 20, 2021 · 0 comments · Fixed by #134
Closed

Feature: Filter transport modes in 'connection()' #130

munterfi opened this issue Apr 20, 2021 · 0 comments · Fixed by #134
Assignees
Labels
feature New feature or enhancement

Comments

@munterfi
Copy link
Owner

Add parameter to allow filtering transport modes in connection().

# Use minus to avoid modes
connection(..., modes = c("-highSpeedTrain", "-subway", "-monorail"))

# ... or use another boolean parameter
connection(..., modes = c("highSpeedTrain", "subway", "monorail"), avoid_modes = FALSE)

All modes:

Name Vehicle types
highSpeedTrain High-speed trains
intercityTrain Intercity/EuroCity trains
interRegionalTrain Inter-regional and fast trains
regionalTrain Regional and other trains
cityTrain City trains
bus Buses
ferry Boats/Ferries
subway Metros/Subways
lightRail Trams
privateBus Ordered services/Taxis
inclined Inclined/Funiculars
aerial Aerials/Cable cars
busRapid Rapid buses
monorail Monorails
flight Airplanes
walk Walk

See the API documentation.

@munterfi munterfi added the feature New feature or enhancement label Apr 20, 2021
@munterfi munterfi self-assigned this Apr 20, 2021
This was referenced Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant