Skip to content

Commit

Permalink
Rename class BikeNetworkParser into BikeNetworkParserHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ratrun committed Nov 6, 2023
1 parent dc71dba commit ebc5bef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.graphhopper.routing.ev.RouteNetwork;

public class BikeNetworkParser {
public class BikeNetworkParserHelper {
static RouteNetwork determine(String tag) {
RouteNetwork newBikeNetwork = RouteNetwork.LOCAL;
if ("lcn".equals(tag)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void handleRelationTags(IntsRef relFlags, ReaderRelation relation) {
RouteNetwork oldBikeNetwork = transformerRouteRelEnc.getEnum(false, -1, relIntAccess);
if (relation.hasTag("route", "bicycle")) {
String tag = Helper.toLowerCase(relation.getTag("network", ""));
RouteNetwork newBikeNetwork = BikeNetworkParser.determine(tag);
RouteNetwork newBikeNetwork = BikeNetworkParserHelper.determine(tag);
if (oldBikeNetwork == RouteNetwork.MISSING || oldBikeNetwork.ordinal() > newBikeNetwork.ordinal())
transformerRouteRelEnc.setEnum(false, -1, relIntAccess, newBikeNetwork);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void handleRelationTags(IntsRef relFlags, ReaderRelation relation) {
RouteNetwork oldBikeNetwork = transformerRouteRelEnc.getEnum(false, -1, relIntAccess);
if (relation.hasTag("route", "mtb")) {
String tag = Helper.toLowerCase(relation.getTag("network", ""));
RouteNetwork newBikeNetwork = BikeNetworkParser.determine(tag);
RouteNetwork newBikeNetwork = BikeNetworkParserHelper.determine(tag);
if (oldBikeNetwork == RouteNetwork.MISSING || oldBikeNetwork.ordinal() > newBikeNetwork.ordinal())
transformerRouteRelEnc.setEnum(false, -1, relIntAccess, newBikeNetwork);
}
Expand Down

0 comments on commit ebc5bef

Please sign in to comment.