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.

Leave a Reply

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