Ad

Our DNA is written in Swift
Jump

Radar: CLGeoCoder Bug

Fun fact! Sometimes Apple engineers confuse dupes of Radars with the original ones:

Engineering has determined that your bug report (20549548) is a duplicate of another issue (20553126) and will be closed.

And that even though my radar has the zip file with the sample app attached and the alleged original only a reference to my GitHub RadarSamples repo. Oh well… as long as Apple fixes the issue, I am happy to give the win to Peter Steinberger. Fatality!

But, I have one more bug report up my sleeve! A similar issue occurs server-side when using CLGeoCoder, so I filed this as rdar://20665320 and on OpenRadar.

Again, this bug report comes with a beautiful sample app. This is the first bug report sample app I made in Swift. Only took me 4 times as long than if I made it in Objective-C, but a developer’s gotta do what a developer’s gotta do. 🙂

CLGeoCoder mistakes supplementary numbers for street address

Summary

When geocoding an address the street address should be used for returning matching place marks. But if the street address has additional numbers – separated by slash – it is using these numbers instead of the street number.

Steps to Reproduce

  1. Run the provided sample app on iPhone 6 simulator
  2. The green pins are where the addresses should be
  3. The red pins are the erroneous responses
  4. Tap on the pins to see the returned address

Expected Results

  • Rinnböckstrasse 48/17 should show the pin at street number 48
  • Rosa-Jochmann-Ring 42/4/5/30 should show the pin at street number 42

Actual Results

  • Rinnböckstrasse 48/17 shows the pin at street number 1
  • Rosa-Jochmann-Ring 42/4/5/30 shows pin at street number 5

Notes

Warning: Some addresses in large apartment complexes consisting of multiple objects (in Austria) might have an object number at the second place. 42/1/3/13 and 42/2/3/13 would then be at distinct locations.

GeoCoderBug Sample App

The mentioned sample app is the GeoCorderBug project in my RadarSamples GitHub repo.


Categories: Bug Reports

1 Comment »

  1. In Australia, we would definitely read 8/23 Gipps St as “unit 8 of street address 23 Gipps St.”
    In fact our office address is actually written 8/23-25 Gipps St. Since the building encompasses multiple street addresses.