Apologies
You must be signed in to watch this lesson.
Routing Starting and Ending Locations
Maps UIKit SwiftUI
Now that we can select start and end locations through the user interface of our map, we're ready to plop on some annotations as well as the correct routing information. We'll accomplish these two tasks my utilizing MapKit apis.

Comments (2)
onggiahuy97
4 years ago
Using NotificationCenter to pause searching for 0.5 seconds seem not to work for me even I downloaded your sample code, and it still doesn't work.
Brian Voong
4 years ago
onggiahuy97
4 years ago
Oh I see. Thank you!!
Christopher J. Roura
4 years ago
I am still unsure of the concept of [weak self]. More or less I am learning (so i think) that it is a way to control the reference counting for the particular variables being referenced. In addition to this I have added the line guard let self = self else { return } to avoid the need for the optional binding. I do not know however if this interferes with the referencing count or if it messes with the need for weak self. I know it is a much longer topic to go through but if you could point me towards some resources that clear it up or a quick explanation that would be greatly appreciated! In addition i am trying to implement weak self in the other projects and am also implementing LBTATools in all of your older projects that don't have it to keep them up to date. I just want to make sure i am updating things correctly.
Brian Voong
4 years ago
Christopher J. Roura
4 years ago
Thank you. Much appreciated!!
HELP & SUPPORT