All Projects → ogaston → utils-do

ogaston / utils-do

Licence: MIT license
utils-do is a javascript package that provides functionalities that'll easily help you to interact with Dominican Republic's data.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to utils-do

radar-sdk-android
Android SDK for Radar, the leading geofencing and location tracking platform
Stars: ✭ 57 (+216.67%)
Mutual labels:  geolocation
vue-geolocation
ask to your users their coordinates, and wrap them into a Promise
Stars: ✭ 88 (+388.89%)
Mutual labels:  geolocation
Frontend-Learning-Journey
Tutorials, definitions, frameworks and some of the projects i made when starting to learn frontend web developement
Stars: ✭ 28 (+55.56%)
Mutual labels:  geolocation
ipinfodb-php
PHP library to query free IPInfoDB API service.
Stars: ✭ 15 (-16.67%)
Mutual labels:  geolocation
ipinfo
A wrapper around the ipinfo.io services
Stars: ✭ 51 (+183.33%)
Mutual labels:  geolocation
cordova-plugin-radar
Cordova plugin for Radar, the leading geofencing and location tracking platform
Stars: ✭ 14 (-22.22%)
Mutual labels:  geolocation
GoGoCarto
This repo has been moved to https://gitlab.adullact.net/pixelhumain/GoGoCarto since 17/12/2018
Stars: ✭ 43 (+138.89%)
Mutual labels:  geolocation
totalopenstation
Total Open Station downloads and exports survey data from your total station
Stars: ✭ 51 (+183.33%)
Mutual labels:  geolocation
FSEC-VM
Backend logic implementation for Vulnerability Management System
Stars: ✭ 19 (+5.56%)
Mutual labels:  identification
ip2location-lua
Use IP2Location geolocation database to lookup the geolocation information with IP2Location Lua Package. It can be used to determine country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation, usage type, address type and IAB category that any IP address …
Stars: ✭ 14 (-22.22%)
Mutual labels:  geolocation
exploring-my-neighborhood
track all your moves and visualize them!
Stars: ✭ 16 (-11.11%)
Mutual labels:  geolocation
mmdb-server
mmdb-server is an open source fast API server to lookup IP addresses for their geographic location.
Stars: ✭ 69 (+283.33%)
Mutual labels:  geolocation
GeoLite.mmdb
MaxMind's GeoIP2 GeoLite2 Country, City, and ASN databases
Stars: ✭ 690 (+3733.33%)
Mutual labels:  geolocation
ip2location-piwik
Use IP2Location geolocation database to lookup for accurate visitor location in Matomo (Piwik) 3.x. It enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation, usage type, address type and IAB category that any IP address o…
Stars: ✭ 26 (+44.44%)
Mutual labels:  geolocation
rescue-me
Light-weight and minimalistic system for push-based location requests.
Stars: ✭ 13 (-27.78%)
Mutual labels:  geolocation
go
Official Golang client library for the ipdata API
Stars: ✭ 21 (+16.67%)
Mutual labels:  geolocation
pikaz-location
定位插件(限中国)
Stars: ✭ 78 (+333.33%)
Mutual labels:  geolocation
svelte-googlemaps
Svelte Google Maps Components
Stars: ✭ 62 (+244.44%)
Mutual labels:  geolocation
dialectID siam
Dialect identification using Siamese network
Stars: ✭ 15 (-16.67%)
Mutual labels:  identification
geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (+55.56%)
Mutual labels:  geolocation

Utils-DO is currently in beta. Expect more bugs than a final release.

Leer en Español

Documentation

🚀 Get started [ Documentations in progress ]

The Utils-DO, This small library is a handler and data source related to Dominican Republic.

We have Typescript Support now

Installation

$  npm i utils-do --save

Geo

This class is used as a source of geographic information of the country.

const { Geo } = require("utils-do");

const result = Geo.getProvincesByZone("cibao sur");

console.log(result); // [ 'La Vega', 'Monseñor Nouel', 'Sánchez Ramírez' ]

This method retrieve an array of the provinces located in that zone (sub-region)

API Reference

Method Description Return
getProvinces() Return an array of string with the name of each province string[]
getMunicipalitiesOf(provincesName) Search an return an object with the municipalities of a province as properties object or undefined
getMunicipalDistrictOf(province, municipality) Return the municipals district of a municipality of a province. string[] or undefined
getProvinceByMunicipality(municipality) Get the name of the provices where the municipality belong to. It return an array because the name of the municipality might be in two or more provinces. string[]
getProvinceByMunicipalDistrict(municipalDisctric) Get an object with the province and the municipality searched for the municipal district. {province: string, municipality: string}[]
getRegions() Get the macro-regions of the country. string[]
getRegionsAndZones() Get an object with each region with their respective zones. { [region]: string[] }[]
getProvincesByRegion(region) Get the provinces which belong to a region. string[]
getProvincesByZone() Get the provinces which belong to a zone. string[]

Validator

This class is used to handle and validate generic data like the IDE (Citizen identification or 'Cedula').

const { Validator } = require("utils-do");

const result = Validator.isAnIde("4022222222");

console.log(result); // true

Validator.formatToIde(4022222222); // "402-2222222-2"

These methods are used to handle the ID of the dominicans.

API Reference

Method Description Return
isAnIde(id) Validate if the value inserted is a valid dominican id boolean
formatToIde(id) Return the value formatted as a dominican id. string or undefined
isATel(tel) Return the municipals district of a municipality of a province. boolean
formatToTel(tel) Return the value formatted as a dominican tel number. string or undefined
isRNC(input) Validate if is a valid RNC. boolean
formatToRNC(rnc) Return the value formatted as a dominican RNC. string or undefined

Contributing

Contact me for help on growing up the repo, building and testing.

Please make your open a new issue / make your pull-request or send me an email.

Thanks

We would like to thank to anyone who use or contribute this repo.

License

This project uses the following license: MIT

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