从纬度减去米 [英] Subtract meters from latitude

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

问题描述

通过从给定纬度减去SOUTH x米数来计算新纬度点的最简单方法是什么?例如,埃菲尔铁塔的纬度为 48.8582,经度为<2.2940 .我在塔周围绕了一圈,半径为171米.我想将InfoBox放置在圆圈的下方.

What is the simplest way to calculate a new latitude point by going SOUTH x number of meters from a given latitude? For example, the Eiffel Tower is at 48.8582 latitude and 2.2940 longitude. I have a circle around the Tower with a radius of 171 meters. I want to position an InfoBox just beneath the circle.

这是我的圈子:

var circle = new google.maps.Circle({
    map: map,
    fillColor: 'red',
    fillOpacity: 0.2,
    strokeWeight: 1,
    center: new google.maps.LatLng(48.8582, 2.2940),
    radius: 171
});

我的信息框当前位于圆上的死点位置,但我希望它直接位于圆的下面.所以我想我只需要将盒子(171/2 = 85.5)向南移动即可获得所需的位置.

My infobox currently gets positioned dead center on the circle, but I want it directly beneath the circle instead. So I'm guessing I just need to move the box (171/2=85.5) meters south to get the positioning I want.

对此有一个简单的计算方法吗?我看过 haversine公式,但这似乎比它复杂得多.我需要什么,我不知道如何使用它,甚至不适合这个问题.

Is there a simple calculation for this? I have looked at the haversine formula but that seems a lot more complex than what I need, and I don't understand how to use it, and whether it even suits this problem.

我想向南精确地走85.5米,并获得新的经纬度坐标来定位InfoBox.大概只有纬度会改变,但我不确定.

I want to go south exactly 85.5 meters and get new lat/long coords for positioning of the InfoBox. Presumably only latitude would change, but I'm uncertain.

推荐答案

向南85.5米非常容易,因为纬度始终以米为单位.地球的周长为±40075公里,相当于360度,因此您的答案是360 * 85.5/40075000 = 0.000768度.

85.5 meters south is very easy, because a degree latitude has always the same value in meters. The Earth has a circumference of ± 40075 km, which corresponds to 360 degrees, so your answer is 360 * 85.5 / 40075000 = 0.000768 degrees.

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

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