CLLocation distanceFromLocation with invalid coordinate

Originator:keithbsmiley
Number:rdar://23130621 Date Originated:15-Oct-2015 11:40 AM
Status:Open Resolved:
Product:iOS SDK Product Version:9.0
Classification:UI/Usability Reproducible:Always
 
Summary:

When getting the distance between 2 `CLLocation`s where one was
initialized with the latitude and longitude from
`kCLLocationCoordinate2DInvalid`, the distance is 0. On OS X the
distance is a very large number, showing that something has gone wrong.

Steps to reproduce:

1. Create 2 locations, one with `kCLLocationCoordinate2DInvalid` and one
   with a valid `CLLocationCoordinate2D`
2. Get the `distanceFromLocation` with the 2 locations.

OR

1. Open the attached playgrounds, one for OS X and one for iOS

Expected results:

On iOS this call should return something that shows that the two
locations do not have identical coordinates.

Actual results:

The locations appear to have the same coordinate.

Comments

https://github.com/keith/radars/tree/master/LocationDistanceInvalid

By keithbsmiley at Oct. 15, 2015, 6:42 p.m. (reply...)

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!