The CoreLocation API does not give distance along a walking route, it can only give you straight line "as the crow flies" distance. You need to query a network service that has a network of streets and walkways to get actual walking distance. CL and MapKit do not provide this service.
You can send a request to Apple Maps app to get walking directions between two points but the results are not provided back to your app, they are presented to the user.