Comment

Comment by Fsp2WFuH

When creating spacial geography point in sql server, the longitude comes first (lng, lat). I always thought it would be latitude then longitude.

Interestingly, some points that I've inserted passed the validation, but later I realized the values were swapped when I tried to query nearest neighbor and the points were no where near.

parent Fsp2WFuH 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton