c# - How to search Latitude and Longitude wise Record from SQL Server database with Asp.net -


i want search records sql server database, based on conditions
"near 5 km area", "people present location" (male, female, both) etc.

the table structure looks this:

table structure

so, how can this?

thanks

have read of stackoverflow answer here:

get nearest longitude , latitude mssql database table?

basically, can use sql server geography type, use stdistance.

this article includes example, showing how use it, , how use pythagorus, calculate distances quicker.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -