I need to capture several GPS points and then average them. In version 100, I accomplished this by adding an observer to locationDisplay for keyPath:location. Not sure how to do this in version 200. Is there an example? From what I can tell, I need to add a callback handler to the LocationDataSource object? If so, how do I do that?
From Documentation:
var locations: AsyncStream<Location>
Set the location changed callback function for the location data source.