Returns a list of food share points close to a given location
GET
/api/foodSharePoints/nearbyIf the location is not valid, the user's home location is used. The distance is measured in kilometers.
Authorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Query Parameters
lat
Typestring
lon
Typestring
distance
Typestring
Responses
Success
Authorization
api_key
Variables
Key
Value
lat
lon
distance
cURL
curl -X GET \
'http://localhost/api/foodSharePoints/nearby'
Samples
cURL
curl -X GET http://localhost/api/foodSharePoints/nearby
JavaScript
fetch("http://localhost/api/foodSharePoints/nearby")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/foodSharePoints/nearby");
Python
import requests
response = requests.get("http://localhost/api/foodSharePoints/nearby")
print(response.json())