-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GTFS bus feed #111
Use GTFS bus feed #111
Conversation
private final String stopCode = row.get(csv.getHeaderIndex("stop_code")); | ||
private final String stopName = row.get(csv.getHeaderIndex("stop_name")); | ||
private final String stopDesc = row.get(csv.getHeaderIndex("stop_desc")); | ||
|
||
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); | ||
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon"))); | ||
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); | ||
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon"))); | ||
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); | ||
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon"))); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
private final String stopCode = row.get(csv.getHeaderIndex("stop_code")); | ||
private final String stopName = row.get(csv.getHeaderIndex("stop_name")); | ||
private final String stopDesc = row.get(csv.getHeaderIndex("stop_desc")); | ||
|
||
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); | ||
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon"))); | ||
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); | ||
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon"))); | ||
private final Double stopLat = Double.valueOf(row.get(csv.getHeaderIndex("stop_lat"))); | ||
private final Double stopLon = Double.valueOf(row.get(csv.getHeaderIndex("stop_lon"))); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
|
||
private String status = requireNonNull(() -> vehicle.getCurrentStatus().name()); | ||
private Integer stopID = requireNonNull(() -> Integer.valueOf(vehicle.hasStopId() ? vehicle.getStopId() : tripUpdate.getStopTimeUpdate(0).getStopId())); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Katsute I have approved this pull request
Prerequisites
Issues must meet the following criteria:
GitHub Copilot Disclaimer
The use of GitHub Copilot is strictly prohibited on this repository.
Changes Made
List any changes made and/or other relevant issues.
WF-3864033213
Release Notes
🛑 This major update includes breaking changes 🛑
This update drops the SIRI bus API in favor of the GTFS bus API. This update is most likely not compatible with previous versions of the bus API; all other modes should still be compatible with this update.
Json
andJsonSyntaxException
RailroadStop
RailroadTripStop
Attributes
Inlined several attributes and removed respective interfaces:
Bearing
RouteReference
,StopReference
,TripReference
, andVehiclesReference
into a singleReference
classRouteDescription
RouteShortName
Alerts
Bus
Dropped SIRI API in favor of GTFS API.
Stop
Vehicle
Trip
Subway
Vehicle
Long Island Railroad (LIRR)
Trip
Metro North Railroad (MNR)
Vehicle