DataOmbudsman / country-graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Country Contiguity Graph

An interactive visualization that shows how the countries of the world are connected to each other via land borders.

Data

There are two data files to be found in data, both scraped from Wikipedia (List of countries and territories by land borders, List of sovereign states and dependent territories by continent) with Python scripts stored in scripts.

  • data/neighbors_of_countries.json contains the list of neighbors for each country. Neighbor information contains the name of the neighbor and the length of the common land border (in km) in the form of "Finland": {"Norway": 736, "Sweden": 614, Russia": 1340}.
  • data/nodes_and_links.json is a processed form of the previous file, directly feeding the graph.
    Under key nodes, a list of country information is provided. Country information is in the form of {"name": "Hungary", "neighbor_count": 7, "continents": ["Europe"]}.
    Under key links, a list of border information is provided. Border information is in the form of {"source": "Albania", "target": "Greece", "border": 282}.

About

License:Other


Languages

Language:HTML 98.9%Language:Python 0.7%Language:JavaScript 0.3%Language:CSS 0.0%