Skip to content

v2.5.0

Compare
Choose a tag to compare
@ShanMa1991 ShanMa1991 released this 26 May 19:55
· 108 commits to main since this release

Changes since v2.4.0:

  • Added the RestStop.name property. (#689)
  • Added the TollCollection.name property. (#691)
  • Types that correspond to objects in the Mapbox Directions API response, such as RouteResponse, RouteRefreshResponse, MatchResponse, and RouteStep, now conform to the ForeignMemberContainer and ForeignMemberClassContainer protocols. Types that conform to these protocols can persist unrecognized properties in the response, such as properties that are in beta, even after coding and decoding. You can access these properties using the ForeignMemberContainer.foreignMembers and ForeignMemberClassContainer.foreignMembers properties. (#669)
  • Fixed an issue where RouteStep.distance, RouteStep.expectedTravelTime and RouteStep.typicalTravelTime were rounded to one decimal place when being encoded. (#697)
  • Fixed an issue where decoding a RouteResponse incorrectly set the Waypoint.snappedDistance property to nil. (#669)
  • The mapbox-directions-swift command line tool now requests routes from the Mapbox Directions API if no input file is specified. (#576)

Documentation is available online or within Xcode.