Best practice on how to store geography

159 views Asked by At

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) ???

1

There are 1 answers

3
Rahul Tripathi On

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.