I finally found the answer with some comments here.
Currently, the only distance that can be obtained using the Apple Maps API is the distance between the lines between the coordinates. However, if you want to calculate the real distances between two addresses or coordinates, you can do this using the Google Distance Matrix APIs by sending a simple request.
Example:
Calculate distance from: 51.226531,4.190688
to 51.114476,4.139618 and 51.148123.4.182590.
You can simply do this with this API call: https://maps.googleapis.com/maps/api/distancematrix/json?origins=51.226531,4.190688&destinations=51.114476,4.139618|51.148123,4.182590
Please note that I use 3 parameters:
json: format in which I want the result to be returned
origins: coordinates / address where you start: destinations: multiple coordinates / addresses separated by "|"
This is the result of the call:
{ "destination_addresses" : [ "Dorpstraat 70, 9140 Temse, België", "Eigenlostraat 38, 9100 Sint-Niklaas, België" ], "origin_addresses" : [ "Provinciale Baan 37, 9120 Beveren, België" ], "rows" : [ { "elements" : [ { "distance" : { "text" : "16,3 km", "value" : 16346 }, "duration" : { "text" : "22 min.", "value" : 1321 }, "status" : "OK" }, { "distance" : { "text" : "10,5 km", "value" : 10521 }, "duration" : { "text" : "17 min.", "value" : 1003 }, "status" : "OK" } ] } ], "status" : "OK" }
If everything is not clear, ask me!