Domanda

I am trying to develop an iPhone app (with map routing function), and I need everyone's suggestions (guidance).

Below are a few specs:

  1. The app will be running on iPhone with iOS 4+.
  2. The app will have Map functionality.
  3. In the app, given a "few locations" in a given order (to make things less complicated), the Map will draw routes between each locations on the Map.
  4. Clicking on any location will display another page that shows some information about that location.
  5. Can choose alternative route between two location (which I don't think is possible, but let me know if anyone know any framework that can do this).

I did some research, using Map on iPhone is easy using MapKit (and it's available after iOS 3.0). I followed this tutorial, and everything seems easy. However, if I want to draw routes on my map, I will need routes data in a CSV format. However, I do not have those data (yes! I suck).

And prior to iOS 5.1, MapKit use Google Maps, and I read somewhere that in Google Map's term and condition of use, it prohibit people from drawing on the Map (correct me if I am wrong).

In order to retrieve route data, I would imagine that I will have to get it through Google or Apple (I don't know if it's possible). I'm just wondering if Apple Map or Google Map have API to retrieve these?

If not, an alternative I came up with is to use a webview, and display my Map routes on Google Map. I'm just wondering if Google Map API will allow me to insert multiple locations and display all the routes?

I really need some suggestions... I am getting buried in all these problems.... thank you

È stato utile?

Soluzione

Follow this sample - MKOverlay is the way to go. One more example is here.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top