Skip to content

Commit c33c75c

Browse files
authored
Update README.md
1 parent 8fd6923 commit c33c75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ We needed to develop and API that takes address in RAW format (input), and perfo
1313
- First of all we looked into serveal string matching algorithm, and decided to use the **Levenshtein distance Algorithm**.
1414
- The algorithm calculates the minimum number of single-character edits required to change one word into the other. Strings do not have to be the same length
1515
- After this, we solved the mispelling problem in fields by the use of **Fuzzy string matching** on fields that are standarized such as State, District.
16-
- Now at last in order to solve the problem of null/empty values in field, we decided to use the **PostOffice API** which fetches the information based on pincode. We can get information regarding state, district and locality.
16+
- Now at last in order to solve the problem of null/empty values in field, we decided to use the **Data Govt India Pincode API** which fetches the information based on pincode. We can get information regarding state, district and locality.
1717
- At last used **Regex** in each fields of address to trim the extra space as well as removal of special charcter such as (@,*) etc.
1818
- We returned the final formatted address as JSON object.
1919

@@ -64,7 +64,7 @@ $ node index.js
6464
### API Used
6565
Using an Open Source Indian Post api
6666

67-
**PostOffice Api:** GET https://api.postalpincode.in/pincode/{PINCODE}
67+
**Data Govt India Pincode Api:**: https://data.gov.in/resources/all-india-pincode-directory-along-contact-details
6868

6969

7070
### Mentions

0 commit comments

Comments
 (0)