gpt4 book ai didi

c# - map 服务器: anyplatfom (opensource or not) to embed into website to query with SQL for further breakdown

转载 作者:行者123 更新时间:2023-12-02 20:14:11 27 4
gpt4 key购买 nike

我正在寻找一个 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com