|
| 1 | +package gosrm |
| 2 | + |
| 3 | +type ( |
| 4 | + // Geometry is the geometry format. |
| 5 | + Geometry string |
| 6 | + |
| 7 | + // Overview is the type for overview option. |
| 8 | + Overview string |
| 9 | + |
| 10 | + // ContinueStraight is the type for continue straight option. |
| 11 | + ContinueStraight string |
| 12 | + |
| 13 | + // Gaps is the type for gaps option. |
| 14 | + Gaps string |
| 15 | + |
| 16 | + // Annotations is the type for annotations option. |
| 17 | + Annotations string |
| 18 | + |
| 19 | + // Source is the type for source option. |
| 20 | + Source string |
| 21 | + |
| 22 | + // Destination is the type for destination option. |
| 23 | + Destination string |
| 24 | + |
| 25 | + // Code is the error code returned by OSRM. |
| 26 | + Code string |
| 27 | + |
| 28 | + // Profile is the mode of transportation, is determined statically by the Lua profile that is used to prepare the data using osrm-extract. |
| 29 | + // Typically car, bike or foot if using one of the supplied profiles. |
| 30 | + Profile string |
| 31 | + |
| 32 | + // Approaches is the type for approaches option. |
| 33 | + Approaches string |
| 34 | + |
| 35 | + // Snapping is the type for snapping option. |
| 36 | + Snapping string |
| 37 | + |
| 38 | + // FallbackCoordinate is the type for fallback coordinate option. |
| 39 | + FallbackCoordinate string |
| 40 | +) |
| 41 | + |
| 42 | +const ( |
| 43 | + // CodeOK is returned when request could be processed as expected. |
| 44 | + CodeOK Code = "Ok" |
| 45 | + |
| 46 | + //CodeInvalidUrl is returned when URL string is invalid. |
| 47 | + CodeInvalidUrl Code = "InvalidUrl" |
| 48 | + |
| 49 | + // CodeInvalidService is returned when service name is invalid. |
| 50 | + CodeInvalidService Code = "InvalidService" |
| 51 | + |
| 52 | + // CodeInvalidVersion is returned when version is not found. |
| 53 | + CodeInvalidVersion Code = "InvalidVersion" |
| 54 | + |
| 55 | + // CodeInvalidOptions is returned when options are invalid. |
| 56 | + CodeInvalidOptions Code = "InvalidOptions" |
| 57 | + |
| 58 | + // CodeInvalidQuery is returned when the query string is synctactically malformed. |
| 59 | + CodeInvalidQuery Code = "InvalidQuery" |
| 60 | + |
| 61 | + // CodeInvalidValue is returned when the successfully parsed query parameters are invalid. |
| 62 | + CodeInvalidValue Code = "InvalidValue" |
| 63 | + |
| 64 | + // CodeNoSegment is returned when one of the supplied input coordinates could not snap to street segment. |
| 65 | + CodeNoSegment Code = "NoSegment" |
| 66 | + |
| 67 | + // CodeTooBig is returned when the request size violates one of the service specific request size restrictions. |
| 68 | + CodeTooBig Code = "TooBig" |
| 69 | + |
| 70 | + // CodeNoRoute is returned when no route was found. |
| 71 | + CodeNoRoute Code = "NoRoute" |
| 72 | + |
| 73 | + // CodeNoTable is returned when no route was found. |
| 74 | + CodeNoTable Code = "NoTable" |
| 75 | + |
| 76 | + // CodeNoMatch is returned when no match was found. |
| 77 | + CodeNoMatch Code = "NoMatch" |
| 78 | + |
| 79 | + // CodeNoTrips is returned when no trips were found because input coordinates are not connected. |
| 80 | + CodeNoTrips Code = "NoTrips" |
| 81 | + |
| 82 | + // CodeNotImplemented is returned when this request is not supported. |
| 83 | + CodeNotImplemented Code = "NotImplemented" |
| 84 | +) |
| 85 | + |
| 86 | +const ( |
| 87 | + // ProfileDriving is the driving transportation mode. |
| 88 | + ProfileDriving Profile = "driving" |
| 89 | + |
| 90 | + // ProfileCar is the car transportation mode. |
| 91 | + ProfileCar Profile = "car" |
| 92 | + |
| 93 | + // ProfileBike is the bike transportation mode. |
| 94 | + ProfileBike Profile = "bike" |
| 95 | + |
| 96 | + // ProfileFoot is the foot transportation mode. |
| 97 | + ProfileFoot Profile = "foot" |
| 98 | +) |
| 99 | + |
| 100 | +const ( |
| 101 | + // GeometryPolyline is the geometry polyline type. |
| 102 | + GeometryPolyline Geometry = "polyline" |
| 103 | + |
| 104 | + // GeometryPolyline is the geometry polyline6 type. |
| 105 | + GeometryPolyline6 Geometry = "polyline6" |
| 106 | + |
| 107 | + // GeometryPolyline is the geometry geojson type. |
| 108 | + GeometryGeoJSON Geometry = "geojson" |
| 109 | +) |
| 110 | + |
| 111 | +const ( |
| 112 | + // OverviewSimplified is the simplified overview. |
| 113 | + OverviewSimplified Overview = "simplified" |
| 114 | + |
| 115 | + // OverviewFull is the full overview. |
| 116 | + OverviewFull Overview = "full" |
| 117 | + |
| 118 | + // OverviewFalse disables the overview. |
| 119 | + OverviewFalse Overview = "false" |
| 120 | +) |
| 121 | + |
| 122 | +const ( |
| 123 | + // ContinueStraightDefault is the default continue straight option value. |
| 124 | + ContinueStraightDefault ContinueStraight = "default" |
| 125 | + |
| 126 | + // ContinueStraightTrue enables continue straight. |
| 127 | + ContinueStraightTrue ContinueStraight = "true" |
| 128 | + |
| 129 | + // ContinueStraightFalse disables continue straight. |
| 130 | + ContinueStraightFalse ContinueStraight = "false" |
| 131 | +) |
| 132 | + |
| 133 | +const ( |
| 134 | + // GapsSplit is the default gaps option value. |
| 135 | + GapsSplit Gaps = "split" |
| 136 | + |
| 137 | + // GapsIgnore is the ignore gaps option. |
| 138 | + GapsIgnore Gaps = "ignore" |
| 139 | +) |
| 140 | + |
| 141 | +const ( |
| 142 | + // AnnotationsTrue enables annotations. |
| 143 | + AnnotationsTrue Annotations = "true" |
| 144 | + |
| 145 | + // AnnotationsFalse disables annotations. |
| 146 | + AnnotationsFalse Annotations = "false" |
| 147 | + |
| 148 | + // AnnotationsNodes is node annotations. |
| 149 | + AnnotationsNodes Annotations = "nodes" |
| 150 | + |
| 151 | + // AnnotationsSpeed is speed annotations. |
| 152 | + AnnotationsSpeed Annotations = "speed" |
| 153 | + |
| 154 | + // AnnotationsWeight is weight annotations. |
| 155 | + AnnotationsWeight Annotations = "weight" |
| 156 | + |
| 157 | + // AnnotationsDistance is distance annotations. |
| 158 | + AnnotationsDistance Annotations = "distance" |
| 159 | + |
| 160 | + // AnnotationsDuration is duration annotations. |
| 161 | + AnnotationsDuration Annotations = "duration" |
| 162 | + |
| 163 | + // AnnotationsDataSources is data sources annotations. |
| 164 | + AnnotationsDataSources Annotations = "datasources" |
| 165 | + |
| 166 | + // AnnotationsDurationSpeed is duration and distance annotations. |
| 167 | + AnnotationsDurationDistance Annotations = "duration,distance" |
| 168 | +) |
| 169 | + |
| 170 | +const ( |
| 171 | + // SourceAny is the any source option. |
| 172 | + SourceAny Source = "any" |
| 173 | + |
| 174 | + // SourceFirst is the first source option. |
| 175 | + SourceFirst Source = "first" |
| 176 | +) |
| 177 | + |
| 178 | +const ( |
| 179 | + // DestinationAny is the any destination option. |
| 180 | + DestinationAny Destination = "any" |
| 181 | + |
| 182 | + // DestinationLast is the last destination option. |
| 183 | + DestinationLast Destination = "last" |
| 184 | +) |
| 185 | + |
| 186 | +const ( |
| 187 | + // ApproachesCurb is the curb approaches. |
| 188 | + ApproachesCurb Approaches = "curb" |
| 189 | + |
| 190 | + // ApproachesUnrestricted is the unrestricted approaches. |
| 191 | + ApproachesUnrestricted Approaches = "unrestricted" |
| 192 | +) |
| 193 | + |
| 194 | +const ( |
| 195 | + // SnappingDefault is the default snapping. |
| 196 | + SnappingDefault Snapping = "default" |
| 197 | + |
| 198 | + // SnappingAny is the any snapping. |
| 199 | + SnappingAny Snapping = "any" |
| 200 | +) |
| 201 | + |
| 202 | +const ( |
| 203 | + // FallbackCoordinateInput when using a fallback_speed, use the user-supplied coordinate (input). |
| 204 | + FallbackCoordinateInput FallbackCoordinate = "input" |
| 205 | + |
| 206 | + // FallbackCoordinateSnapped when using a fallback_speed, use the snapped location (snapped) for calculating distances. |
| 207 | + FallbackCoordinateSnapped FallbackCoordinate = "snapped" |
| 208 | +) |
0 commit comments