Giter Site home page Giter Site logo

kolakachi / country-state-city-database Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sagarshirbhate/country-state-city-database

0.0 2.0 0.0 445 KB

Worlds All Countries , States and Cities in Single File (Less than 1.5 MB)

Home Page: http://sagarshirbhate.blogspot.in/

License: Apache License 2.0

country-state-city-database's Introduction

Open Source Love MIT Licence

Worlds All Countries , States and Cities in Single File (Less than 1.5 MB):

Names Of all Countries , States and cities are included in JSON , PLIST and XML Format

All data is present just you have to add file in your project and fetch it from file.

Their structure is like

  • Country -> States -> Cities.

Json Structure is As Follows,(Not Complete List Just Sample)

{
"Countries":[
			{
            "CountryName":"India",
			"States":[
						{
                        "StateName":"Maharashtra",
						"Cities":[
								"Pune",
								"Nagpur",
								"Mumbai"
                                  ]
                         },
                         {
                         "StateName":"Kerala",
                         "Cities":[
                         			"Kochi",
                                    "Munnar"
                                  ]
                          }
                       ]
             },
             {
              "CountryName":"Australia",
			  "States":[
						{
                        "StateName":"Aukland",
						"Cities":[
								"GlenField",
								"Henderson",
									"MilFord"
                                  ]
                         },
                         {
                         "StateName":"Melbourne",
                         "Cities":[
                         			"Melbourne",
                                    "South Oakleigh"
                                  ]
                          }
                       ]
              }
           ]
      }
             

XML Structure is As Follows,(Not Complete List Just Sample)

<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
	<key>Countries</key>
	<array>
        <dict>
            <key>CountryName</key>
            <string>India</string>
            <key>States</key>
                <array>
                    <dict>
                    <key>Cities</key>
                    <array>
                        <string>Pune</string>
                        <string>Nagpur</string>
                        <string>Mumbai</string>
                    </array>
                    <key>StateName</key>
                    <string>Maharashtra</string>
                    </dict>
                    <dict>
                    <key>Cities</key>
                    <array>
                        <string>Kochi</string>
                        <string>Munnar</string>
                    </array>
                    <key>StateName</key>
                    <string>Kerala</string>
                    </dict>
                </array>
        </dict>
        <dict>
            <key>CountryName</key>
            <string>India</string>
            <key>States</key>
            <array>
                <dict>
                <key>Cities</key>
                <array>
                    <string>Pune</string>
                    <string>Nagpur</string>
                    <string>Mumbai</string>
                </array>
                <key>StateName</key>
                <string>Maharashtra</string>
                </dict>
                <dict>
                <key>Cities</key>
                <array>
                    <string>Kochi</string>
                    <string>Munnar</string>
                </array>
                <key>StateName</key>
                <string>Kerala</string>
                </dict>
            </array>
        </dict>
    </array>
 </dict>
</plist>

Plist Structure is As Follows,(Not Complete List Just Sample)

ScreenShot

Note :

  • This Free database dose not guarantee for the complete list of world countries, states and cities
  • You can manually change the spelling mistakes, or add edit any records, which are not correct.

country-state-city-database's People

Contributors

sagarshirbhate avatar

Watchers

James Cloos avatar Kolawole 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.