WKInterfaceMap Unknown Place

I added the WKInterfaceMap object to our Apple Watch app. When I click on it to get directions, it always says “Unknown place”, but gives the correct directions. How can I make it fill in the location name?

+4
source share
2 answers

Yep As RPM says that now, if the "maps" of apple do not know the name of the location, it reports "Unknown location" ...

if your location is in a place of knowledge, for example, in places of screeching, it will display the name of the location ...

I hope Apple implements a way to set the name of the location ...

+5
source

, , , . WKInterfaceMap , . :

let center = CLLocationCoordinate2DMake(latitude, longitude)
let placemark = MKPlacemark(coordinate: center, addressDictionary: nil)
let mapItem = MKMapItem(placemark: placemark)
mapItem.name = "Name of location"
mapItem.openInMaps(launchOptions: nil)
+1

All Articles