How to use MKDirections and Geocoding in Apple Maps in Swift 5?

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024

Комментарии • 4

  • @sherry123ism
    @sherry123ism 3 года назад +1

    Hi! loved this tutorial and you have explained it a lot and finally understood this. I want to know that can this work if I enter coordinates? latitude and longitude. So from some api, I would get the Lat and Lon and I can feed into this code and it would show me the direction of going from my current location to the lat and lon supplied?

    • @RDLabswithRohant
      @RDLabswithRohant  3 года назад +1

      Hello Shehryar, Thank you for reaching out to us.
      Yes, thats right.

    • @sherry123ism
      @sherry123ism 3 года назад

      @@RDLabswithRohant Thankyou sir It worked. I gave it the lat,lon from the api and it goes to those coordinates.
      Currently the code works as so:
      -Enter any text/dummy text
      -Press button
      and the map plots the line to the coordinates of the api
      But I want to skip the pressing the button and adding the text part as I already have the coordicates and just have to plot the directions, how can I bypass this step sir?

  • @MariaClara-kh2zf
    @MariaClara-kh2zf 2 года назад

    Pm78