-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6119 from Jnction/indoor-routing
Make indoor=area and indoor=corridor routable
- Loading branch information
Showing
9 changed files
with
135 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
application/src/test/java/org/opentripplanner/osm/tagmapping/UKMapperTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.opentripplanner.osm.tagmapping; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.opentripplanner.street.model.StreetTraversalPermission.PEDESTRIAN; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.opentripplanner.osm.wayproperty.WayPropertySet; | ||
import org.opentripplanner.osm.wayproperty.specifier.WayTestData; | ||
|
||
public class UKMapperTest { | ||
|
||
static WayPropertySet wps = new WayPropertySet(); | ||
|
||
static { | ||
var source = new UKMapper(); | ||
source.populateProperties(wps); | ||
} | ||
|
||
@Test | ||
void indoor() { | ||
var corridor = wps.getDataForWay(WayTestData.indoor("corridor")); | ||
assertEquals(PEDESTRIAN, corridor.getPermission()); | ||
var area = wps.getDataForWay(WayTestData.indoor("area")); | ||
assertEquals(PEDESTRIAN, area.getPermission()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters