Drawing Paths/Routes on Map – Part 2

Well ! In previous post, we have discussed about drawing routes on Google Map. But you need to make sure one thing that, the locations that you are providing in latitude & longitude must have valid route between them. Previous sample code will get crashed if there is no route available.

If you are getting following crash errors, please make sure you are providing valid location details using which path can be generated.

So, I have modified the code & here is the snap-shots of modification done by me.

MapView Modified

Here are the sample outputs.

Home Screen

Google Map No Route

Grab the sample code from here.

Sample code for xcode4.1 code from here.

Did you like this? Share it:

About Sagar R. Kothari

Hey ! Hi there ! I am Sagar R. Kothari. I am graduated from Gujarat University. I am pursuing M.C.A from IGNOU University. I am in iOS App/Game Development since last 3 years. I am always hunting for better knowledge in iOS. I am looking forward to be a good app & game developer. I keep on sharing my knowledge @ http://sugartin.info as soon as I get spare time for it. I would love to hear your personal feedback about this blog.

Leave a Reply

Your email address will not be published. Required fields are marked *


× nine = 81

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">