Result
values, so success and failure are handled in one switch.
Podspec on GitHub
baato/BaatoPodSpecTurn-by-turn example
Navigation in an iOS app.
Installation
BaatoSwift is distributed as a CocoaPod from Baato’s own spec repository. Add both the source and the pod to yourPodfile:
Replace
${LatestVersion} with the current version from the
podspec repository.Creating a client
Initialise once with your access token, then set the parameters for each request as properties before calling the matching method.Usage
Search — place suggestions
Search — place suggestions
Reverse Search — coordinates to an address
Reverse Search — coordinates to an address
Places — full detail for a place ID
Places — full detail for a place ID
Directions — routes between points
Directions — routes between points
timeInMs is milliseconds, not seconds. See
core concepts.Next
Turn-by-turn navigation
A complete navigation implementation.
Map Styles API
Style URLs for MapLibre and Mapbox on iOS.