The Google Directions API is a simple HTTPS API that lets you get driving directions to a destination. The Google Directions API does not have a native Swift implementation from Google – instead, you make an HTTPS API call to Google and parse the JSON results in the response. Part of a successful response is a path that can be turned into a polyline and displayed on the map.
This chapter builds on the work done in Chapters 7 and 8. In Chapter 7, we set up a basic iOS application project using CocoaPods with the Google Maps API. In Chapter 8, we discussed ...