GPS Utilities API v1.0

Overview

This RESTful API exposes endpoints for geospatial calculations using GPS coordinates. This API is a growing suite of API Endpoints to help make geospatial calculations a breeze for developers and power users.

The following example demonstrates the differentiating features between our API and other APIs which perform a similar function. When measuring the distance between multiple GPS coordinate (latitude, longitude) pairs, you can elect to measure between each of the pairs, or, measure between the start coordinate pair and each of the coordinate pairs in the coordinates list.

The result provides totals of the operations and one can elect your preferred distance unit, i.e. meters, feet, miles, kilometers, nautical miles or all of the units of measurement (as in the example below).

Example:
API End Point: /distances-efs
HTTP METHOD: HTTP POST
HTTP POST with JSON Body:

    {
        "startCoord": {
            "latitude": -33.991838,
            "longitude": 22.7369
        },
        "coordinates": [
        {
            "latitude": -33.988444,
            "longitude": 22.749813
        },
        {
            "latitude": -34.005652,
            "longitude": 22.758734
        }
        ],
        "unit": "all",
        "fmt": "json",
        "dec": 5
    }
                                                
HTTP RESPONSE (JSON):

    {
        "startCoord": {
            "latitude": -33.991838,
            "longitude": 22.7369
        },
        "coordinates": [
            {
                "latitude": -33.988444,
                "longitude": 22.749813,
                "distance": {
                    "meters": 1251.08886,
                    "kilometers": 1.25109,
                    "nautical": 0.67553,
                    "miles": 0.77756,
                    "feet": 4104.62238
                },
                "total": {
                    "meters": 1251.08886,
                    "kilometers": 1.25109,
                    "nautical": 0.67553,
                    "miles": 0.77756,
                    "feet": 4104.62238
                }
            },
            {
                "latitude": -34.005652,
                "longitude": 22.758734,
                "distance": {
                    "meters": 2533.14377,
                    "kilometers": 2.53314,
                    "nautical": 1.36779,
                    "miles": 1.57436,
                    "feet": 8310.83941
                },
                "total": {
                    "meters": 3784.23263,
                    "kilometers": 3.78423,
                    "nautical": 2.04332,
                    "miles": 2.35192,
                    "feet": 12415.46178
                }
            }
        ],
        "unit": "all"
        }