Calculation route length

Posted by Paul Peelen on Stack Overflow See other posts from Stack Overflow or by Paul Peelen
Published on 2010-04-20T07:49:29Z Indexed on 2010/04/20 7:53 UTC
Read the original article Hit count: 403

Hi,

I have a map with about 80 annotations. I would like to do 3 things.

1) From my current location, I would like to know the actual route distance to that position. Not the linear distance.

2) I want to be able to show a list of all the annotations, but for every annotation (having lon/lat) I would like to know the actual route distance from my position to that position.

3) I would like to know the closest annotation to my possition using route distance. Not linear distance.

I think the answer to all these three points will be the same. But please keep in mind that I don't want to create a route, I just want to know the distance to the annotation.

I hope someone can help me.

Best regards, Paul Peelen

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk-3.0