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

Simple Queries that Compute Time Between Locations #38

Open
caleb-kwon opened this issue Oct 3, 2024 · 1 comment
Open

Simple Queries that Compute Time Between Locations #38

caleb-kwon opened this issue Oct 3, 2024 · 1 comment

Comments

@caleb-kwon
Copy link

Hello,

Thank you for this wonderful package. It seems like this package achieves some complicated API calls (e.g., finding reachable locations within a certain time frame given a location). However, after looking through the documentation and examples, I am wondering if the package allows me to do some more basic API calls (perhaps I am missing something, however).

Essentially, I have a three column data.table ("Origin", "Destination" and "Date-Time"). I am looking to create multiple columns based on the travel times between Origin and Destination, depending on the mode of transportation. Something like "Time_Driving", "Time_Public_Transportation". I am wondering if this more basic query is possible with your package.

Thanks again!

@caleb-kwon caleb-kwon reopened this Oct 3, 2024
@chris-traveltime
Copy link

Hey Caleb,

Thanks for the kind words! What you are trying to do should definitely be doable with the package.

I would recommend using the Routes function. This can calculate the travel time between an Origin and a Destination - you just need to make sure you include the travel_time value in the properties in the search.

You will need to make a search for each row of your table, for each mode of transport. e.g "Origin 1 / Destination 1 / Driving", "Origin 1 / Destination 1 / Public Transport", "Origin 2 / Destination 2 / Driving" etc.

You will then just need to map the responses into the data structure that you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants