views:

267

answers:

1

Does anyone have any advice on using a datastore with mapkit to provide a database of locations (Restaurants) that are query-able by location?

I would like to use Core data but importing the information into it seems like a project in itself. If anyone has good advice on converting an existing sqlite/cvs file to a coredata sqlite file that would be appreciated.

Is old-fashioned sqlite better than using core data for the task, or is it a case that I should create a web service for the job?

I would like to be able to query the locations based on the map zoom also.

Thanks if you have any advice on the matter.

A: 
TechZen
Thanks TechZen. I've tried doing that but I'm pretty sure that Core Data doesn't recognise it because the existing sqlite db doesn't have the Core Data generated tables and is not prefixed by an uppercase Z. Am I missing something?
Thanks TechZen for answering. Have you done this yourself? I've yet to find a working example of this on the net. Seems crazy to have to go from Sqlite -> CSV -> Plist -> Array -> Core Data. How do Apple expect people to load data into programs I wonder?
You could use existing dbs in the Enterprise Objects which is what Core Data evolved from. I think they so optimized CD for speed that it can longer efficiently use generic databases. It's focused on data generated by the app. Your right that it is rather glaring weakness.
TechZen