3

When I am using the Distance method, it asks for 2 locations, and returns a double.

A double value that specifies the distance between the two closest points in geographyValue and otherGeography (MSDN).

But is it meters? kilometers? miles?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Misha Zaslavsky
  • 8,414
  • 11
  • 70
  • 116
  • possible duplicate of [System.Data.Spatial DbGeography.Distance units?](http://stackoverflow.com/questions/13934169/system-data-spatial-dbgeography-distance-units) – AlexC Apr 11 '14 at 18:55

1 Answers1

4

this answer indicates meters:

System.Data.Spatial DbGeography.Distance units?

the answerer has an srid of 4326. You can check what yours is in the DefaultCoordinateSystemId of your DbGeography object.

Community
  • 1
  • 1
Paul Spencer
  • 860
  • 5
  • 14