English 中文(简体)
MapKit:坐标来自Sqlite数据库
原标题:MapKit: coordinates from Sqlite database

我有一个精炼的数据库,大约有100 000个浏览器,含有自动取款机的长度和纬度。 我愿在MKMapView上用纸张显示这一自动取款机。 但我认为,如果我一劳永逸地把所有坐标都从非行装,那是不好的。 这样做的最佳方式是什么?

最佳回答

你们绝对是正确的,不要一劳永逸地装着他们!

只使用一个捆绑箱来获得你希望显示的地图内的坐标。 对这一问题的答复: 核心 数据和核心位置

把上限和下限的相同概念只从目前可见的qlite返回。 你的问询会看好像什么。

SELECT * FROM atms WHERE lat > 51.4 and lat < 51.6 and lng > -0.165 and lng < -0.175

仅询问伦敦中部附近的ATM公司(51.5,-0.17)。

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签