-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NVDB-5791: Using enum for route fields.
* Connection links are true by default. * Bug fix on missing typeVeg in POST.
- Loading branch information
Showing
8 changed files
with
176 additions
and
87 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
34 changes: 34 additions & 0 deletions
34
src/main/java/no/vegvesen/nvdbapi/client/model/roadnet/route/RouteField.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,34 @@ | ||
package no.vegvesen.nvdbapi.client.model.roadnet.route; | ||
|
||
public enum RouteField { | ||
ROUTE_SEGMENTS("vegnettsrutesegmenter"), | ||
START("start"), | ||
END("slutt"), | ||
GEOMETRY("geometri"), | ||
SRID("srid"), | ||
BRIEF_RESPONSE("kortform"), | ||
CONNECTION_LINKS("konnekteringslenker"), | ||
DETAILED_LINKS("detaljerte_lenker"), | ||
DISTANCE("maks_avstand"), | ||
ENVELOPE("omkrets"), | ||
ROAD_SYS_REFS("vegsystemreferanse"), | ||
TYPE_OF_ROAD("typeveg"), | ||
ROAD_USER_GROUP("trafikantgruppe"), | ||
POINT_IN_TIME("tidspunkt"), | ||
START_POINT_IN_TIME("tidspunkt_start"), | ||
END_POINT_IN_TIME("tidspunkt_slutt"), | ||
METADATA("metadata"), | ||
LENGTH("lengde"), | ||
STATUS("status"), | ||
STATUS_TEXT("status_tekst"); | ||
|
||
private final String fieldName; | ||
|
||
RouteField(String fieldName) { | ||
this.fieldName = fieldName; | ||
} | ||
|
||
public String getName() { | ||
return this.fieldName; | ||
} | ||
} |
Oops, something went wrong.