Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
ISC License
Bot releases are visible (Hide)
Published by chezzdev over 3 years ago
Changes since v2.0.0-beta.3:
Documentation is available online or within Xcode.
Published by jill-cardamon over 3 years ago
Changes since v2.0.0-beta.2:
Documentation is available online or within Xcode.
Published by 1ec5 over 3 years ago
Changes since v2.0.0-beta.1:
VisualInstruction.component.lane(indications:isUsable:preferredDirection:)
failed to decode and encoded incorrectly. (#532)Documentation is available online or within Xcode.
Published by 1ec5 over 3 years ago
Changes since v2.0.0-alpha.2:
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)Documentation is available online or within Xcode.
Published by MaximAlien over 3 years ago
Changes since v2.0.0-alpha.1:
MBXAccessToken
is now used as default access token, in case if it's not found in Info.plist MGLMapboxAccessToken
will be used. (#522)Published by 1ec5 over 3 years ago
Incident.impact
property is now an Incident.Impact
value instead of a string. (#519)Documentation is available online or within Xcode.
Published by 1ec5 over 3 years ago
MapboxDirectionsCLI
command line tool that round-trips Mapbox Directions API responses between JSON format and Swift model objects. (#469)RouteStep.segmentIndicesByIntersection
property for associating Intersection
s with portions of the step’s shape. (#490)Intersection.outletMapboxStreetsRoadClass
property that indicates a more detailed road classification than the existing Intersection.outletRoadClasses
property. (#507)RouteLeg.incidents
property that indicates known traffic incidents, toll collection points, rest areas, and border crossings along the route leg. (#466, #506)RouteLeg.regionCode(atStepIndex:intersectionIndex:)
method and Intersection.regionCode
property to get the administrative region where an intersection is located, as well as a RouteLeg.administrativeRegions
property that indicates the administrative regions traversed by the route leg. (#466, #485, #506)Intersection.tunnelName
, Intersection.tollCollection
, Intersection.restStop
, and Intersection.isUrban
properties. (#466, #506)CongestionLevel
enumeration now conforms to the CaseIterable
protocol. (#500)Documentation is available online or within Xcode.
Published by 1ec5 almost 4 years ago
Changes since v1.2.0-alpha.3:
JSONEncoder
did not encode the Intersection.tollCollection
property. (#510)Documentation is available online or within Xcode.
Published by 1ec5 almost 4 years ago
Changes since v1.2.0-alpha.2:
Intersection.outletMapboxStreetsRoadClass
property that indicates a more detailed road classification than the existing Intersection.outletRoadClasses
property. (#507)RouteLeg.incidents
property that indicates known traffic incidents, toll collection points, rest areas, and border crossings along the route leg. (#466, #506)RouteLeg.administrativeRegions
property that indicates the administrative regions traversed by the route leg. (#466, #506)Intersection.tunnelName
, Intersection.tollCollection
, Intersection.restStop
, and Intersection.isUrban
properties. (#466, #506)Documentation is available online or within Xcode.
Published by Udumft almost 4 years ago
Changes since v1.2.0-alpha.1:
CongestionLevel
enumeration now conforms to the CaseIterable
protocol. (#500)AdministrativeRegions
by Leg
and Intersection
(#485). Added few properties for convenience access:
Intersection.regionCode
- A 2-letter region code to identify corresponding country that this intersection lies in.RouteLeg.regionCode(atStepIndex:, intersectionIndex:)
- Returns the ISO 3166-1 alpha-2 region code for the administrative region through which the given intersection passes.RouteStep.segmentIndicesByIntersection
for navigating Intersection
s segments along the step; (#490)Published by chezzdev almost 4 years ago
Published by 1ec5 almost 4 years ago
DirectionsResult.typicalTravelTime
, RouteLeg.typicalTravelTime
and RouteStep.typicalTravelTime
properties that indicate the typical travel time, as opposed to the current expected travel time. (#462)Waypoint.separatesLegs
property to true
and setting the Waypoint.targetCoordinate
property. (#480)Directions.fetchAvailableOfflineVersions(completionHandler:)
now calls its completion handler on the main queue consistently. (#475)Documentation is available online or within Xcode.
Published by 1ec5 almost 4 years ago
DirectionsResult.typicalTravelTime
, RouteLeg.typicalTravelTime
and RouteStep.typicalTravelTime
properties that indicate the typical travel time, as opposed to the current expected travel time. (#462)Waypoint.separatesLegs property
to true
and setting the Waypoint.targetCoordinate
property. (#480)Directions.fetchAvailableOfflineVersions(completionHandler:)
now calls its completion handler on the main queue consistently. (#475)Published by 1ec5 about 4 years ago
Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:completionHandler:)
method for refreshing attributes along the legs of a route and the Route.refreshLegAttributes(from:)
method for merging the refreshed attributes into an existing route. To enable route refreshing for the routes in a particular route response, set RouteOptions.refreshingEnabled
to true
before passing the RouteOptions
object into Directions.calculate(_:completionHandler:)
. (#420)RoadClasses
values in its response. (#450)RouteStep.shape
values that could occur when RouteStep.maneuverType
is ManeuverType.arrive
, DirectionsOptions.shapeFormat
is RouteShapeFormat.polyline6
, and the Mapbox Directions API returns certain encoded Polyline strings. (#456)DirectionsOptions.urlQueryItems
property so that subclasses of RouteOptions
and MatchOptions
can add any additional URL query parameters that are supported by the Mapbox Directions and Map Matching APIs. (#461)Documentation is available online or within Xcode.
Published by 1ec5 about 4 years ago
Changes since v1.0.0-rc.1:
RouteStep.shape
values that could occur when RouteStep.maneuverType
is ManeuverType.arrive
, DirectionsOptions.shapeFormat
is RouteShapeFormat.polyline6
, and the Mapbox Directions API returns certain encoded Polyline strings. (#456)Documentation is available online or within Xcode.
Published by 1ec5 about 4 years ago
Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:completionHandler:)
method for refreshing attributes along the legs of a route and the Route.refreshLegAttributes(from:)
method for merging the refreshed attributes into an existing route. To enable route refreshing for the routes in a particular route response, set RouteOptions.refreshingEnabled
to true
before passing the RouteOptions
object into Directions.calculate(_:completionHandler:)
. (#420)RoadClasses
values in its response. (#450)Documentation is available online or within Xcode.
Published by MaximAlien about 4 years ago
RouteResponse
did not persist the Waypoint.targetCoordinate
, Waypoint.heading
, Waypoint.headingAccuracy
, and Waypoint.allowsArrivingOnOppositeSide
properties from the initial RouteOptions
object. (#446)Documentation is available online or within Xcode.
Published by 1ec5 about 4 years ago
RouteResponse(matching:options:credentials:)
and Directions.calculateRoutes(matching:completionHandler:)
resulted in misshappen Route.shape
s and RouteStep.shape
s in the Atlantic Ocean if MatchOptions.shapeFormat
was set to RouteShapeFormat.polyline6
. (#437)Documentation is available online or within Xcode.
RouteResponse(matching:options:credentials:)
and Directions.calculateRoutes(matching:completionHandler:)
resulted in misshappen Route.shape
s and RouteStep.shape
s in the Atlantic Ocean if MatchOptions.shapeFormat
was set to RouteShapeFormat.polyline6
. (#437)Documentation is available online or within Xcode.
Published by fabian-guerra over 4 years ago
voiceLocale
property to be omitted from route objects. (#424)Route(legs:shape:distance:expectedTravelTime:)
and Route(from:)
initializers. (#430)VisualInstruction.Component.guidanceView
lacked an image URL. (#432)Documentation is available online or within Xcode.