문제

I have a LOCATIONS table in sqlite:

CREATE TABLE LOCATIONS (LOCATION_ID INTEGER PRIMARY KEY, PLACE_NAME, CITY TEXT, COUNTRY TEXT, LAT REAL, LNG REAL, IMAGE BLOB);

I'd like to implement the following method on a LocationDao

- (GTPLocation*)findByLatitude:(CGFloat)latitude longitude:(CGFloat)longitude;

How does sqlite handle searching by CGFloat? Do the normal issues with float comparison still apply? Would it be better to store these values as strings?

All of my locations will come from different sources, but get pumped through Apple's standard CLLocation geocoder, before being saved in the database.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top