Coverage

Coverage for the Hub

GET /hub/coverage

Use this api to get the area a particular hub covers by providing the api key and the details of the coverage - name of the city, latitude and longitude to get the serviceability. Entering the hub name lists the pincodes that it covers while providing the latitude and longitude should provide the polygonal area covered by the hub. NOTE: If name of the hub is not provided, then latitude and longitude are mandatory.

Query Parameters

NameTypeDescription

hub

string

Name of the hub

latitude

number

Latitude of delivery address

longitude

number

Longitude of delivery address

Headers

NameTypeDescription

API_KEY

string

Enter the API Key

{
  "status": "SUCCESS",
  "message": {
    "type": "Feature",
    "geometry": {
      "type": "Polygon",
      "coordinates": [
        [
          79.6077403841797,
          13.859221792371132
        ],
        [
          80.1350841341797,
          13.303910339793507
        ],
        [
          79.9812755404297,
          12.961543047963888
        ],
        [
          79.4978771029297,
          12.618704246404995
        ],
        [
          79.6077403841797,
          13.859221792371132
        ]
      ]
    }
  }
}

Last updated