Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

t0mat0

macrumors 603
Original poster
Aug 29, 2006
5,473
284
Home
Hello - I'm looking to find out more about what it would take to create an application similar to WatchOut or Offender Locator or Cannabis. Not the content at all -

I'm wondering about creating an application, that can give a list of events (recurring and one off) nearby to a current location, or the user's location as by GPS, then have associated information to each event.

If I had a database of locations (lat longs, and addresses and relevant information) - how easy would it be to show the events on a map with pins, or on a sorted table of addresses with those closest at the top?

What general areas should I look into if I was wanting to find out more about how to code for a visual map version showing pins for each event and the given addresss/location of the iPhone? Seems there are other apps out there doing a similar thing.
Would it be possible to have a conditional list of pins, so the user could choose only those relevant for a given time period too? 9e.g. upcoming, today, this week etc)
 
MapKit

Basically everything you want to do is possible by providing MapKit with the correct data.

OK, thanks :)

DO you know of any demo code showing how a simple mapkit app might look like? And is there any hard limit on what number of (mkannotations) points can be tracked or held in a database? I'm guessing it wouldn't take too much space to have the database held within the app and updated at some interval. Looking at the pragmatic programming screencast it seems there's a lot you can do with it.
 
OK, thanks :)

DO you know of any demo code showing how a simple mapkit app might look like? And is there any hard limit on what number of points can be tracked or held in a database? I'm guessing it wouldn't take too much space to have the database held within the app and updated at some interval.

The database is up to you: it's nothing to do with MapKit. Certainly a SQLite database could store many thousands of locations without any issue at all. As for example code I'd search on the Apple developer site yourself and see what you can find. Or use Google. For example this took all of 2 seconds to find.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.