vietnamese-provinces-database
A comprehensive SQL and GIS dataset covering Vietnamese administrative divisions (34 provinces, districts, wards, and regions). Provides multi-database support (PostgreSQL, MySQL, SQL Server, Oracle) with schema, data import scripts, and geospatial boundaries synchronized to official Vietnamese government decrees.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | thanglequoc/vietnamese-provinces-database |
| Owner | thanglequoc |
| Primary language | PLpgSQL |
| License | MIT — OSI-approved |
| Stars | 1.7k |
| Forks | 397 |
| Open issues | 6 |
| Latest release | v4.0.0 (2026-06-21) |
| Last updated | 2026-07-05 |
| Source | https://github.com/thanglequoc/vietnamese-provinces-database |
What vietnamese-provinces-database is
PLpgSQL-based administrative reference database with normalized schema (administrative_regions, administrative_units, provinces, wards tables), English/Vietnamese naming, code slugs, and GIS dataset add-on (v4.0.0). Tracks compliance with Vietnamese government decrees via versioned releases and includes multi-DBMS deployment scripts.
Get the vietnamese-provinces-database source
Clone the repository and explore it locally.
git clone https://github.com/thanglequoc/vietnamese-provinces-database.gitcd vietnamese-provinces-database# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Select appropriate SQL script (PostgreSQL, MySQL, SQL Server, or Oracle) from corresponding directory before database creation. Execution order matters: CreateTable first, then ImportData.
- Normalize application queries to use code-based lookups (code_name, code_name_en, administrative_unit_id) for stability across dataset updates and to filter by administrative tier.
- Track decree versions and release notes; plan for periodic data refreshes when new decrees take effect. v3.1.0+ reflects 30/2026/QH16 decree (effective 2026-04-30).
- GIS dataset (v4.0.0+) requires compatible spatial query libraries (PostGIS for PostgreSQL); validate vector/raster format compatibility with application stack.
- Mirror or freeze release version in production; do not auto-pull latest if regulatory alignment to specific decree date is contractual.
When to avoid it — and what to weigh
- Real-time Dynamic Administrative Changes — Data updates are release-driven (6 monthly cycles in 2024–2026) and aligned to government decree effective dates. Not suitable for sub-decree-cycle real-time updates.
- Offline-First Mobile or Low-Bandwidth Use — Database approach requires SQL engine; no lightweight JSON/CSV export files documented in README. Consider CSV alternatives if offline sync is critical.
- Cross-Border or Multi-Country Administrative Systems — Data is Vietnam-specific. Projects requiring multi-nation administrative hierarchies should not rely solely on this dataset.
- Production Use Without Vendor Independence Review — Author explicitly disclaims affiliation with Vietnamese government or statistics office. Critical systems should independently verify decree compliance and data accuracy.
License & commercial use
Licensed under MIT License. Permissive OSI-approved license allowing use, modification, and distribution in proprietary and open-source contexts, with no warranty or liability. Include license text in distribution.
MIT License permits commercial use without royalty or attribution requirement. However, the dataset itself derives from Vietnamese government API and decree data; verify your jurisdiction's policy on repackaging government-sourced data for commercial product sale. The author disclaims affiliation with government, so independent legal review is recommended if reselling as primary product.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Adequate |
| License clarity | Clear |
| Deployment complexity | Moderate |
| DEV.co fit | Good |
| Assessment confidence | High |
Dataset is read-only reference data; primary security concern is unauthorized modification of administrative hierarchy in production (prevent accidental or malicious schema updates). Use role-based database access control (read-only roles for application). No mention of data encryption, audit logging, or compliance certifications. Validate that decree-sourced data does not introduce geopolitical or territorial disputes in regulated jurisdictions.
Alternatives to consider
OpenStreetMap (OSM) + Nominatim
Free, global, community-maintained administrative boundaries. Lack Vietnamese-government decree synchronization but offer GIS coverage. Better for general geolocation; weaker for regulatory compliance.
Google Maps Geocoding API + Address Validation API
Managed, real-time, high availability. Charges per request; no local database deployment. Suitable for SaaS e-commerce; unsuitable for offline or cost-sensitive applications.
Geonames.org Vietnamese Data
Free, public-domain administrative reference. Lower accuracy for Vietnamese ward-level hierarchies and no decree versioning. Simpler CSV format for lightweight integrations.
Build on vietnamese-provinces-database with DEV.co software developers
Integrate a government-decree-synchronized, multi-database administrative hierarchy into your e-commerce, logistics, or GIS application. MIT licensed, active maintenance, comprehensive schema.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
vietnamese-provinces-database FAQ
Is the data current?
Can I use this in a commercial product?
Do I need PostGIS for the GIS dataset?
How do I handle a new government decree?
Custom software development services
Adopting vietnamese-provinces-database is usually one piece of a larger software development effort. As a software development agency, DEV.co provides software development services and web development expertise — pairing senior software developers and web developers with your team to design, build, and operate open-source databases software in production.
Deploy Vietnamese Admin Data Today
Integrate a government-decree-synchronized, multi-database administrative hierarchy into your e-commerce, logistics, or GIS application. MIT licensed, active maintenance, comprehensive schema.