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

PSA: upcoming OSRM version is going to announce mode #47

Closed
DennisOSRM opened this issue Aug 21, 2014 · 4 comments
Closed

PSA: upcoming OSRM version is going to announce mode #47

DennisOSRM opened this issue Aug 21, 2014 · 4 comments

Comments

@DennisOSRM
Copy link

We just merged a larger change into OSRM that's going to support mode indication, e.g. it's going to announce when you have take a ferry with the car or perhaps a shuttle train.

The last entry in the instruction array indicate the mode by ID.

    "route_instructions": [
        [
            "10",
            "Kemberger Straße",
            418,
            0,
            41,
            "418m",
            "SW",
            217,
            1 <--- this guy
        ],...

For car directions, we have:

  • 1 drive (99.9% of the time)
  • 2 ferry
  • 3 shuttle train

Up to 16 modes per profile are supported and 15 are available to the user. Mode 0 is used internally to indicate that a (direction of a) road is impassable.

cc: @jfirebaugh

@kkaefer
Copy link

kkaefer commented Aug 21, 2014

screen shot 2014-08-21 at 15 57 58

@DennisOSRM
Copy link
Author

@kkaefer ?

@jfirebaugh
Copy link
Contributor

@DennisOSRM Thanks for the info. So (except for 0), the meanings of the modes are completely determined by the profile, e.g. a cycling profile could have 1 = cyling, 2 = walk your bike, 3 = ferry?

@DennisOSRM
Copy link
Author

Right, it could be 1 = elephant for that matter.

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

3 participants