-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from stadiamaps/fix/via-waypoint
Fix/via waypoint
- Loading branch information
Showing
4 changed files
with
53 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ publishing { | |
|
||
groupId = "com.osrm" | ||
artifactId = "api" | ||
version = "0.0.7" | ||
version = "0.0.8" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// ViaWaypoint.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
#if canImport(AnyCodable) | ||
import AnyCodable | ||
#endif | ||
|
||
public struct ViaWaypoint: Codable, Hashable { | ||
public var distanceFromStart: Double? | ||
public var geometryIndex: Double? | ||
public var waypointIndex: Int? | ||
|
||
public init(distanceFromStart: Double? = nil, geometryIndex: Double? = nil, waypointIndex: Int? = nil) { | ||
self.distanceFromStart = distanceFromStart | ||
self.geometryIndex = geometryIndex | ||
self.waypointIndex = waypointIndex | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case distanceFromStart = "distance_from_start" | ||
case geometryIndex = "geometry_index" | ||
case waypointIndex = "waypoint_index" | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(distanceFromStart, forKey: .distanceFromStart) | ||
try container.encodeIfPresent(geometryIndex, forKey: .geometryIndex) | ||
try container.encodeIfPresent(waypointIndex, forKey: .waypointIndex) | ||
} | ||
} |
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