Coder Social home page Coder Social logo

adityamotale / bharat_city_connect Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 44 KB

Bharat City Connect is an API to fetch detailed geographical information about different states and cities across Bharat ๐Ÿ‡ฎ๐Ÿ‡ณ!

Home Page: https://adityamotale.github.io/bharat_city_connect/

HTML 100.00%
bharat geodata geolocation india

bharat_city_connect's Introduction

Bharat City Connect ๐Ÿ‡ฎ๐Ÿ‡ณ

Welcome to Bharat City Connect, your one-stop destination for detailed geographical information about different states and cities across Bharat ๐Ÿ‡ฎ๐Ÿ‡ณ! This repository contains JSON files filled with valuable data that will help you understand the layout of our diverse country better.

Overview

The goal of this API is to provide an easy-to-use yet comprehensive collection of state and city data, facilitating smooth integration into applications and projects requiring such details.

By promoting awareness and accessibility, I aim to strengthen the bond between every corner of Bharat ๐Ÿ‡ฎ๐Ÿ‡ณ.

Documentation

Base API URL

The base URL for the API is as follows:

https://adityamotale.github.io/bharat_city_connect/api/

You may use this base URL to construct specific endpoint paths for fetching desired data sets.

Accessing State Data

To obtain all available states, simply navigate to:

https://adityamotale.github.io/bharat_city_connect/api/bharat.json

The response format will resemble this example output:

[
  {
    "state_name": "Andaman_and_Nicobar_Islands"
  }
  // ...other states follow here
]

Retrieving City Information

Once you acquire the name of a particular state from the master list (accessed via <base_url>/bharat.json), you can proceed by appending its name (without spaces or special characters) to the following path:

https://adityamotale.github.io/bharat_city_connect/api/states/{state_name}.json

Replace {state_name} with the actual state name you wish to explore further.

For instance, if you want to find out which cities belong to the Andaman & Nicobar Islands, query the respective endpoint below:

https://adityamotale.github.io/bharat_city_connect/api/states/Andaman_and_Nicobar_Islands.json

The corresponding response will look like this:

[
  {
    "city_name": "Port Blair"
  }
  // ...other cities follow here
]

For more information or to report issues, please open a PR or Issue with your proposed changes.

Happy exploring ๐Ÿ‡ฎ๐Ÿ‡ณ!

bharat_city_connect's People

Contributors

adityamotale avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.