Skip to content

Commit

Permalink
Revert to kph inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit authored Nov 30, 2023
1 parent 35bf4d9 commit 97e8502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/conveyal/r5/shapefile/SpeedMatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public SpeedMatcher (StreetLayer streets) {
@Override
void setEdgePair (SimpleFeature feature, int attributeIndex, EdgeStore.Edge edge) {
if (feature.getAttribute(attributeIndex) != null) {
double speedKph = KPH_PER_MPH * ((Number) feature.getAttribute(attributeIndex)).doubleValue();
double speedKph = ((Number) feature.getAttribute(attributeIndex)).doubleValue();
edge.setSpeedKph(speedKph);
edge.advance();
edge.setSpeedKph(speedKph);
Expand Down

0 comments on commit 97e8502

Please sign in to comment.