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
Post a Comment