API Examples

Postcode details postcode

api.askthepigeon.com/postcode/
http://api.askthepigeon.com/postcode/SW1A2AA

            
api.askthepigeon.com/nearest-postcode/ /count/
http://api.askthepigeon.com/nearest-postcode/SW1A2AA/count/2

            

Nearby postcodes - Lat/Long input latitude longitude count

api.askthepigeon.com/nearest-postcode/lat/ /long/ /count/
http://api.askthepigeon.com/nearest-postcode/lat/51.50354/long/-0.127695/count/2

            
api.askthepigeon.com/convert/lat/ /long/
http://api.askthepigeon.com/convert/lat/51.50354/long/-0.127695

            
api.askthepigeon.com/convert/east/ /north/
http://api.askthepigeon.com/convert/east/529934.09/north/180004.99

            
api.askthepigeon.com/random-postcode
http://api.askthepigeon.com/random-postcode

            

Nearby transport stops latitude longitude count

api.askthepigeon.com/nearest-transport/all/lat/ /long/ /count/
http://api.askthepigeon.com/nearest-transport/all/lat/51.50354/long/-0.127695/count/2

            

Nearby transport stops - Rail latitude longitude count

api.askthepigeon.com/nearest-transport/rail/lat/ /long/ /count/
http://api.askthepigeon.com/nearest-transport/rail/lat/51.50354/long/-0.127695/count/2

            

Nearby transport stops - Air latitude longitude count

api.askthepigeon.com/nearest-transport/air/lat/ /long/ /count/
http://api.askthepigeon.com/nearest-transport/air/lat/51.50354/long/-0.127695/count/2

            

Nearby points of interest latitude longitude count

api.askthepigeon.com/nearest-poi/lat/ /long/ /count/
http://api.askthepigeon.com/nearest-poi/lat/51.50354/long/-0.127695/count/2

            
api.askthepigeon.com/land-use/
http://api.askthepigeon.com/land-use/SW1A2AA

            

Nearby recent crimes latitude longitude count

api.askthepigeon.com/nearest-crime/lat/ /long/ /count/
http://api.askthepigeon.com/nearest-crime/lat/51.50354/long/-0.127695/count/2