Git Product home page Git Product logo

arellanojv / select-philippines-address Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isaacdarcilla/select-philippines-address

1.0 1.0 0.0 2.23 MB

๐Ÿ“ Filter addresses in the Philippines base on selected location. Select region, province, city and barangay locations in the Philippines.

Home Page: https://www.npmjs.com/package/select-philippines-address

JavaScript 100.00%

select-philippines-address's Introduction

Select addresses in the Philippines using HTML select base on address codes.

js-standard-style npm version codecov

- โœจ Demo Deployed at Vercel

React JS

Deploy with Vercel

Vue JS

Deploy with Vercel

- โœจ Installation

npm i select-philippines-address --save

- โœจ Usage
import {
    regions,
    provinces,
    cities,
    barangays,
} from "select-philippines-address";

regions().then((region) => console.log(region));
regionByCode("01").then((region) => console.log(region.region_name));
provinces("01").then((province) => console.log(province));
provincesByCode("01").then((province) => console.log(province));
provinceByName("Rizal").then((province) => console.log(province.province_code));
cities("0128").then((city) => console.log(city));
barangays("052011").then((barangays) => console.log(barangays));
  • regions() - has no parameter which returns all regions.
  • regionByCode() - has 1 parameter region_code which returns a region.
  • provinces() - has 1 parameter region_code which returns provinces in that region.
  • provincesByCode() - has 1 parameter region_code which returns provinces in that region.
  • provinceByName() - has 1 parameter province_name which returns province.
  • cities() - has 1 parameter province_code which returns cities in that province.
  • barangays() - has 1 parameter city_code which returns barangays in that city.
- โœจ Screenshot
React JS Vue JS
App App

๐Ÿ”— NPM Link

https://www.npmjs.com/package/select-philippines-address

๐Ÿ‘จโ€๐Ÿ’ป Source Code.

Please fork or star for support

๐Ÿ”– License

Apache-2.0

๐Ÿš€ Contributors

Isaac Arcilla
LA Colinares

select-philippines-address's People

Contributors

isaacdarcilla avatar

Stargazers

 avatar

Watchers

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