Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhinavs/pincodr
JSON Web Service for Indian Pincodes
https://github.com/abhinavs/pincodr
Last synced: about 2 months ago
JSON representation
JSON Web Service for Indian Pincodes
- Host: GitHub
- URL: https://github.com/abhinavs/pincodr
- Owner: abhinavs
- License: mit
- Created: 2012-11-22T14:33:31.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-04-12T06:04:39.000Z (over 1 year ago)
- Last Synced: 2024-05-02T00:17:05.492Z (8 months ago)
- Language: Ruby
- Size: 105 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pincodr
## web service for indian pincodes
Pincodr exposes following JSON web services
### GET /pin/:pin - search by pincode
GET http://pincodr.apiclabs.com/pin/462001
[{
"code": "462004",
"district": "Bhopal",
"name": "M.P. Vidhan Sabha",
"state": "Madhya Pradesh",
"tehsil": "Bhopal"
},
{
"code": "462004",
"district": "Bhopal",
"name": "Vallabh Bhawan",
"state": "Madhya Pradesh",
"tehsil": "Bhopal"
}]
### GET /area/:area - search by area
GET http://pincodr.apiclabs.com/area/pilani
[{
"code": "333031",
"district": "Jhujhunu",
"name": "Pilani",
"state": "Rajasthan",
"tehsil": "Chirawa"
}]
### GET /tehsil/:tehsil & GET /taluk/:taluk - search by tehsil/taluk
GET http://pincodr.apiclabs.com/tehsil/narsinghgarh
[{
"code": "465669",
"district": "Rajgarh",
"name": "Kotra",
"state": "Madhya Pradesh",
"tehsil": "Narsinghgarh"
},
{
"code": "465669",
"district": "Rajgarh",
"name": "Sonkatch",
"state": "Madhya Pradesh",
"tehsil": "Narsinghgarh"
}]
### GET /district/:district - search by district
GET http://pincodr.apiclabs.com/district/vidisha
[{
"code": "464228",
"district": "Vidisha",
"name": "Sironj",
"state": "Madhya Pradesh",
"tehsil": "Vidisha"
},
{
"code": "464001",
"district": "Vidisha",
"name": "Vidisha",
"state": "Madhya Pradesh",
"tehsil": "Vidisha"
}]
### GET /search/:value - code or name starts with value
GET http://pincodr.apiclabs.com/search/1220
[{
"code": "122004",
"district": "Gurgaon",
"name": "Sikanderpur",
"state": "Haryana",
"tehsil": "."
},
{
"code": "122001",
"district": "Gurgaon",
"name": "South City I",
"state": "Haryana",
"tehsil": "."
}]
JSONP support is available on any request via a simple callback query string parameter: ?callback=my\_callback\_name
contact: [abhinav][1] | [homepage][2] | [permalink][3]
[1]: http://twitter.com/abhinav "abhinav"
[2]: http://abhinav.co "homepage"
[3]: http://pincodr.apiclabs.com "Permalink to pincodr - web service for Indian pincodes"## Copyright
Copyright (c) 2012 Abhinav Saxena. See LICENSE for details.