Question

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.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top