作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在寻找一个 map 服务器,或者一个可以嵌入到网站中的工具。我希望能够执行查询,例如:最近城市半径 5 公里等。我有地理数据格式的数据。我想知道最好的可用网络应用程序,或可以嵌入到网站中的工具。
最佳答案
其实你可以使用SQL 2008内置的地理数据类型(空间数据)并进行简单的计算
http://msdn.microsoft.com/en-us/library/bb895266.aspx
但是您必须首先找到您要尝试查找可以使用 google api 或其他应用程序的往返距离的每个位置的纬度/经度...这是一个示例查询。
select * from tableX where GeoFieldInDb.STDistance(geoLocation2) <= number
关于c# - map 服务器: anyplatfom (opensource or not) to embed into website to query with SQL for further breakdown,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6547773/
我正在寻找一个 map 服务器,或者一个可以嵌入到网站中的工具。我希望能够执行查询,例如:最近城市半径 5 公里等。我有地理数据格式的数据。我想知道最好的可用网络应用程序,或可以嵌入到网站中的工具。
我是一名优秀的程序员,十分优秀!