Click here to Skip to main content
15,887,394 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to show the
business_id when latitude and longitude matches are nearby 2miles from NY
How to do that
Posted
Comments
thatraja 8-Nov-11 2:48am    
Map collection? which one?

1 solution

You can use the STDistance[^] geography type (there's an example on that page), then just use a where clause to limit your distance (where @your_Distance < 3220).

The type gives you distance in metres, so you'll have to convert.

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900