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

Commit

Permalink
Routes: fix gtfs:route_id which was incorrectly set to trip_id:sample
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzap committed Aug 5, 2023
1 parent 4354aa0 commit d579407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GO_Sync/src/main/java/edu/usf/cutr/go_sync/object/Route.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Route(String rId, String rRef, String op) {
osmTags = new Hashtable();
osmMembers = new LinkedHashSet <RelationMember>();
routeId = rId;
if(rId!=null) this.osmTags.put(tag_defs.OSM_ROUTE_ID_KEY, rId);
if(rId!=null) this.osmTags.put(tag_defs.OSM_TRIP_ID_KEY, rId);
routeRef = rRef;
operatorName = op;
}
Expand All @@ -49,8 +49,8 @@ public Route(Route r) {
if(r.getOsmMembers()!=null) this.osmMembers.addAll(r.getOsmMembers());
this.routeId = r.getRouteId();
if (routeId == null) routeId = "missing";
String ori = (String)r.getTags().get(tag_defs.OSM_ROUTE_ID_KEY);
if(ori==null) this.osmTags.put(tag_defs.OSM_ROUTE_ID_KEY, routeId);
String ori = (String)r.getTags().get(tag_defs.OSM_TRIP_ID_KEY);
if(ori==null) this.osmTags.put(tag_defs.OSM_TRIP_ID_KEY, routeId);
this.routeRef = r.getRouteRef();
this.operatorName = r.getOperatorName();
if(r.getOsmId()!=null) this.setOsmId(r.getOsmId());
Expand Down

0 comments on commit d579407

Please sign in to comment.