Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
ISC License
Bot releases are visible (Hide)
Published by MaximAlien over 2 years ago
Changes since v2.3.0-rc.1:
RouteLeg.viaWaypoints
property and SilentWaypoint
struct for describing silent waypoints along RouteLeg
. (#656)Documentation is available online or within Xcode.
Published by ShanMa1991 over 2 years ago
No changes since v2.3.0-beta.2.
Documentation is available online or within Xcode.
Published by S2Ler over 2 years ago
VisualInstruction.Component.ShieldRepresentation
struct for displaying a highway shield. Added VisualInstruction.Component.ImageRepresentation.shield
property. (#644, #647)Documentation is available online or within Xcode.
Published by MaximAlien over 2 years ago
VisualInstruction.Component.ShieldRepresentation
struct for displaying a highway shield. Renamed VisualInstruction.Component.image(image:alternativeText:)
to VisualInstruction.Component.image(image:alternativeText:shield:)
. (#644)Documentation is available online or within Xcode.
Published by ShanMa1991 almost 3 years ago
RouteResponse.roadClassViolations
property, which indicates any requested RouteOptions.roadClassesToAvoid
values that could not be satisfied when calculating the routes. You can use convenience RouteResponse.exclusionViolations(routeIndex:legIndex:stepIndex:intersectionIndex:)
method to search for a specific item. (#627)PolyLineString
encoded an invalid GeoJSON LineString. (#638)RouteRefreshSource
protocol to allow refreshing Route
objects with RefreshedRoute
or another Route
instance. (#634)Documentation is available online or within Xcode.
Published by bamx23 almost 3 years ago
Changes since v2.2.0-alpha.1:
PolyLineString
encoded an invalid GeoJSON LineString. (#638)RouteRefreshSource
protocol to allow refreshing Route
objects with RefreshedRoute
or another Route
instance. (#634)Documentation is available online or within Xcode.
Published by chezzdev almost 3 years ago
RouteResponse.roadClassViolations
property, which indicates any requested RouteOptions.roadClassesToAvoid
values that could not be satisfied when calculating the routes. You can use convenience RouteResponse.exclusionViolations(routeIndex:legIndex:stepIndex:intersectionIndex:)
method to search for a specific item. (#627)Documentation is available online or within Xcode.
Published by azarovalex almost 3 years ago
Waypoint.snappedDistance
property to get the straight-line distance from the waypoint to the location it was snapped to in the RouteResponse
. (#616)RouteOptions.initialManeuverAvoidanceRadius
property to avoid a sudden maneuver when calculating a route while the user is in motion. (#609)RoadClasses.unpaved
option for avoiding unpaved roads. (#620)RoadClasses.cashOnlyToll
property for avoiding toll roads that only accept cash payment. (#620)Isochrones
, which connects to the Mapbox Isochrone API to compute areas that are reachable within a specified amount of time from a location and return the reachable regions as contours of polygons or lines that you can display on a map. (#621)DirectionsCredentials
and DirectionsProfileIdentifier
to Credentials
and ProfileIdentifier
, respectively. (#621)RouteOptions.maximumHeight
and RouteOptions.maximumWidth
properties for ensuring that the resulting routes can accommodate a vehicle of a certain size. (#623)DirectionsPriority
struct now conforms to the Codable
protocol. (#623)RouteOptions.alleyPriority
, RouteOptions.walkwayPriority
, and RouteOptions.speed
properties were excluded from the encoded representation of a RouteOptions
object. (#623)Documentation is available online or within Xcode.
Published by bamx23 almost 3 years ago
Changes since v2.1.0-alpha.1:
Isochrones
, which connects to the Mapbox Isochrone API to compute areas that are reachable within a specified amount of time from a location and return the reachable regions as contours of polygons or lines that you can display on a map. (#621)DirectionsCredentials
and DirectionsProfileIdentifier
to Credentials
and ProfileIdentifier
, respectively. (#621)RouteOptions.maximumHeight
and RouteOptions.maximumWidth
properties for ensuring that the resulting routes can accommodate a vehicle of a certain size. (#623)DirectionsPriority
struct now conforms to the Codable
protocol. (#623)RouteOptions.alleyPriority
, RouteOptions.walkwayPriority
, and RouteOptions.speed
properties were excluded from the encoded representation of a RouteOptions
object. (#623)Documentation is available online or within Xcode.
Published by 1ec5 almost 3 years ago
Waypoint.snappedDistance
property to get the straight-line distance from the waypoint to the location it was snapped to in the RouteResponse
. (#616)RouteOptions.initialManeuverAvoidanceRadius
property to avoid a sudden maneuver when calculating a route while the user is in motion. (#609)RoadClasses.unpaved
option for avoiding unpaved roads. (#620)RoadClasses.cashOnlyToll
property for avoiding toll roads that only accept cash payment. (#620)Documentation is available online or within Xcode.
Published by MaximAlien about 3 years ago
MBXAccessToken
in your Info.plist. MGLMapboxAccessToken
is still supported but is now deprecated. (#522)mapbox-directions-swift
command line tool can no longer be built using Carthage. It now requires swift-argument-parser v1.0.0 or above. (#606)Incident.impact
property is now an Incident.Impact
value instead of a string. (#519)RouteOptions.alleyPriority
, RouteOptions.walkwayPriority
, and RouteOptions.speed
are now optional. Set them explicitly if you want to include them in the HTTP request. Renamed DirectionsOptions.default
to DirectionsOptions.medium
. (#557)DirectionsResult.routeIdentifier
property. Use the RouteResponse.identifier
property in conjunction with an index into the RouteResponse.routes
array instead. (#562)Intersection.preferredApproachLanes
and Intersection.usableLaneIndication
properties that indicate preferred lane usage. VisualInstruction.Component.lane(indications:isUsable:)
has been renamed to VisualInstruction.Component.lane(indications:isUsable:preferredDirection:)
. (#529)Intersection
s with ==
now considers whether the Intersection.restStop
, Intersection.regionCode
, and Intersection.outletMapboxStreetsRoadClass
properties are equal. (#529)Waypoint.allowsSnappingToClosedRoad
property to allow snapping the waypoint’s location to a closed part of a road. (#583)AttributeOptions.numericCongestionLevel
, RouteLeg.segmentNumericCongestionLevels
, RouteLeg.Attributes.segmentNumericCongestionLevels
and NumericCongestionLevel
to support receiving the numeric value for congestion level along each segment of a RouteLeg
. (#575)RouteOptions.roadClassesToAllow
property that enables the resulting routes to use HOV-only roads or high-occupancy toll roads. (#598)Directions(credentials:urlSession:processingQueue:)
initializer that allow you to provide a custom URLSession
and GCD processing queue. (#613)RouteStep.exitIndex
was always unset. (#567)RouteLeg.segmentRangesByStep
contained a range that was off by one for the arrival step of a leg. (#587)Documentation is available online or within Xcode.
Published by azarovalex about 3 years ago
Changes since v2.0.0-rc.3:
mapbox-directions-swift
command line tool can no longer be built using Carthage. It now requires swift-argument-parser v1.0.0 or above. (#606)Documentation is available online or within Xcode.
Published by S2Ler about 3 years ago
Changes since v2.0.0-rc.2:
Documentation is available online or within Xcode.
Published by chezzdev about 3 years ago
Changes since v2.0.0-rc.1:
RouteLeg.segmentRangesByStep
contained a range that was off by one for the arrival step of a leg. (#587)Documentation is available online or within Xcode.
Published by Udumft about 3 years ago
Changes since v2.0.0-beta.9:
Documentation is available online or within Xcode.
Published by bamx23 about 3 years ago
Changes since v2.0.0-beta.8:
sku_token
wasn’t appended to refresh route requests. (#579)Documentation is available online or within Xcode.
Published by azarovalex about 3 years ago
Changes since v2.0.0-beta.7:
Documentation is available online or within Xcode.
Published by jill-cardamon over 3 years ago
Changes since v2.0.0-beta.6:
Documentation is available online or within Xcode.
Published by 1ec5 over 3 years ago
Changes since v2.0.0-beta.5:
RouteOptions.alleyPriority
, RouteOptions.walkwayPriority
, and RouteOptions.speed
are now optional. Set them explicitly if you want to include them in the HTTP request. Renamed DirectionsOptions.default
to DirectionsOptions.medium
. (#557)Documentation is available online or within Xcode.
Published by S2Ler over 3 years ago
Changes since v2.0.0-beta.4:
Documentation is available online or within Xcode.