另一个新手iOS开发人员。我的代码可以通过使用request.naturalLanguageQuery =“餐馆”来显示本地企业,但是我想返回所有的业务。我不知道通配符是什么。看起来会很简单。任何帮助都将不胜感激。
var latitude:CLLocationDegrees = 40.7056258
var longitude:CLLocationDegrees = -73.97968
var latDelta:CLLocationDegrees = 0.01
var longDelta:CLLocationDegrees = 0.01
var span:MKCoordinateSpan = MKCoordinateSpanMake(latDelta, longDelta)
var location:CLLocationCoordinate2D = CLLocationCoordinate2DMake(latitude, longitude)
var region:MKCoordinateRegion = MKCoordinateRegionMake(location, span)
mapView.setRegion(region, animated: true)
let request = MKLocalSearchRequest()
request.naturalLanguageQuery = "Restaurants"
request.region = mapView.region发布于 2014-11-24 17:41:16
我想说,考虑到naturalLanguageQuery的情况是这样的:
这个财产不能是零。
没有任何方法可以进行基于正则表达式的搜索,这是不可能的。我会为您的任务检查另一个POI数据来源。
https://stackoverflow.com/questions/27092087
复制相似问题