c# - Units in [Location1].DistanceTo[Location2] -
i have been trying find out unit .distanceto gives me. the articles related far mention geounits, no further explanation using elapsed time, , 2 locations calculating speed device going. i'm not sure how result distance=location1.distanceto(location2); in km, or other metric unit. have use metric app. any solving or guiding me toward solution helpful. according developer documentation method returns distance in metres. returns approximate distance in meters between location , given location. so in kilometres, divide result 1000: float distanceinmetres = location1.distanceto(location2); float distanceinkilometres = distanceinmetres / 1000;