-[CLGeocoder geocodeAddressString:inRegion:] does not restrict the results to the given region
| Originator: | Christian.Lobach | ||
| Number: | rdar://22378246 | Date Originated: | 2015-08-21 |
| Status: | open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.4 |
| Classification: | other bug | Reproducible: | always |
Summary: -[CLGeocoder geocodeAddressString:inRegion:] takes a CLRegion, but returns results that are not in the given region. I consider this a bug. If I give a specific region, the results should be in that region. If no results in the region are found, the placemarks array should be nil/empty or the error should be populated. Steps to Reproduce: - call -[CLGeocoder geocodeAddressString:inRegion:] with the address string “Main” and a CLCircularRegion with a radius of 20km around Berlin, Germany Expected Results: - the returned results are within the given region - if there are no results in the region, the placemarks array should not contain results that are not in the given region Actual Results: - the single returned placemark is “Main, PA, USA” which is not within the given region around Berlin, Germany Notes: Please see the attached sample project and run the unit test. it currently fails. http://cl.ly/0x062I1D0Z05
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!