KildareStreet API
getGeometry function
http://www.kildarestreet.com/api/getGeometry
Returns geometry information for constituencies.
This currently includes the latitude and longitude of the centre point of the bounding box of the constituency, its area in square metres, the bounding box itself and the number of parts in the polygon that makes up the constituency.
Arguments
- name (optional)
- Limit returned data to constituency name. If you wish to fetch geometry for a number of constituencies, better to just call getGeometry with no arguments and work through the list.
Example Response
<twfy> <centre_lat>52.204105461821</centre_lat> <centre_lon>0.12659823548615</centre_lon> <area>28775860</area> <min_lat>52.171543612943</min_lat> <max_lat>52.236635567414</max_lat> <min_lon>0.066543287124126</min_lon> <max_lon>0.18674084465674</max_lon> <parts>1</parts> </twfy>
Explorer
Try out this function without writing any code!