Automatically exported from code.google.com/p/planningalerts
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

110 行
5.8 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 feeds</a>. GeoRSS can be used in almost most all web mapping APIs and desktop GIS software, and in services like <a href="http://mapufactu re.com">mapufacture</a> and <a href="http://pipes.yahoo.com/">Yahoo Pipes</a>.
  5. <p/>
  6. <p>
  7. Just want the raw data? You can also 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://www.planningalerts.com/api.php?call=postcode&postcode=sw98jx&area_size=l">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?lat=51.52277&lng=-0.067281&area_size=l">view example</a>
  63. <a href="http://www.planningalerts.com/api.php?lat=51.52277&lng=-0.067281&area_size=l">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?lat=51.52277&lng=-0.067281&area_size=l">view example</a>
  77. <a href="http://www.planningalerts.com/api.php?lat=51.52277&lng=-0.067281&area_size=l">view on a map</a>
  78. </p>
  79. </div>
  80. <!--Box-->
  81. <div class="apiitem">
  82. <h5>By 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_short_name</strong>=[some name]
  88. </code>
  89. <p class="apiexamples">
  90. <a href="http://www.planningalerts.com/api.php?lat=51.52277&lng=-0.067281&area_size=l">view example</a>
  91. <a href="http://www.planningalerts.com/api.php?lat=51.52277&lng=-0.067281&area_size=l">view on a map</a>
  92. </p>
  93. </div>
  94. <h4>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 hrref="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.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"}