forked from opentripplanner/OpenTripPlanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-2.x' into StreetEdge-null-safety
- Loading branch information
Showing
183 changed files
with
7,047 additions
and
2,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
application/src/ext/java/org/opentripplanner/ext/fares/model/Distance.java
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
application/src/ext/java/org/opentripplanner/ext/fares/model/FareDistance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...t/resources/org/opentripplanner/ext/apis/transmodel/custom-documentation-entur.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Use: | ||
# <TypeName>[.<FieldName>].(description|deprecated)[.append] | ||
# | ||
# Examples | ||
# // Replace the existing type description | ||
# Quay.description=The place for boarding/alighting a vehicle | ||
# | ||
# // Append to the existing type description | ||
# Quay.description.append=Append | ||
# | ||
# // Replace the existing field description | ||
# Quay.name.description=The public name | ||
# | ||
# // Append to the existing field description | ||
# Quay.name.description.append=(Source NSR) | ||
# | ||
# // Insert deprecated reason. Due to a bug in the Java GraphQL lib, an existing deprecated | ||
# // reason cannot be updated. Deleting the reason from the schema, and adding it back using | ||
# // the "default" TransmodelApiDocumentationProfile is a workaround. | ||
# Quay.name.deprecated=This field is deprecated ... | ||
|
||
|
||
TariffZone.description=A **zone** used to define a zonal fare structure in a zone-counting or \ | ||
zone-matrix system. This includes TariffZone, as well as the specialised FareZone elements. \ | ||
TariffZones are deprecated, please use FareZones. \ | ||
\ | ||
**TariffZone data will not be maintained from 1. MAY 2025 (Entur).** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
application/src/main/java/org/opentripplanner/apis/gtfs/datafetchers/EntranceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package org.opentripplanner.apis.gtfs.datafetchers; | ||
|
||
import graphql.schema.DataFetcher; | ||
import org.opentripplanner.apis.gtfs.GraphQLUtils; | ||
import org.opentripplanner.apis.gtfs.generated.GraphQLDataFetchers; | ||
import org.opentripplanner.apis.gtfs.generated.GraphQLTypes; | ||
import org.opentripplanner.transit.model.site.Entrance; | ||
|
||
public class EntranceImpl implements GraphQLDataFetchers.GraphQLEntrance { | ||
|
||
@Override | ||
public DataFetcher<String> publicCode() { | ||
return environment -> { | ||
Entrance entrance = environment.getSource(); | ||
return entrance.getCode(); | ||
}; | ||
} | ||
|
||
@Override | ||
public DataFetcher<String> entranceId() { | ||
return environment -> { | ||
Entrance entrance = environment.getSource(); | ||
return entrance.getId().toString(); | ||
}; | ||
} | ||
|
||
@Override | ||
public DataFetcher<String> name() { | ||
return environment -> { | ||
Entrance entrance = environment.getSource(); | ||
return org.opentripplanner.framework.graphql.GraphQLUtils.getTranslation( | ||
entrance.getName(), | ||
environment | ||
); | ||
}; | ||
} | ||
|
||
@Override | ||
public DataFetcher<GraphQLTypes.GraphQLWheelchairBoarding> wheelchairAccessible() { | ||
return environment -> { | ||
Entrance entrance = environment.getSource(); | ||
return GraphQLUtils.toGraphQL(entrance.getWheelchairAccessibility()); | ||
}; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ation/src/main/java/org/opentripplanner/apis/gtfs/datafetchers/RentalVehicleFuelImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.opentripplanner.apis.gtfs.datafetchers; | ||
|
||
import graphql.schema.DataFetcher; | ||
import graphql.schema.DataFetchingEnvironment; | ||
import org.opentripplanner.apis.gtfs.generated.GraphQLDataFetchers; | ||
import org.opentripplanner.service.vehiclerental.model.RentalVehicleFuel; | ||
|
||
public class RentalVehicleFuelImpl implements GraphQLDataFetchers.GraphQLRentalVehicleFuel { | ||
|
||
@Override | ||
public DataFetcher<Double> percent() { | ||
return environment -> | ||
getSource(environment).percent() != null ? getSource(environment).percent().asDouble() : null; | ||
} | ||
|
||
@Override | ||
public DataFetcher<Integer> range() { | ||
return environment -> | ||
getSource(environment).range() != null ? getSource(environment).range().toMeters() : null; | ||
} | ||
|
||
private RentalVehicleFuel getSource(DataFetchingEnvironment environment) { | ||
return environment.getSource(); | ||
} | ||
} |
Oops, something went wrong.