如何使用经度和纬度值查找位置名称 [英] how to find location names by using latitude and longitude values

查看:188
本文介绍了如何使用经度和纬度值查找位置名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi.,
我的数据库中有许多纬度和经度值..
必须使用纬度&将位置名称存储在另一个表中经度值..
[我发现了一些逻辑...但这仅适用于从一个地址到另一个地址的情况.
一次单击,我只能存储两个位置名称...]
我需要通过单击来获取任意数量的位置名称..
这样我就可以轻松地将这些值存储到另一个表中

有人请帮我

谢谢你
munna

hi.,
i have many latitude and longitude values in my database..
have to store location names in another table by using latitude & longitude values..
[i found some logic... but that is for only from address and to addresses.
at a single click i can store only two location names...]
i need to get any number of location names by using a single click..
so i can easily store these values in to another table

anyone pls help me out

thank u
munna

推荐答案

hi 您可以计算范围.

例如:华盛顿市中心(10,10)
纽约(20,20)

hi You can calculate ranges.

e.g: Washington''s center (10, 10)
New york (20, 20)

float calculateRange(float latit1, float longit1, float latit2, float longit2)
{
        float rx = (latit1 - latit2)* (latit1 - latit2);
        float ry = (longit1 - longit2) * (longit1 - longit2);
        return Math.Pow((rx + ry), 0.5);
}


这篇关于如何使用经度和纬度值查找位置名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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