11package org.nitri.ors.model.route
22
3+ import kotlinx.serialization.SerialName
34import kotlinx.serialization.Serializable
45
56@Serializable
@@ -8,26 +9,34 @@ data class RouteRequest(
89 val radiuses : List <Double >? = null ,
910 val bearings : List <List <Double >>? = null ,
1011 val elevation : Boolean? = null ,
11- val extra_info : List <String >? = null ,
12+ @SerialName(" extra_info" )
13+ val extraInfo : List <String >? = null ,
1214 val instructions : Boolean? = null ,
13- val instructions_format : String? = null ,
15+ @SerialName(" instructions_format" )
16+ val instructionsFormat : String? = null ,
1417 val language : String? = null ,
1518 val preference : String? = null ,
1619 val units : String? = null ,
1720 val geometry : Boolean? = null ,
18- val geometry_simplify : Boolean? = null ,
19- val roundabout_exits : Boolean? = null ,
21+ @SerialName(" geometry_simplify" )
22+ val geometrySimplify : Boolean? = null ,
23+ @SerialName(" roundabout_exits" )
24+ val roundaboutExits : Boolean? = null ,
2025 val attributes : List <String >? = null ,
2126 val maneuvers : Boolean? = null ,
22- val continue_straight : Boolean? = null ,
27+ @SerialName(" continue_straight" )
28+ val continueStraight : Boolean? = null ,
2329 val options : RouteOptions ? = null
2430)
2531
2632@Serializable
2733data class RouteOptions (
28- val avoid_features : List <String >? = null ,
29- val avoid_polygons : AvoidPolygons ? = null ,
30- val profile_params : ProfileParams ? = null
34+ @SerialName(" avoid_features" )
35+ val avoidFeatures : List <String >? = null ,
36+ @SerialName(" avoid_polygons" )
37+ val avoidPolygons : AvoidPolygons ? = null ,
38+ @SerialName(" profile_params" )
39+ val profileParams : ProfileParams ? = null
3140)
3241
3342@Serializable
@@ -56,8 +65,12 @@ data class WeightingFactor(
5665
5766@Serializable
5867data class Restrictions (
59- val max_height : Double? = null ,
60- val max_width : Double? = null ,
61- val max_weight : Double? = null ,
62- val max_length : Double? = null
68+ @SerialName(" max_height" )
69+ val maxHeight : Double? = null ,
70+ @SerialName(" max_width" )
71+ val maxWidth : Double? = null ,
72+ @SerialName(" max_weight" )
73+ val maxWeight : Double? = null ,
74+ @SerialName(" max_length" )
75+ val maxLength : Double? = null
6376)
0 commit comments