3

When I click on GMSMarker, I want to enable direction and map like below image. Its working fine in android.

Like Red Color Box

abielita
  • 13,147
  • 2
  • 17
  • 59
Ravi
  • 104
  • 2
  • 14

1 Answers1

1

Have you checked this Maps SDK for iOS documentation? You can use the Google Directions API to request directions, and then use the encoded path returned from the service to draw a GMSPolyline using GMSPath's pathFromEncodedPath: method.

Here's a related SO thread: Google Maps iOS SDK, Getting Directions between 2 locations. This blog tutorial might also help.

Community
  • 1
  • 1
abielita
  • 13,147
  • 2
  • 17
  • 59