Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Trip going through delivery way #51

Closed
jailby opened this issue Aug 14, 2015 · 4 comments
Closed

Trip going through delivery way #51

jailby opened this issue Aug 14, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@jmfield2
Copy link
Contributor

jmfield2 commented Sep 4, 2015

So far, I don't see any reference to the 'access' tag restricting permissions on a way within the OTP graph_builder, and highway=service currently sets StreetTraversalPermission.ALL (which includes pedestrian).

Perhaps we should ask on the dev lists for advice on whether the highway=service should only allow driving modes, to use a different highway tag that will only permit driving (looks to be 4: trunk_link, motorway_link, trunk, and motorway), or something else.

The permissions are defined primarily by:
https://github.com/CUTR-at-USF/usf-mobullity/blob/mobullityrebase/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java

@jmfield2
Copy link
Contributor

jmfield2 commented Sep 4, 2015

There was a related issue awhile back where OTP would sometimes route pedestrians on roads instead is somewhat related, and I 'fixed' it on my local repo here:
https://github.com/jmfield2/usf-mobullity/blob/34324b69427c5b46bff3f98004c455d6c6bf33de/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java

This isn't yet in mobullity - I think it may need some additional tests to make sure it doesn't break everything - but it seems possible something like it could also be used to fix this.

@jmfield2
Copy link
Contributor

jmfield2 commented Sep 4, 2015

Actually, it will try:
openstreetmap model OSMWithTags - way.isGeneralAccessDenied

but:
// There are exceptions.
return (way.isMotorcarExplicitlyAllowed() || way.isBicycleExplicitlyAllowed() ||
way.isPedestrianExplicitlyAllowed());

which all of them should be false since only highway=service is set

@jmfield2 jmfield2 modified the milestone: Version 2 Sep 18, 2015
@jmfield2 jmfield2 added the bug label Oct 7, 2015
@jmfield2
Copy link
Contributor

This seems to be fixed now. In addition, the itinerary link above does not work because of the bannedRoutes=undefined parameter (subsequent links do not include undefined parameters, this was fixed as another issue)

Corrected link:
https://mobullity.forest.usf.edu/index.html?module=planner&fromPlace=28.058697750290175%2C-82.40580797195435&toPlace=28.059656364296405%2C-82.40605473518372&time=9%3A09am&date=08-14-2015&mode=TRANSIT%2CWALK&maxWalkDistance=1609.34&wheelchair=false&arriveBy=false&showIntermediateStops=true&itinIndex=0

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

No branches or pull requests

2 participants