Changeset 248 in tmcsimulator for trunk/src/atmsdriver/model/PostmileCoords.java
- Timestamp:
- 02/09/2019 08:18:35 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/atmsdriver/model/PostmileCoords.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/model/PostmileCoords.java
r244 r248 54 54 { 55 55 String[] fields = item.split(","); 56 Postmile pm = new Postmile(fields[0],fields[1],fields[2]); 56 String[] nameparts = fields[0].split(" "); 57 String statepm = nameparts[2]; 58 // some postmiles come with a prefix, which we ignore 59 if (Character.isLetter(statepm.charAt(0))) 60 { 61 statepm = statepm.substring(1); 62 } 63 String revisedpm = nameparts[0] + " " + nameparts[1] + " " + statepm; 64 Postmile pm = new Postmile(revisedpm,fields[1],fields[2]); 57 65 postmileList.add(pm); 58 66 } … … 69 77 final static class Postmile 70 78 { 71 String name; // the postmile name or id79 String name; // the postmile name (Route,Direction,State postmile) 72 80 String latitude; // the latitude coordinate for this postmile 73 81 String longitude; // the longitude coordinate for this postmile
Note: See TracChangeset
for help on using the changeset viewer.
