从纬度经度获取地点 [英] Geting places from latitude longitude

查看:126
本文介绍了从纬度经度获取地点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在db中存储了如下详细信息



公司|纬度|经度





现在,当我的用户在搜索框中输入一个位置时,我可以获得该地点的纬度和经度,之后我想获取纬度100公里半径范围内的所有公司。从搜索收到的很长时间





我该怎么做呢???

解决方案

您可以使用 GeoCoordinate [ ^ ]课程。



请看这里有类似的讨论。



http://stackoverflow.com/questions/ 22686161 /计算距离在2点之间的尖锐度 [ ^ ]


请看下面的方法,可能是你可以尝试加载公司以邮编为基础e?



http://www.aspsnippets.com/Articles/Find-Visitors-Geographic-Location-using-IP-Address-in-ASPNet.aspx [ ^ ]

i have stored details in db as follows

Company | Latitude | longitude


Now when my user type a place in Search box, i am able to get latitude and longitude of the place, after that i want to fetch all the companies in 100 KM radius of the lat. and long received from search


how can i do this, ??

解决方案

You can use the GeoCoordinate [^]class.

See here with a similar discussion.

http://stackoverflow.com/questions/22686161/calculating-the-distance-between-2-points-in-c-sharp[^]


Please see below approach , may be you can try to load company based on zip code ?

http://www.aspsnippets.com/Articles/Find-Visitors-Geographic-Location-using-IP-Address-in-ASPNet.aspx[^]


这篇关于从纬度经度获取地点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆