Table of contents
Table of contents
Route | HTTP Method | Action |
---|---|---|
/waterpoints | GET | Return all water points. |
/waterpoints/closest/range/latitude/longitude | GET | Return water points at <range>km around the given location. |
Authentification is done through basic HTTP authentification.
Return all water points. Optional parameters can be passed to limit the number of results or specify the format of the output.
No parameter required.
output = [geojson|json|xml|csv]
Output format.
limit = <integer>
Number of results. Value must belong to [0, +∞[.
Return water points at <range>km around the given location. Optional parameters can be passed to limit the number of results or specify the format of the output. Specifying a limit will return the closest water points to the given location.
range = <decimal number>
Range of the search in kilometers. Value must belong to [0, +∞[.
latitude = <decimal number>
Latitude of the location. Value must belong to [-90, +90].
longitude = <decimal number>
Longitude of the location. Value must belong to [-180, +180].
output = [geojson|json|xml|csv]
Output format.
limit = <integer>
Number of results. Value must belong to [0, +∞[.
https://api.freetaps.earth/waterpoints?limit=20
https://api.freetaps.earth/waterpoints?limit=20&format=xml
https://api.freetaps.earth/waterpoints/closest/10/44.8455/-0.5749