Skip to content
HALOWERK

Economic Statistics

staple distance compare

Compare access to a staple returns the nearest mapped seller distance from each point and which point is closer. Use it when an agent needs evidence for a local food shopping trip.

POST https://stat.halowerk.com/v1/staple-distance-compare

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
latnumberYes
lonnumberYes
radius_kmnumberNo
snapshotSee schemaNo
other_latnumberYes
other_lonnumberYes
foodstringNo
Show full input schema
{
  "type": "object",
  "properties": {
    "lat": {
      "type": "number",
      "minimum": -84,
      "maximum": 84
    },
    "lon": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "radius_km": {
      "type": "number",
      "minimum": 0.2,
      "maximum": 25
    },
    "snapshot": {
      "enum": [
        "2026-11-26"
      ]
    },
    "other_lat": {
      "type": "number",
      "minimum": -84,
      "maximum": 84
    },
    "other_lon": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "food": {
      "type": "string",
      "enum": [
        "eggs",
        "milk",
        "cheese",
        "vegetables",
        "potatoes",
        "fruit",
        "meat",
        "honey",
        "juice",
        "preserves",
        "bread",
        "wine",
        "fish"
      ]
    }
  },
  "required": [
    "lat",
    "lon",
    "other_lat",
    "other_lon"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "lat": 50.364085,
  "lon": 7.642693,
  "radius_km": 8,
  "food": "eggs",
  "other_lat": 50.389085,
  "other_lon": 7.660693,
  "snapshot": "2026-11-26"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’