locations
GET /api/v1/locations/nearby
Changed onReturn locations within a given radius of a center point. Results are ordered by distance (closest first), then by id. Each result includes a computed distance_km field.
Request
- Base URLhttps://prices.openfoodfacts.org (the document declares no server; this is the origin it was published from)
- URLhttps://prices.openfoodfacts.org/api/v1/locations/nearby
- Authnone declared
Query parameters
latnumber float required
Latitude of the center point (decimal degrees, -90 to 90)
lonnumber float required
Longitude of the center point (decimal degrees, -180 to 180)
pageinteger
A page number within the paginated result set.
radius_kmnumber float required
Search radius in kilometers (must be positive)
sizeinteger
Number of results to return per page.
Response
Example response
{
"page": 1,
"pages": 16,
"size": 100,
"total": 1531
}Changes
- info
added the optional property
//to the response with the status
- info
- info
added the optional property
//to the response with the status
- info