Update city search to return district/locality string suggestions
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s

This commit is contained in:
androidlover5842
2026-02-07 22:20:48 +05:30
parent c5dc32d9af
commit e15c72a159
3 changed files with 118 additions and 10 deletions

View File

@@ -128,8 +128,11 @@ AUTH + SYSTEM APIS
What it does:
- Searches city names by prefix from local pincode directory table.
- Returns unique city + state rows only.
- Searches district and locality names by prefix from local pincode directory table.
- Returns a JSON array of unique strings in this format: "NAME, STATE".
- District matches are ranked first.
- If district matches exist, locality results from those districts are also included.
- Locality suffixes like H.O / S.O / B.O are trimmed in output.
- Uses local DB only (no external API call in this endpoint).
Request body: