Opening the same address twice in Apple Maps from iOS app shows no results

Originator:thebrianramirez
Number:rdar://31300434 Date Originated:03/28/2017
Status:Open Resolved:
Product:iOS+SDK Product Version:iOS 10.2
Classification:Bug Reproducible:Always
 
Summary:
If you try to open the same address in Apple Maps from an iOS app twice, on the second time as Apple Maps loads, the address is either not shown or shows “No Results Found”. This occurs when attempting to use CLGeocoder to geocode an address from a string. 

Steps to Reproduce:
1. Create an app that uses MapKit’s CLGeocoder.geocodeAddressString
2. Provide an address in string format i.e. “19061 N. 27th Ave, Phoenix, AZ 85027”
3. Call CLGeocoder.geocodeAddressString
4. Create a MKPlacemark from the geocoder result
5. Create a MKMapItem from the MKPlacemark
6. Call `openInMaps(launchOptions: nil)` on the MKMapItem
7. Allow Apple Maps to open and locate the address.
8. Return to the test app and perform the geocoding again.
9. Allow Apple Maps to load again and notice the Maps Search box loads, then disappears.

Expected Results:
If you attempt to geocode and load the same address twice in Apple Maps, Maps should always load the address and display the place mark on the map UI.

Actual Results:
On the second attempt to show the address in Apple Maps, the Apple Maps UI loads but the bottom Search Box disappears or shows “No Results Found”

Regression:
iPhone Simulator 10.2, Xcode 8.2.1, iPhone 6S Plus, iOS 10.3 (14E5277a)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!