计算两点之间的距离,单位为米 [英] Calculate distance in meters between two points

查看:111
本文介绍了计算两点之间的距离,单位为米的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个交货地点,我需要计算两点之间的距离,并设置一个最低价格并每隔100米乘以一次。如何做到这一点?

I'm making a delivery site and I need to calculate the distance between two points and set a minimum price and multiply every 100 meters. How can this be done?

推荐答案

如果您想要驾驶距离(并且您正在显示Google地图),您可以使用路线服务方向矩阵

If you want the driving distance (and you are displaying a Google Map), you can use the directions service or the directions matrix

这篇关于计算两点之间的距离,单位为米的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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