Automatically exported from code.google.com/p/planningalerts
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

110 行
6.4 KiB

  1. {include file="header.tpl"}
  2. <h3>PlanningAlerts.com API</h3>
  3. <p>
  4. Planning application data is available programmatically as <a href="http://georss.org/">GeoRSS</a> feeds which can be used in most web mapping APIs and desktop GIS software like <a href="http://mapufacture.com">mapufacture</a> and <a href="http://pipes.yahoo.com/">Yahoo Pipes</a>. Details of the API are listed below.
  5. <p/>
  6. <p>
  7. Just want the raw data instead? You can download it <a href="http://www.planningalerts.com/backup.gz">here</a>. (gzipped mysql database dump with all user information removed).
  8. </p>
  9. <h4>API documentation</h4>
  10. <!--Postcode-->
  11. <div class="apiitem">
  12. <h5>Single Location by postcode</h5>
  13. <p class="apidefinition">
  14. Return applications near a given postcode. The area included is a square either 400m (s), 800m (m) or 4000m (l) with the postcode at it's center.
  15. </p>
  16. <code>
  17. http://www.planningalerts.com/api.php?<strong>call</strong>=postcode<br/>&<strong>postcode</strong>=[some postcode]&<strong>area_size</strong>=['s' 'm' or 'l']</em>
  18. </code>
  19. <p class="apiexamples">
  20. <a href="http://www.planningalerts.com/api.php?call=postcode&postcode=sw98jx&area_size=l">view example</a>
  21. <a href="http://maps.google.com/maps?f=q&hl=en&q=http://www.planningalerts.com/api.php%3Flat%3D51.52277%26lng%3D-0.067281%26area_size%3Dl&layer=&ie=UTF8&z=13&om=1">view on a map</a>
  22. </p>
  23. </div>
  24. <!--Single-->
  25. <div class="apiitem">
  26. <h5>Single Location by longitude/latitude</h5>
  27. <p class="apidefinition">
  28. Return applications near a given longitude/latitude. The area included is a square either 400m (s), 800m (m) or 4000m (l) with the longitude/latitude at it's center.
  29. </p>
  30. <code>
  31. http://www.planningalerts.com/api.php?<strong>call</strong>=point<br/>&<strong>lat</strong>=[some latitude]&<strong>lng</strong>=[some longitude]<strong>area_size</strong>=['s' 'm' or 'l']
  32. </code>
  33. <p class="apiexamples">
  34. <a href="http://www.planningalerts.com/api.php?call=point&lat=51.52277&lng=-0.067281&area_size=l">view example</a>
  35. <a href="http://maps.google.com/maps?f=q&hl=en&q=http://www.planningalerts.com/api.php%3Fcall%3Dpoint%26lat%3D51.52277%26lng%3D-0.067281%26area_size%3Dl&layer=&ie=UTF8&z=13&om=1">view on a map</a>
  36. </p>
  37. </div>
  38. <!--Single-->
  39. <div class="apiitem">
  40. <h5>Single Location by OSGB</h5>
  41. <p class="apidefinition">
  42. Return applications near a given longitude/latitude. The area included is a square either 400m (s), 800m (m) or 4000m (l) with the OSGB point at it's center.
  43. </p>
  44. <code>
  45. http://www.planningalerts.com/api.php?<strong>call</strong>=pointos<br/>&<strong>easting</strong>=[some easting]&<strong>northing</strong>=[some northing]<strong>area_size</strong>=['s' 'm' or 'l']
  46. </code>
  47. <p class="apiexamples">
  48. <a href="http://www.planningalerts.com/api.php?call=pointos&easting=383480&northing=398000&area_size=m">view example</a>
  49. <a href="http://maps.google.com/maps?f=q&hl=en&q=http://www.planningalerts.com/api.php%3Fcall%3Dpointos%26easting%3D383480%26northing%3D398000%26area_size%3Dm&layer=&ie=UTF8&z=15&om=1">view on a map</a>
  50. </p>
  51. </div>
  52. <!--Box OSGB-->
  53. <div class="apiitem">
  54. <h5>Area by longitude/latitude</h5>
  55. <p class="apidefinition">
  56. Return applications within a rectangle defined by longitude/latitude.
  57. </p>
  58. <code>
  59. http://www.planningalerts.com/api.php?<strong>call</strong>=area<br/>&<strong>bottom_left_lat</strong>=[some latitude]&<strong>bottom_left_lng</strong>=[some longitude]&<strong>top_right_lat</strong>=[some latitude]&<strong>top_right_lng</strong>=[some longitude]
  60. </code>
  61. <p class="apiexamples">
  62. <a href="http://www.planningalerts.com/api.php?call=area&bottom_left_lat=51.52277&bottom_left_lng=-0.067281&top_right_lat=52.52277&top_right_lng=15">view example</a>
  63. <a href="http://maps.google.com/maps?f=q&hl=en&q=http://www.planningalerts.com/api.php%3Fcall%3Darea%26bottom_left_lat%3D51.52277%26bottom_left_lng%3D-0.067281%26top_right_lat%3D52.52277%26top_right_lng%3D15&layer=&ie=UTF8&z=8&om=1">view on a map</a>
  64. </p>
  65. </div>
  66. <!--Box-->
  67. <div class="apiitem">
  68. <h5>Area by OSGB</h5>
  69. <p class="apidefinition">
  70. Return applications within a rectangle defined by OSGB coordinates.
  71. </p>
  72. <code>
  73. http://www.planningalerts.com/api.php?<strong>call</strong>=areaos<br/>&<strong>bottom_left_easting</strong>=[some easting]&<strong>bottom_left_northing</strong>=[some northing]&<strong>top_right_easting</strong>=[some easting]&<strong>top_right_northing</strong>=[some northing]
  74. </code>
  75. <p class="apiexamples">
  76. <a href="http://www.planningalerts.com/api.php?call=areaos&bottom_left_easting=373480&bottom_left_northing=388000&top_right_easting=403480&top_right_northing=408000">view example</a>
  77. <a href="http://maps.google.com/maps?f=q&hl=en&q=http://www.planningalerts.com/api.php%3Fcall%3Dareaos%26bottom_left_easting%3D373480%26bottom_left_northing%3D388000%26top_right_easting%3D403480%26top_right_northing%3D408000&layer=&ie=UTF8&z=11&om=1">view on a map</a>
  78. </p>
  79. </div>
  80. <!--Box-->
  81. <div class="apiitem">
  82. <h5>Planning authority</h5>
  83. <p class="apidefinition">
  84. Return applications for a specific planning authority (e.g. a local council) by authority short name.
  85. </p>
  86. <code>
  87. http://www.planningalerts.com/api.php?<strong>call</strong>=authority<br/>&<strong>authority</strong>=[some name]
  88. </code>
  89. <p class="apiexamples">
  90. <a href="http://www.planningalerts.com/api.php?call=authority&authority=Scottish%20Borders">view example</a>
  91. <a href="http://maps.google.com/maps?f=q&hl=en&q=http://www.planningalerts.com/api.php%3Fcall%3Dauthority%26authority%3DScottish%2520Borders&layer=&ie=UTF8&z=8&om=1">view on a map</a>
  92. </p>
  93. </div>
  94. <h4 id="hLicenseInfo">License information</h4>
  95. <p>
  96. Both the <a href="http://www.planningalerts.com/backup.gz"> raw data</a> and data via the api are licensed under the <a href="http://creativecommons.org/licenses/by-nc/3.0/">Creative Commons Attribution-Noncommercial 3.0 license</a>. The license granted in relation to the 'Work' should be read broadly to relate not only copyright but all other IP rights present in this dataset including, for example, any Database rights.
  97. </p>
  98. {include file="footer.tpl"}