Skip to main content
1 of 4
WernerCD
  • 1.2k
  • 3
  • 11
  • 19

Sql Server (2017?) Lat/Long index and query

TLDR: Given a set of LAT/LON => index and return "local" results.

I'm working my way through a MEAN Node.js/MongoDB/Express/Angular book. It's definitely not something I'm comfortable with - I'm more comfortable with Sql Server. I'm also looking at Sql Server 2017 in docker containers.

The exercise I'm working on has a Yelp Type application: Given a location, show nearby businesses and give the user the ability to Rate those businesses.

Where I'm at is planning on moving the backend database/api from MongoDB/Express/Node into Sql Server, Asp.net MVC.

Given the sample layout

Is this where I should be looking? I don't see exactly what I'm looking for...

  • Create table with lat/long coords
  • index the coords
  • query nearby

I'm still looking, but I'm not finding what I'm looking for...

WernerCD
  • 1.2k
  • 3
  • 11
  • 19