haruboring / address-complete-divide-api Goto Github PK
View Code? Open in Web Editor NEWAPI to complete and divide address
Home Page: https://address-complete-divide-web.vercel.app/
API to complete and divide address
Home Page: https://address-complete-divide-web.vercel.app/
Is your feature request related to a problem? Please describe.
郵便番号から住所情報を保管するAPIを毎回叩いているが、速度的に少し問題があるため、自前で郵便番号→住所情報のデータベースを作成し、そこからデータを抜き取ることによって補完を行う形式に変更し、確認を行う。
Describe the solution you'd like
MySQLとかではなく、非構造化データベースのNoSQLとか使う方が速度的には優位(なはず)
Describe alternatives you've considered
現状維持
Is your feature request related to a problem? Please describe.
テストが存在していない
Describe the solution you'd like
単体テストを追加する
Additional context
コードレビューを受けていないため、実装に誤りがあることも大いに想定される。
よってテストを網羅的に行い、バグを発見・修正できるメリットもある。
Is your feature request related to a problem? Please describe.
郵便番号が空の時や、形式が郵便番号に適していない時も外部APIを叩くと無駄な処理時間が発生し、効率が悪い。
Describe the solution you'd like
郵便番号が妥当かどうかを判断する(bool型を返す)関数を追加する。
Is your feature request related to a problem? Please describe.
外部APIを叩く際に有効な郵便番号として、111-1111
や、1111111
という形式があるが、1111111
や111ー1111
などはおそらく無効な郵便番号となる。(確認すること)
Describe the solution you'd like
郵便番号を正規化する関数をAPIを叩く前に挟む
Describe the bug
空文字の住所を検索するとエラーが起きるので、
formatted_zipcodeが空文字の時にget-itemしないように変更する
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.