cURL Python Go R PHP

Introduction

Hi there—welcome to Atlan Grid! Make yourself at home :)

A little bit about us: we give you access to curated, updated, granular data sets and help you enrich your understanding of your customers. In a world where a single source of data doesn’t capture the entire picture, we curate data from over 600+ sources—from satellite imagery, statistical sources, to geospatial data and more—to give you a holistic view of your customer or business.

Atlan Grid’s data has been proven in the field—we have powered national auto manufacturers, banks and NBFCs, leading FMCG companies and more. In fact, in a declining auto sales environment, our data (used for sales planning) helped a customer generate an incremental revenue of \$14 million across 3 states, in just 3 months!

You can check out this blog to learn more about why and how we created Atlan Grid.

Now, let’s get to business! We currently offer 3 types of APIs:

Ready to start exploring? Take our API for a spin—get access to all our data packs for an entire city for upto 90 days! Run as many experiments as you want to understand how external, previously unknown variables are affecting your business.

For information on how to get access, please read the next section below.

Authentication

To authorize, use this code:

# You can just pass the correct header with each request
curl "https://api-grid.atlan.com/api/{endpoint}" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

response = requests.get('https://api-grid.atlan.com/api/{endpoint}', headers=headers)
package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/{endpoint}
", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/{endpoint}', httr::add_headers(.headers=headers))
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/{endpoint}
', $headers);

Grid API uses API keys to allow access. You can request a Grid API key here.

Grid API expects the API key to be included in all requests to the server in a header that looks like the following:

X-API-KEY: secretweapon

Customer Enrichment APIs

Use this API to enrich your customer’s home or work location (lat-long) with variables that help explain their behavior and preferences, including their affluence and economic profile, the demography and lifestyle of the world around them, and the movement patterns of people in their immediate vicinity.

All data has been updated to reflect 2019 figures.

Affluence, Income Segments & Economic Profile

curl -X GET "https://api-grid.atlan.com/api/profile/v1/india/affluence-economic?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/profile/v1/india/affluence-economic', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/profile/v1/india/affluence-economic?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/profile/v1/india/affluence-economic', httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/profile/v1/india/affluence-economic?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "affluence": 76.9000263531855,
      "percapita": 1429001.52,
      "economic_index": 44.0128543958237
    }
  ]
}

Know how affluent your customers are based on their home location and understand economic growth in the region around them. The API includes:

HTTP Request

GET https://api-grid.atlan.com/api/profile/v1/india/affluence-economic/

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude of the customer's location true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
affluence Affluence score of the customer (0-100) 47.94
percapita Average annual per capital income (in Rs.) of the people with this affluence score 140000
economic_index Economic growth score of the 0.8 sq km region (0-100) where the customer latlong lies 54.12

Demographic Profile

curl -X GET "https://api-grid.atlan.com/api/profile/v1/india/demography?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/profile/v1/india/demography', headers=headers, params=params)
package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/profile/v1/india/demography?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/profile/v1/india/demography', httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/profile/v1/india/demography?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "residential_population": 3401,
      "age_0_5_f": 3.08285163776493,
      "age_0_5_m": 3.24049746015064,
      "age_10_15_f": 7.199159222280611,
      "age_10_15_m": 7.584515677001231,
      "age_15_20_f": 9.44123314065511,
      "age_15_20_m": 10.019267822736,
      "age_20_25_f": 1.4538448064459601,
      "age_20_25_m": 2.8901734104046204,
      "age_25_30_f": 1.9793308810649899,
      "age_25_30_m": 2.73252758801892,
      "age_30_35_f": 1.76913645121738,
      "age_30_35_m": 1.9968470835522898,
      "age_35_40_f": 1.8567174636538797,
      "age_35_40_m": 1.9968470835522898,
      "age_40_45_f": 1.5239096163951698,
      "age_40_45_m": 1.66403923629357,
      "age_45_50_f": 2.03187948852689,
      "age_45_50_m": 2.2420739183745,
      "age_50_55_f": 1.5589420213697698,
      "age_50_55_m": 1.8742336661411798,
      "age_55_60_f": 1.5239096163951698,
      "age_55_60_m": 1.89174986862848,
      "age_5_10_f": 8.72306883867578,
      "age_5_10_m": 9.40620073568051,
      "age_60_plus_f": 5.552636188474341,
      "age_60_plus_m": 4.7468908740585,
      "family_size": 5,
      "percent_nuclear": 30.0431801032538
    }
  ]
}

Understand more about your customer based on the demographics of the region they reside in. This API includes:

Bonus: We give you granular data on these indicators—at a 0.8 sq. km level—so you can make more targeted decisions!

HTTP Request

GET https://api-grid.atlan.com/api/profile/v1/india/demography/

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude of the customer's location true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
residential_population Residential population count in a 0.8 sq. km. area 4350
age_gender Percent of individuals in an age and gender bracket in a 0.8 sq. km. area. For example, age_0_5_m means males from the age of 0 until the age of 5 (not included) 6.32
family_size Average family size in a 0.8 sq. km. area 5
percent_nuclear Percent of nuclear families in a 0.8 sq. km. region 30.0431801032538

Movement Patterns

curl -X GET "https://api-grid.atlan.com/api/profile/v1/india/movement?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/profile/v1/india/movement', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/profile/v1/india/movement?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/profile/v1/india/movement', httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/profile/v1/india/movement?latlong=12.9716,77.5946', $headers);

The above command returns JSON structured like this:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "ambient_population": 17689,
      "vehicular_speed": 63.1851322169548,
      "bus_stop_nearest_in_m": 32.32278562,
      "road_length": 0.208600511087296
    }
  ]
}

Understand your customer better by analyzing the movement patterns of people in the region where your customer's home or workplace is located. This API includes:

Bonus: We give you granular data on these indicators—at a 0.8 sq. km level—so you can make more targeted decisions! For Location of Bus Stops, we go a step further and give you the actual distance.

HTTP Request

GET https://api-grid.atlan.com/api/profile/v1/india/movement/

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude of the customer's location true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
ambient_population Count of ambient population in a 0.8 sq. km. area 5634
vehicular_speed Average vehicular speed (kmph) in a 0.8 sq. km. area 23.56
bus_stop_nearest_in_m Distance to the nearest bus stop from the latlong entered 5.65
road_length Total length of road (km) in a 0.8 sq. km. area 1.2

Lifestyle Profile

curl -X GET "https://api-grid.atlan.com/api/profile/v1/india/lifestyle?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/profile/v1/india/lifestyle', headers=headers, params=params)
package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/profile/v1/india/lifestyle?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/profile/v1/india/lifestyle', httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/profile/v1/india/lifestyle?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "building_count_in_200m": 44,
      "building_average_build_area_in_200m": 311.7309032196579,
      "building_average_num_floors_in_200m": 4.068181818181818,
      "grocery_store_count_in_200m": 0,
      "cell_tower_count_in_400m": 42,
      "atm_count_in_400m": 7,
      "restaurant_count_in_400m": 2,
      "school_count_in_500m": 0,
      "health_center_nearest_in_m": 603.27407218,
      "sports_club_nearest_in_m": 943.47279272,
      "gym_nearest_in_m": 895.42386671,
      "salon_nearest_in_m": 963.25261647,
      "bank_nearest_in_m": 230.73299544,
      "it_park_nearest_in_m": 1780.0452479,
      "college_nearest_in_m": 229.37885781,
      "coaching_center_nearest_in_m": 484.64992091
    }
  ]
}

Understand your customer better by looking at the type of infrastructure and amenities to which they have access. This API includes:

HTTP Request

GET https://api-grid.atlan.com/api/profile/v1/india/lifestyle/

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude of the customer's location true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
building_count_in_200m Count of buildings in a 200m radius of the latlong 14
building_average_build_area_in_200m The average area (in meter sq) of the buildings in a 200m radius of the latlong 130.86
building_average_num_floors_in_200m The average number of floors of the buildings in a 200m radius of the latlong 9
grocery_store_count_in_200m Count of grocery stores in a 200m radius of the latlong 2
cell_tower_count_in_400m Count of cell towers in a 400m radius of the latlong 3
atm_count_in_400m Count of ATMs in a 400m radius of the latlong 5
restaurant_count_in_400m Count of restaurants in a 400m radius of the latlong 8
school_count_in_500m Count of schools in a 500m radius of the latlong 2
health_center_nearest_in_m Distance to the nearest health center in meters 334.20
sports_club_nearest_in_m Distance to the nearest sports club in meters 662.91
gym_nearest_in_m Distance to the nearest gym in meters 230.11
salon_nearest_in_m Distance to the nearest salon in meters 177.12
bank_nearest_in_m Distance to the nearest bank branch in meters 54.12
it_park_nearest_in_m Distance to the nearest IT park in meters 1452.12
college_nearest_in_m Distance to the nearest college in meters 1834.43
coaching_center_nearest_in_m Distance to the nearest coaching center in meters 2132.03

Geography Enrichment APIs

Businesses are expanding rapidly today, with customers across geographies—metros, towns and villages. Identifying where your customer is based can be challenging with changing geographic boundaries and fast-growing cities.

Use this API to learn about the geographic parameters associated with any lat-long. Segregate urban and rural customers or identify the pincodes, districts, Census 2011 towns or villages associated with your location.

Bonus: For our Lat-long to Urban-Rural API, we go beyond Census data and use satellite imagery so you get the latest information! 😎

Our API covers lat-longs in 20,000 pincodes, 640+ districts, 7,000+ Census 2011 towns, and 640,000+ Census 2011 villages.

Lat-long to Urban-Rural

curl -X GET "https://api-grid.atlan.com/api/geography/v1/india/urban_rural?latlong=12.9652263,77.3988805" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9652263,77.3988805'),
)

response = requests.get('https://api-grid.atlan.com/api/geography/v1/india/urban_rural', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/geography/v1/india/urban_rural?latlong=12.9652263,77.3988805", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9652263,77.3988805'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/geography/v1/india/urban_rural',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/geography/v1/india/urban_rural?latlong=12.9652263,77.3988805', $headers);

The above command returns JSON output

{
  "data": [
    {
      "class": "urban"
    }
  ]
}

Understand whether a particular lat-long lies in an urban area or a rural area. Urban-Rural boundaries updated as of 2019.

HTTP Request

GET https://api-grid.atlan.com/api/geography/v1/india/urban_rural

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be enriched true 12.9716,77.5946

Output Parameters

Parameter Description Sample
class Region (urban or rural) in which the latlong lies urban

Lat-long to Pincode

curl -X GET "https://api-grid.atlan.com/api/geography/v1/india/pincode?latlong=12.9652263,77.3988805" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9652263,77.3988805'),
)

response = requests.get('https://api-grid.atlan.com/api/geography/v1/india/pincode', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/geography/v1/india/pincode?latlong=12.9652263,77.3988805", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9652263,77.3988805'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/geography/v1/india/pincode',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/geography/v1/india/pincode?latlong=12.9652263,77.3988805', $headers);

The above command returns JSON output

{
  "data": [
    {
      "state_name": "Karnataka",
      "pincode": "562130"
    }
  ]
}

Identify the pincode associated with a particular lat-long.

HTTP Request

GET https://api-grid.atlan.com/api/geography/v1/india/pincode

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be enriched true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
pincode The pincode in which the latlong lies 562130

Lat-long to Census District

curl -X GET "https://api-grid.atlan.com/api/geography/v1/india/district?latlong=12.9652263,77.3988805" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9652263,77.3988805'),
)

response = requests.get('https://api-grid.atlan.com/api/geography/v1/india/district', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/geography/v1/india/district?latlong=12.9652263,77.3988805", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9652263,77.3988805'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/geography/v1/india/district',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/geography/v1/india/district?latlong=12.9652263,77.3988805', $headers);

The above command returns JSON output

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572
    }
  ]
}

Identify the district associated with a particular lat-long.

HTTP Request

GET https://api-grid.atlan.com/api/geography/v1/india/district

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be enriched true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572

Lat-long to Census Village

curl -X GET "https://api-grid.atlan.com/api/geography/v1/india/village?latlong=13.2102549,76.9641751" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '13.2102549,76.9641751'),
)

response = requests.get('https://api-grid.atlan.com/api/geography/v1/india/village', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/geography/v1/india/village?latlong=13.2102549,76.9641751", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '13.2102549,76.9641751'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/geography/v1/india/village',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/geography/v1/india/village?latlong=13.2102549,76.9641751', $headers);

The above command returns JSON output

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Tumkur",
      "district_code": 571,
      "subdistrict_code": "5538",
      "subdistrict_name": "Gubbi",
      "village_name": "Voddarahalli",
      "village_code": "S295710106611857"
    }
  ]
}

Identify the Census 2011 village associated with a particular lat-long.

HTTP Request

GET https://api-grid.atlan.com/api/geography/v1/india/village

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be enriched true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Tumkur
district_code Census 2011 district ID for the village in which the latlong lies 571
subdistrict_name Name of the subdistrict in which the latlong lies Gubbi
subdistrict_code Census 2011 subdistrict ID for the village in which the latlong lies 5538
village_name Name of the village in which the latlong lies Voddarahalli
village_code Census 2011 village ID for the village in which the latlong lies S295710106611857

Lat-long to Census Town

curl -X GET "https://api-grid.atlan.com/api/geography/v1/india/town?latlong=12.9652263,77.3988805" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9652263,77.3988805'),
)

response = requests.get('https://api-grid.atlan.com/api/geography/v1/india/town', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/geography/v1/india/town?latlong=12.9652263,77.3988805", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9652263,77.3988805'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/geography/v1/india/town',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/geography/v1/india/town?latlong=12.9652263,77.3988805', $headers);

The above command returns JSON output

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "town_name": "Arasinakunte",
      "town_code": "624949"
    }
  ]
}

Identify the Census 2011 town associated with a particular lat-long.

HTTP Request

GET https://api-grid.atlan.com/api/geography/v1/india/town

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be enriched true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
town_name Name of the town in which the latlong lies Arasinakunte
town_code Census 2011 town ID for the town in which the latlong lies 624949

Unbundled Data APIs

Our unbundled APIs give you the flexibility to choose the data you need and discover what moves your business. Use our APIs to understand more about the region where your store is based, the distance of a customer from your competitor’s locations, or the profile of an area you're considering expanding into.

All our data has been updated to reflect 2019 figures.

Affluence & Income

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/affluence_index?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/affluence_index', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/affluence_index?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/affluence_index',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/affluence_index?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "affluence": 76.9000263531855,
      "percapita": 1429001.52
    }
  ]
}

Measure the economic well-being or prosperity of your customer as reflected by their lifestyle through an affluence score ranging from 0 to 100. This measure is built on two types of data: satellite imagery-based variables (such as the size and density of buildings, quality of infrastructure, and the amount of green cover in an area) and statistical variables such as asset and amenity data, cost of living estimates and more.

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/affluence_index

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
affluence Affluence score of the customer (0-100) 47.94
percapita Average annual per capital income (in Rs.) of the people with this affluence score 140000

Economic Growth Index

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/economic_growth_index?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/economic_growth_index', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/economic_growth_index?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/economic_growth_index',
                    httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/economic_growth_index?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

For metros, i.e. when granulariy is not specified

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "economic_index": 44.0128543958237
    }
  ]
}

For rural, i.e. when granulariy is set to village

{
  "data": [
    {
      "state_name": "Uttar Pradesh",
      "state_code": 9,
      "district_name": "Saharanpur",
      "district_code": 132,
      "subdistrict_name": "Behat",
      "subdistrict_code": 701,
      "village_name": "Sunehti",
      "village_code": "S0913200701109050",
      "economic_index": 22.99412
    }
  ]
}

Spot the growth trend before your competitor does! With this index, you can measure the economic growth of the area where your customer lives (as granular as a 0.8 sq. km. level for metros and a village level for rural) on a scale of 0 to 100. The index is built on the variables that directly correlate with GDP growth such as electricity consumption and construction activity.

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/economic_growth_index

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
granularity Parameter required if output is needed at a village level (rural); If data is required for metros, please ignore this parameter false village

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
subdistrict_name Name of the subdistrict in which the latlong lies Behat
subdistrict_code Census 2011 subdistrict ID for the subdistrict in which the latlong lies 701
city Name of the city in which the latlong lies Bangalore
village_name Name of the village in which the latlong lies Sunehti
village_code Census 2011 village ID for the village in which the latlong lies S0913200701109050
economic_index Economic growth score (0-100) of the region where the latlong lies 54.12

Residential Population

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/population?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/population', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/population?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/population',
                    httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/population?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

For metros, i.e. when granulariy is not specified

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "residential_population": 3401
    }
  ]
}

For rural, i.e. when granulariy is set to village

{
  "data": [
    {
      "state_name": "Uttar Pradesh",
      "state_code": 9,
      "district_name": "Saharanpur",
      "district_code": 132,
      "subdistrict_name": "Behat",
      "subdistrict_code": 701,
      "village_name": "Sunehti",
      "village_code": "S0913200701109050",
      "residential_population": 384
    }
  ]
}

Get an estimate of the number of people who live in the area where your customer resides.

We give you granular data on this indicator—at a 0.8 sq. km. level for metros and a village level for rural—so you can make more targeted decisions!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/population

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
granularity Parameter required if output is needed at a village level (rural); If data is required for metros, please ignore this parameter false village

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
subdistrict_name Name of the subdistrict in which the latlong lies Behat
subdistrict_code Census 2011 subdistrict ID for the subdistrict in which the latlong lies 701
city Name of the city in which the latlong lies Bangalore
village_name Name of the village in which the latlong lies Sunehti
village_code Census 2011 village ID for the village in which the latlong lies S0913200701109050
residential_population Residential population count in the region where the latlong lies 4350

Age & Gender Profile

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/population_age_gender?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/population_age_gender', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/population_age_gender?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/population_age_gender',
                    httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/population_age_gender?latlong=12.9716,77.5946', $headers);

The above command returns a JSON output:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "age_0_5_f": 3.08285163776493,
      "age_0_5_m": 3.24049746015064,
      "age_10_15_f": 7.199159222280611,
      "age_10_15_m": 7.584515677001231,
      "age_15_20_f": 9.44123314065511,
      "age_15_20_m": 10.019267822736,
      "age_20_25_f": 1.4538448064459601,
      "age_20_25_m": 2.8901734104046204,
      "age_25_30_f": 1.9793308810649899,
      "age_25_30_m": 2.73252758801892,
      "age_30_35_f": 1.76913645121738,
      "age_30_35_m": 1.9968470835522898,
      "age_35_40_f": 1.8567174636538797,
      "age_35_40_m": 1.9968470835522898,
      "age_40_45_f": 1.5239096163951698,
      "age_40_45_m": 1.66403923629357,
      "age_45_50_f": 2.03187948852689,
      "age_45_50_m": 2.2420739183745,
      "age_50_55_f": 1.5589420213697698,
      "age_50_55_m": 1.8742336661411798,
      "age_55_60_f": 1.5239096163951698,
      "age_55_60_m": 1.89174986862848,
      "age_5_10_f": 8.72306883867578,
      "age_5_10_m": 9.40620073568051,
      "age_60_plus_f": 5.552636188474341,
      "age_60_plus_m": 4.7468908740585
    }
  ]
}

Understand the percent of population in different age and gender groups, segmented into 5-year brackets from the age of 0 to 60+ in the area where your customer resides.

We give you granular data on this indicator—at a 0.8 sq. km level—so you can make more targeted decisions!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/population_age_gender

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
age_gender Percent of individuals in an age and gender bracket in a 0.8 sq. km. area. For example, age_0_5_m means males from the age of 0 until the age of 5 (not included) 6.23

Family Profile

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/family_profile?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/family_profile', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/family_profile?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/family_profile',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/family_profile?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "family_size": 5,
      "percent_nuclear": 30.0431801032538
    }
  ]
}

Understand the average family size and percent of nuclear families in the area where your customer resides. For us, a nuclear family consists of either a couple, or a couple and their dependent children.

We give you granular data on this indicator—at a 0.8 sq. km level—so you can make more targeted decisions!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/family_profile

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
family_size Average family size in a 0.8 sq. km. area 5
percent_nuclear Percent of nuclear families in a 0.8 sq. km. region 30.0431801032538

Ambient Population for Footfall

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/ambient_population?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/ambient_population', headers=headers, params=params)
package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/ambient_population?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/ambient_population',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/ambient_population?latlong=12.9716,77.5946', $headers);

The above command returns JSON output:

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "ambient_population": 17689
    }
  ]
}

Ambient population captures the average expected population in an area, in a day—in other words, where people spend their time during the day. In commercial areas, ambient population is a great representation of expected footfall.

We give you granular data on this indicator—at a 0.8 sq. km level—so you can make more targeted decisions!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/ambient_population

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
ambient_population Count of ambient population in a 0.8 sq. km. area 5634
curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/traffic_trend?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/traffic_trend', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/traffic_trend?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/traffic_trend',
                  httr::add_headers(.headers=headers), query = params)
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/traffic_trend?latlong=12.9716,77.5946', $headers);

The above command returns a JSON output

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "vehicular_speed": 63.1851322169548
    }
  ]
}

Measure the average vehicular speed as a proxy for traffic congestion in the area where your customer lives or works.

We give you granular data on this indicator—at a 0.8 sq. km level—so you can make more targeted decisions!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/traffic_trend

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
vehicular_speed Average vehicular speed (kmph) in a 0.8 sq. km. area 23.56

Road Density

  curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/road_density?latlong=12.9716,77.5946" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/road_density', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/road_density?latlong=12.9716,77.5946", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/road_density',
                    httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/road_density?latlong=12.9716,77.5946', $headers);

The above command returns a JSON output

{
  "data": [
    {
      "state_name": "Karnataka",
      "state_code": 29,
      "district_name": "Bangalore",
      "district_code": 572,
      "city": "Bangalore",
      "road_density": 0.150556929845283
    }
  ]
}

Measure the density of road network in the area where your customer lives or works.

We give you granular data on this indicator—at a 0.8 sq. km level—so you can make more targeted decisions!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/road_density

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
road_density Total length of road (km) in a 0.8 sq. km. area 1.2

Building Profile

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/building?latlong=12.9716,77.5946&radius=50" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '50'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/building', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/building?latlong=12.9716,77.5946&radius=50", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '50'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/building',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/building?latlong=12.9716,77.5946&radius=50', $headers);

The above command returns a JSON output

{
  "data": [
    {
      "count": {
        "building": 3,
        "radius": "50",
        "avg_num_floors": 6,
        "avg_build_area": 344.567684787479
      }
    }
  ]
}

Get the number of floors and area of an individual building or a number of buildings in a region.

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/building

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude of the building true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which building attributes are required true 50

Output Parameters

Parameter Description Sample
state_name Name of the state in which the latlong lies Karnataka
state_code Census 2011 state ID for the state in which the latlong lies 29
district_name Name of the district in which the latlong lies Bangalore
district_code Census 2011 district ID for the district in which the latlong lies 572
city Name of the city in which the latlong lies Bangalore
building Count of buildings in the region considered 14
avg_build_area Average area of the building(s) (in m sq) 130.86
avg_num_floors Average number of floors of the building(s) 9
radius The input value of radius, if provided 300

Location of Bus Stops

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/bus_stop?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/bus_stop', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/bus_stop?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/bus_stop',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/bus_stop?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "bus_stop": 2,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "bus_stop": 32.32278562
      }
    }
  ]
}

Identify the locations of bus stops in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/bus_stop

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of bus stops is required false 300

Output Parameters

Parameter Description Sample
bus_stop If radius provided: count of bus stops; If radius not provided: distance (in meters) to the nearest bus stop 14
radius The input value of radius, if provided 300

Location of Restaurants

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/restaurant?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/restaurant', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/restaurant?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/restaurant',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/restaurant?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON

{
  "data": [
    {
      "count": {
        "restaurant": 11,
        "radius": "300"
      }
    }
  ]
}

Identify the locations of restaurants in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/restaurant

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of restaurants is required false 200

Output Parameters

Parameter Description Sample
restaurant If radius provided: count of restaurants; If radius not provided: distance (in meters) to the nearest restaurant 14
radius The input value of radius, if provided 300

Location of Gyms

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/gym?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/gym', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/gym?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/gym',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/gym?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "gym": 0,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "gym": 518.86136618
      }
    }
  ]
}

Identify the locations of gyms in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/gym

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of gyms is required false 200

Output Parameters

Parameter Description Sample
gym If radius provided: count of gyms; If radius not provided: distance (in meters) to the nearest gym 14
radius The input value of radius, if provided 300

Location of IT Parks

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/it_park?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/it_park', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/it_park?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/it_park',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/it_park?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON

{
  "data": [
    {
      "count": {
        "it_park": 11,
        "radius": "300"
      }
    }
  ]
}

Identify the locations of IT parks in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/it_park

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of it parks is required false 200

Output Parameters

Parameter Description Sample
it_park If radius provided: count of it parks; If radius not provided: distance (in meters) to the nearest it park 14
radius The input value of radius, if provided 300

Location of Cell Towers

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/cell_tower?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/cell_tower', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/cell_tower?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/cell_tower',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/cell_tower?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "cell_tower": 11,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "cell_tower": 46.93883668
      }
    }
  ]
}

Identify the locations of cell towers in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/cell_tower

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of cell towers is required false 200

Output Parameters

Parameter Description Sample
cell_tower If radius provided: count of cell towers; If radius not provided: distance (in meters) to the nearest cell tower 14
radius The input value of radius, if provided 300

Location of Grocery Stores

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/grocery_store?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/grocery_store', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/grocery_store?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/grocery_store',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/grocery_store?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "grocery_store": 2,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "grocery_store": 151.0875055
      }
    }
  ]
}

Identify the locations of grocery stores in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/grocery_store

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of grocery stores is required false 200

Output Parameters

Parameter Description Sample
grocery_store If radius provided: count of grocery stores; If radius not provided: distance (in meters) to the nearest grocery store 14
radius The input value of radius, if provided 300

Location of Health Centers

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/health_center?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/health_center', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/health_center?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/health_center',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/health_center?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "health_center": 4,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "health_center": 4.0494752
      }
    }
  ]
}

Identify the locations of health centers in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/health_center

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of health centers is required false 200

Output Parameters

Parameter Description Sample
health_center If radius provided: count of health centers; If radius not provided: distance (in meters) to the nearest health center 14
radius The input value of radius, if provided 300

Location of Schools

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/school?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/school', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/school?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/school',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/school?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "school": 0,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "school": 205.99273533
      }
    }
  ]
}

Identify the locations of schools in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/school

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of schools is required false 200

Output Parameters

Parameter Description Sample
school If radius provided: count of schools; If radius not provided: distance (in meters) to the nearest school 14
radius The input value of radius, if provided 300

Location of Colleges

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/college?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/college', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/college?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/college',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/college?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "college": 0,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "college": 773.30923053
      }
    }
  ]
}

Identify the locations of colleges in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/college

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of colleges is required false 200

Output Parameters

Parameter Description Sample
college If radius provided: count of colleges; If radius not provided: distance (in meters) to the nearest college 14
radius The input value of radius, if provided 300

Location of Bank Branches

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/bank?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/bank', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/bank?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/bank',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/bank?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "bank": 12,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "bank": 4.04949573
      }
    }
  ]
}

Identify the locations of bank branches in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/bank

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of banks is required false 200

Output Parameters

Parameter Description Sample
bank If radius provided: count of banks; If radius not provided: distance (in meters) to the nearest bank 14
radius The input value of radius, if provided 300

Location of ATMs

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/atm?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/atm', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/atm?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/atm',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/atm?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "atm": 7,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "atm": 5.81076612
      }
    }
  ]
}

Identify the locations of ATMs in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/atm

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of atms is required false 200

Output Parameters

Parameter Description Sample
atm If radius provided: count of atms; If radius not provided: distance (in meters) to the nearest atm 14
radius The input value of radius, if provided 300

Location of Sports Clubs

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/sports_club?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/sports_club', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/sports_club?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/sports_club',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/sports_club?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "sports_club": 0,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "sports_club": 855.30493351
      }
    }
  ]
}

Identify the locations of sports clubs in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/sports_club

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of sport clubs is required false 200

Output Parameters

Parameter Description Sample
sports_club If radius provided: count of sport clubs; If radius not provided: distance (in meters) to the nearest sport club 14
radius The input value of radius, if provided 300

Location of Salons

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/salon?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/salon', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/salon?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/salon',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/salon?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "salon": 3,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "salon": 63.04722357
      }
    }
  ]
}

Identify the locations of salons in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/salon

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of salons is required false 200

Output Parameters

Parameter Description Sample
salon If radius provided: count of salons; If radius not provided: distance (in meters) to the nearest salon 14
radius The input value of radius, if provided 300

Location of Coaching Centers

curl -X GET "https://api-grid.atlan.com/api/insightpack/v1/india/coaching_center?latlong=12.9716,77.5946&radius=200" -H "X-API-KEY: secretweapon"
import requests

headers = {
    'X-API-KEY': 'secretweapon',
}

params = (
    ('latlong', '12.9716,77.5946'),
    ('radius', '200'),
)

response = requests.get('https://api-grid.atlan.com/api/insightpack/v1/india/coaching_center', headers=headers, params=params)

package main

import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)

func main() {
  client := &http.Client{}
  req, err := http.NewRequest("GET", "https://api-grid.atlan.com/api/insightpack/v1/india/coaching_center?latlong=12.9716,77.5946&radius=200", nil)
  if err != nil {
    log.Fatal(err)
  }
  req.Header.Set("X-API-KEY", "secretweapon")
  resp, err := client.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText)
}
require(httr)

headers = c(
  `X-API-KEY` = 'secretweapon'
)

params = list(
  `latlong` = '12.9716,77.5946',
  `radius` = '200'
)

res <- httr::GET(url = 'https://api-grid.atlan.com/api/insightpack/v1/india/coaching_center',
                  httr::add_headers(.headers=headers), query = params)

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'X-API-KEY' => 'secretweapon'
);
$response = Requests::get('https://api-grid.atlan.com/api/insightpack/v1/india/coaching_center?latlong=12.9716,77.5946&radius=200', $headers);

The above command returns a JSON:

If radius is provided

{
  "data": [
    {
      "count": {
        "coaching_center": 1,
        "radius": "200"
      }
    }
  ]
}

If radius isn't provided

{
  "data": [
    {
      "nearest": {
        "coaching_center": 149.93313996
      }
    }
  ]
}

Identify the locations of coaching centers in an area. This data can be consumed as an aggregate count in a region or in terms of distance from a point. Radius of interest is customizable!

HTTP Request

GET https://api-grid.atlan.com/api/insightpack/v1/india/coaching_center

Query Parameters

Parameter Description Required Sample
latlong The latitude-longitude to be considered true 12.9716,77.5946
radius The radius (in meters) around the lat-long for which a count of coaching centers is required false 200

Output Parameters

Parameter Description Sample
coaching_center If radius provided: count of coaching centers; If radius not provided: distance (in meters) to the nearest coaching center 14
radius The input value of radius, if provided 300