-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverse order of name and ID in output and enum. string flags are maintained in request but no longer used. deleted code serves as example of how to use flags.
- Loading branch information
Showing
6 changed files
with
44 additions
and
27 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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/conveyal/analysis/models/CsvResultOptions.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,18 @@ | ||
package com.conveyal.analysis.models; | ||
|
||
import com.conveyal.r5.transit.TransitLayer; | ||
import com.conveyal.r5.transit.TransitLayer.EntityRepresentation; | ||
|
||
import static com.conveyal.r5.transit.TransitLayer.EntityRepresentation.ID_ONLY; | ||
|
||
/** | ||
* API model type included in analysis requests to control details of CSV regional analysis output. | ||
* This type is shared between AnalysisRequest (Frontend -> Broker) and AnalysisWorkerTask (Broker -> Workers). | ||
* There is precedent for nested compound types shared across those top level request types (see DecayFunction). | ||
*/ | ||
public class CsvResultOptions { | ||
public EntityRepresentation routeRepresentation = ID_ONLY; | ||
public EntityRepresentation stopRepresentation = ID_ONLY; | ||
// Only feed ID representation is allowed to be null (no feed IDs at all, the default). | ||
public EntityRepresentation feedRepresentation = null; | ||
} |
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