0

I am using sql server 2008. I attempted to use geography data type. But i'm using lightswitch 2012 and it doesnt' support geography so I have to change the data type for long/lat. Whats the best practice in this case? decimal(9,6) ???

Sirus
  • 382
  • 1
  • 8
  • 35

1 Answers1

1

Yes using decimal(9,6) would be the best approach in your case.

Actually, Latitude is still easy to deal with. It's about 69 miles per degree.

Longitude is a little more complex, since 1° of longitude = (69.11) x (cosine of the latitude).

You may check out the Spatial data-types which are specially made for these purposes.

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331