Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.