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

Speed parameter #115

Closed
fagnersutel opened this issue Oct 19, 2022 · 3 comments
Closed

Speed parameter #115

fagnersutel opened this issue Oct 19, 2022 · 3 comments

Comments

@fagnersutel
Copy link

What is the speed parameter in the osrmIsochrone.R file? In the walking parameter we have 10 * (1000/60)? Is it miles, kilometers/h?

@rCarto
Copy link
Member

rCarto commented Oct 19, 2022

speed is expressed in meters per minute. For walking we use a theoretical value of 10 km/h, for driving 120 km/h.

This variable is used to get the theoretical maximum (euclidean) distance reached within the maximum breaks time value (and then compute a regular grid within this extent and return time distance in this grid, compute isopolygons etc.).

@fagnersutel
Copy link
Author

Great, so if I want to make an isochron for kids around a school; is it possible to edit the osrmIsochrone.R file to adjust the walk to a factor that reduces this speed? Of course making a clone of the package.

@rCarto
Copy link
Member

rCarto commented Oct 19, 2022

Nope, that would not be useful. This parameter only define the extent of the grid internally needed to get measures. If you want a custom speed (walking slowly, running...) to be used in time distance calculation by OSRM, you'll need to use your own instance of OSRM server and use a custom profile (editing a *.lua profile file from OSRM server GitHub repo for exemple) in it.
osrm, the package, does not compute the time/distances measures, the OSRM server does.

[edit]

[/edit]

@rCarto rCarto closed this as completed Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants