API for Areas
https://[host]/api/[area]/[year]/find?latitude=[lat]&longitude=[lon]&showall=[true/false]&format=[json/jsonp/xml]
- CMA: https://areapi.herokuapp.com/api/cma/1990/find?latitude=38.9907&longitude=-77.0261&format=json
- BTA: https://areapi.herokuapp.com/api/bta/1990/find?latitude=39.7294&longitude=-104.8319&format=xml
Parameter | Type | Description | Valid | Default | Required |
---|---|---|---|---|---|
area | string | Type of area. | cma, bta | N/A | required |
year | numeric | Date of data. | 1990, 2000, 2010 | N/A | required |
latitude | numeric | Latitude of a location. | -90 to 90 | N/A | required |
longitude | numeric | Longitude of a location. | -180 to 180 | N/A | required |
format | string | File format of output. | json, jsonp, xml | json | optional |
showall | boolean | Return multiple areas. | true, false | true | optional |