-
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.
Version 4 - Support for navigation aids
- Loading branch information
1 parent
b2d1aa4
commit 87d74dc
Showing
42 changed files
with
1,410 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.7.0 | ||
7.8.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// AnnotationFilters.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
#if canImport(AnyCodable) | ||
import AnyCodable | ||
#endif | ||
|
||
public struct AnnotationFilters: Codable, JSONEncodable, Hashable { | ||
public enum Action: String, Codable, CaseIterable { | ||
case include | ||
case exclude | ||
} | ||
|
||
public enum Attributes: String, Codable, CaseIterable { | ||
case speed = "shape_attributes.speed" | ||
case speedLimit = "shape_attributes.speed_limit" | ||
case time = "shape_attributes.time" | ||
case length = "shape_attributes.length" | ||
} | ||
|
||
public var action: Action? | ||
/** A set of granular attributes to include between every pair of coordinates along the route. This can significantly increase the response size. */ | ||
public var attributes: [Attributes]? | ||
|
||
public init(action: Action? = nil, attributes: [Attributes]? = nil) { | ||
self.action = action | ||
self.attributes = attributes | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case action | ||
case attributes | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(action, forKey: .action) | ||
try container.encodeIfPresent(attributes, forKey: .attributes) | ||
} | ||
} |
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,50 @@ | ||
// | ||
// ExtendedDirectionsOptions.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
#if canImport(AnyCodable) | ||
import AnyCodable | ||
#endif | ||
|
||
public struct ExtendedDirectionsOptions: Codable, JSONEncodable, Hashable { | ||
public enum Format: String, Codable, CaseIterable { | ||
case json | ||
case osrm | ||
} | ||
|
||
/** The output response format. The default JSON format is extremely compact and ideal for web or data-constrained use cases where you want to fetch additional attributes on demand in small chunks. The OSRM format is much richer and is configurable with significantly more info for turn-by-turn navigation use cases. */ | ||
public var format: Format? | ||
/** Optionally includes helpful banners with timing information for turn-by-turn navigation. This is only available in the OSRM format. */ | ||
public var bannerInstructions: Bool? | ||
/** Optionally includes voice instructions with timing information for turn-by-turn navigation. This is only available in the OSRM format. */ | ||
public var voiceInstructions: Bool? | ||
public var filters: AnnotationFilters? | ||
|
||
public init(format: Format? = nil, bannerInstructions: Bool? = nil, voiceInstructions: Bool? = nil, filters: AnnotationFilters? = nil) { | ||
self.format = format | ||
self.bannerInstructions = bannerInstructions | ||
self.voiceInstructions = voiceInstructions | ||
self.filters = filters | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case format | ||
case bannerInstructions = "banner_instructions" | ||
case voiceInstructions = "voice_instructions" | ||
case filters | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(format, forKey: .format) | ||
try container.encodeIfPresent(bannerInstructions, forKey: .bannerInstructions) | ||
try container.encodeIfPresent(voiceInstructions, forKey: .voiceInstructions) | ||
try container.encodeIfPresent(filters, forKey: .filters) | ||
} | ||
} |
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
Oops, something went wrong.