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”
});