All Projects → flores-jacob → philippine-regions-provinces-cities-municipalities-barangays

flores-jacob / philippine-regions-provinces-cities-municipalities-barangays

Licence: MIT license
List of Philippine regions, provinces, cities, municipalities, and their barangays as of the 2019 national elections

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to philippine-regions-provinces-cities-municipalities-barangays

ir-city-select
List of Iran provinces and cities to use in HTML forms. ( ~2.3KB gzipped )
Stars: ✭ 22 (-73.49%)
Mutual labels:  province, cities
transparencia-dados-abertos-brasil
A survey of Brazilian states' and municipalities' transparency and open data portals, as well as institutional websites, obtained from several public data sources. 🇧🇷 Levantamento de portais estaduais e municipais de transparência e dados abertos, bem como os portais institucionais, obtido a partir de diversas fontes públicas de dados.
Stars: ✭ 46 (-44.58%)
Mutual labels:  municipalities
wp-proudcity
The ProudCity WordPress platform
Stars: ✭ 22 (-73.49%)
Mutual labels:  municipalities
china regions
Ruby Library for China Regions
Stars: ✭ 23 (-72.29%)
Mutual labels:  cities
tryingtowork
A collection of free spaces to work online
Stars: ✭ 78 (-6.02%)
Mutual labels:  cities
rafagas
Daily geospatial links curated by Raf Roset
Stars: ✭ 17 (-79.52%)
Mutual labels:  cities
geo-sql-database
Continents, Sub-Continents, Countries, States, Cities, Timezones, Currencies SQL database.
Stars: ✭ 30 (-63.86%)
Mutual labels:  cities
city-codes
Brazilian city names and official codes, IBGE, LexML and others
Stars: ✭ 39 (-53.01%)
Mutual labels:  cities
typhoon-iran-cities
A Laravel package for importing regions of Iran such as provinces, counties, sectors, cities, city districts, rural districts, and villages of Iran into your database accurately. پکیج لاراول برای افزودن شهرها و استان ها و تمام مناطق روستایی و بخش های ایران
Stars: ✭ 31 (-62.65%)
Mutual labels:  cities
dvhcvn
Bộ dữ liệu các đơn vị hành chính Việt Nam (3 cấp)
Stars: ✭ 84 (+1.2%)
Mutual labels:  cities
top-regional-repositories
🌍 The most-relevant repositories for all countries and many cities worldwide.
Stars: ✭ 18 (-78.31%)
Mutual labels:  cities
world
A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
Stars: ✭ 479 (+477.11%)
Mutual labels:  cities
countriesNowAPI
CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
Stars: ✭ 78 (-6.02%)
Mutual labels:  cities
Weather
Weather Android App using apixu API https://www.apixu.com
Stars: ✭ 48 (-42.17%)
Mutual labels:  cities
China CoronaVirus Data Miner
Collects officially published daily stats for the corona-virus (China only) 收集新冠状病毒中国每日疫情数据,精确到地级
Stars: ✭ 24 (-71.08%)
Mutual labels:  province
Comuni-Italiani-2018-Sql-Json-excel
DATABASE dei COMUNI ITALIANI 2018 PROVINCE, REGIONI, COMUNI CON CAP e COORDINATE GEOGRAFICHE
Stars: ✭ 87 (+4.82%)
Mutual labels:  municipalities
Administrative Divisions Of China
中华人民共和国行政区划:省级(省份直辖市自治区)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会) ,中国省市区镇村二级三级四级五级联动地址数据。
Stars: ✭ 11,727 (+14028.92%)
Mutual labels:  province
administrative-divisions-of-China-on-Python
中华人民共和国行政区划爬虫,分为省级、地级、县级、乡级、村级,最多五级连动,可通过本项目自行爬取数据也可使用本项目在线接口直接调用。
Stars: ✭ 91 (+9.64%)
Mutual labels:  province
Citypicker
citypicker城市选择器,详细的省市区地址信息,支持仿iOS滚轮实现,仿京东样式,一级或者三级列表展示方式。
Stars: ✭ 3,057 (+3583.13%)
Mutual labels:  province
oracle-geo-data
demo.insum.ca/ords/f?p=131
Stars: ✭ 20 (-75.9%)
Mutual labels:  cities

List of Philippine Regions, Provinces, Cities, Municipalities, and Barangays

Download

Get the version 4(2019v2) file here: philippine_provinces_cities_municipalities_and_barangays_2019v2.json

How to use, and notes on format

The file is in json format, and should be accessible to most languages. For python users, it can be loaded using the json library.

import json
with open("/path/to/file/philippine_provinces_cities_municipalities_and_barangays_2019v2.json") as myjsonfile:
    mydata = json.load(myjsonfile)  

An overview of the structure:
structure

Region keys are of the string values "01", "02", "03", "4A", "4B, "05", "06", "07", "08", "09", "10", "11", "12", "13", "BARMM", "CAR", "NCR", (including "NIR" for version 2, and ARMM for version 3 and 3.1).

  1. Each region has the following properties:

    1. A "region_name" property which maps to a string
      • example: "region_name": "REGION XIII"
    2. A "province_list" property which maps to a dictionary that has the province name in all caps as the keys
      • example: "province_list": { BATANGAS:{ ... }, "CAVITE":{ ... }, ... }
  2. Each province has the following property:

    1. A "municipality_list" which maps to a dictionary containing municipality names in all caps as the keys
      • example: "municipality_list": { "BACOLOD CITY": { ... }, "BAGO CITY": { ... }, "BINALBAGAN" { ... }, ...}
  3. Each municipality has the following property:

    1. A "barangay_list" which maps to a list containing the barangay names
      • example: "barangay_list": ["AMPUCAO", "DALUPIRIP", "GUMATDANG", ...]

What is this?

This is a nested list of Philippine regions, provinces, cities/municipalities and barangays in json format.

Why?

Getting an authoritative list of Philippine geographical areas can be pretty tedious and challenging.

Is this accurate?

Short answer: Yes, it is accurate.

Long answer:

  • It was definitely accurate as of 13 May 2019, the date of the 2019 Philippine elections. Or at least, it was as accurate as the COMELEC records for that election.
  • The only warning we have for this resource is that if any municipalities or barangays have either been created, renamed, moved, or destroyed since the 2019 elections, such changes would not be reflected on this resource. If you know of any such changes, please file an issue, or better yet, make a pull request, so that we can have it fixed.

Any changes from the version 3 file I should know about?

Several municipalities have been renamed, some barangays have been moved, and some barangays not present in the previous version have been introduced. ARMM has also been changed to BARMM. Running a diff between the properly formatted version 3.1 (2017) and version 4 (May 15, 2019v1) (prior to the correction of Ñ characters on July 29, 2019), should show which portions have changed (there should be around 14 material differences).

So which version should I get?

Get the version 4 (2019v2) file. philippine_provinces_cities_municipalities_and_barangays_2019v2.json

I've spotted some inaccuracies!

Please file an issue or make a pull request. I can also be reached at the email address associated with this github account.

Obligatory disclaimer

Data is provided as is and without guarantees. It should however be fairly accurate, as it is based on the 2019 Comelec election data.

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].