All Projects β†’ samayo β†’ Country Json

samayo / Country Json

Licence: mit
A simple data of the world by country each in JSON format.

Programming Languages

javascript
184084 projects - #8 most used programming language
language
365 projects

Projects that are alternatives of or similar to Country Json

Countries States Cities Database
🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities
Stars: ✭ 1,130 (+64.24%)
Mutual labels:  countries, city, country
Nager.Country
Worldwide Country Informations (ISO-3166-1 Alpha2, ISO-3166-1 Alpha3, ISO 639-1)
Stars: ✭ 68 (-90.12%)
Mutual labels:  country, currency, countries
Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (-85.47%)
Mutual labels:  countries, country
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (-87.65%)
Mutual labels:  currency, countries
csc picker
A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.
Stars: ✭ 25 (-96.37%)
Mutual labels:  country, city
World Cities
Multilingual list of countries, states & cities in XML format. δΈ–η•Œζ‰€ζœ‰εŸŽεΈ‚οΌŒε›½ε†…ζ‰€ζœ‰ηœγ€εΈ‚γ€εŒΊγ€εŽΏδΏ‘ζ―οΌˆ2020.06οΌ‰
Stars: ✭ 64 (-90.7%)
Mutual labels:  countries, city
Laravel Country State
A helper to list countries & states in English in Laravel 5.1+
Stars: ✭ 77 (-88.81%)
Mutual labels:  countries, country
IP2Location-C-Library
IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
Stars: ✭ 37 (-94.62%)
Mutual labels:  country, city
ip2location-nginx
Nginx module that allows user to lookup for geolocation information using IP2Location database.
Stars: ✭ 33 (-95.2%)
Mutual labels:  country, city
world
A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
Stars: ✭ 479 (-30.38%)
Mutual labels:  country, countries
Laravel World
provide countries, states, and cities relations and database.
Stars: ✭ 222 (-67.73%)
Mutual labels:  city, country
jqIpLocation
jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format
Stars: ✭ 18 (-97.38%)
Mutual labels:  country, city
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (-79.8%)
Mutual labels:  countries, country
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (-92.59%)
Mutual labels:  country, countries
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (-77.62%)
Mutual labels:  country, city
react-vector-maps
πŸ—Ί A React component for interactive vector maps of the world and 100+ countries
Stars: ✭ 112 (-83.72%)
Mutual labels:  country, countries
Flagphonenumber
A formatted phone number UITextField with country flag picker.
Stars: ✭ 371 (-46.08%)
Mutual labels:  country
Date Holidays
worldwide holidays
Stars: ✭ 509 (-26.02%)
Mutual labels:  countries
Money
PHP implementation of Fowler's Money pattern.
Stars: ✭ 3,868 (+462.21%)
Mutual labels:  currency
Getcountries
MySQL, Firebird, XML, JSON, CSV or YAML generator for custom Countries data.
Stars: ✭ 343 (-50.15%)
Mutual labels:  countries

country>json Build Status

A simple data of the world (by country) each in JSON format.

Download

Using npm

$ npm install country-json

or composer

$ composer require samayo/country-json

or git

$ git clone https://github.com/samayo/country-json

List of contents provided in JSON formats:

Usage

Examples using various languages on how display/integrate the data.

PHP
$file = file_get_contents("./src/country-by-capital-city.json");

foreach (json_decode($file, true) as $key => $value) {
  var_dump($value); // { country: 'Afghanistan', city: 'Kabul' ..}
}
Node.js
var cities = require('./src/country-by-capital-city.json')

console.log(cities[0]); // { country: 'Afghanistan', city: 'Kabul' }
Ruby
require 'json'

file = File.read('./src/country-by-capital-city.json')
json = JSON.parse(file)

puts json[0] # {"country"=>"Afghanistan", "city"=>"Kabul"}
Python
import yaml

with open('./src/country-by-capital-city.json') as json_file:
    for line in yaml.safe_load(json_file):
        print line # {'country': 'Afghanistan', 'city': 'Kabul'}
Golang
package main

import (
  "encoding/json"
  "fmt"
  "io/ioutil"
)

func main() {
  data, err := ioutil.ReadFile("path/to/country-by-capital-city.json")
  if err != nil {
    panic(err)
  }

  var entries []struct{ Country, City string }
  if err = json.Unmarshal(data, &entries); err != nil {
    panic(err)
  }

  for _, entry := range entries {
    fmt.Println(entry.Country, entry.City)  # {'country': 'Afghanistan', 'city': 'Kabul'}
  }
}

Contribution

Feel free to send a PR to fix, update or add new entry anytime. For non-minor changes (ex: country: name, language, city, independence date..), please include a source, if possible.

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].