Distance Calculator

免费增值
通过 Amar Nath | 已更新 a month ago | Location
人气

0.3 / 10

延迟

26ms

服务等级

0%

Health Check

N/A

返回全部教程 (1)

Get distance between two Geo Co-ordinates in miles or kilometers

Getting the distance between two Geo points in miles or kilometers is as simple as changing the “unit” query parameter of your request to “kilometers” or “miles”.

Example

To get the distance in kilometers

req.query({
“start_point”: “(42.335321,-71.023516)”,
“end_point”: “(47.373535,8.541109)”,
“unit”: “kilometers”
});

To get the distance in miles

req.query({
“start_point”: “(42.335321,-71.023516)”,
“end_point”: “(47.373535,8.541109)”,
“unit”: “miles”
});