maps - Calculating walking distances in iOS -


i have list of latitude , longitude values in database. based on user’s location need extract closest location database based on walking distances. purpose, need first values database array , calculate walking distances each , return lat/long of shortest distance.

note: have no problem extracting database values. need calculation of walking distances between 2 points.

i have far found threads here either show straight line distances. there way walking distances between 2 points? if so, appreciate if point me in right direction (link/previous question) or provide guidance on classes or functions use.

you can distance in meter using the

cllocationdistance distance = [locationone distancefromlocation:locationtwo];

you can acoordingly convert centimeter or kilometer, may serve purpose


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -