> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maple.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Check delivery zone coverage

> Checks whether a coordinate falls inside any active delivery zone of a connected location and returns the matching zone and delivery fee. Requires `delivery_zones:read` and an active connection to the location.



## OpenAPI

````yaml /openapi/developer-api.json post /locations/{locationId}/delivery_zones/check
openapi: 3.1.0
info:
  title: Maple Developer API
  version: 0.0.1
  description: >-
    Public API for POS and platform partners to integrate with Maple: granted
    locations and connections, the order loop (validation, notification,
    accept/deny, status updates), payment-link visibility, menu publishing, and
    HMAC-signed webhooks. Authenticate every request with a Bearer API key
    (`mpk_test_…` / `mpk_live_…`). The credential determines the environment:
    test-mode credentials only see test data, live-mode credentials only see
    live data.
servers:
  - url: https://api.maple.inc/v1
    description: Production
  - url: https://api.staging.maple.inc/v1
    description: Sandbox (development and testing)
security: []
tags:
  - name: General
    description: Service status and credential introspection.
  - name: Locations
    description: The restaurant locations your app has been granted access to.
  - name: Connections
    description: Become (or stop being) a granted location’s order receiver.
  - name: Menu
    description: Publish and read a connected location’s menu.
  - name: Delivery zones
    description: >-
      Manage a connected location’s delivery zones and check whether a
      coordinate is deliverable.
  - name: Orders
    description: 'The order loop: read orders, submit validation results, and decide orders.'
  - name: Bookings
    description: >-
      Bookings (rolling out per location): a location’s booking profile,
      availability, holds, bookings, venue verbs, configuration, and live floor.
  - name: Webhooks
    description: Event-type catalog, subscriptions, the event ledger, and replay.
paths:
  /locations/{locationId}/delivery_zones/check:
    post:
      tags:
        - Delivery zones
      summary: Check delivery zone coverage
      description: >-
        Checks whether a coordinate falls inside any active delivery zone of a
        connected location and returns the matching zone and delivery fee.
        Requires `delivery_zones:read` and an active connection to the location.
      operationId: developer-api.checkDeliveryZoneAddress
      parameters:
        - name: locationId
          in: path
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                latitude:
                  anyOf:
                    - anyOf:
                        - type: number
                        - type: string
                          enum:
                            - NaN
                        - type: string
                          enum:
                            - Infinity
                        - type: string
                          enum:
                            - '-Infinity'
                    - type: string
                      enum:
                        - Infinity
                        - '-Infinity'
                        - NaN
                longitude:
                  anyOf:
                    - anyOf:
                        - type: number
                        - type: string
                          enum:
                            - NaN
                        - type: string
                          enum:
                            - Infinity
                        - type: string
                          enum:
                            - '-Infinity'
                    - type: string
                      enum:
                        - Infinity
                        - '-Infinity'
                        - NaN
              required:
                - latitude
                - longitude
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                      - delivery_zone_check
                  in_zone:
                    type: boolean
                  zone:
                    anyOf:
                      - type: object
                        properties:
                          object:
                            type: string
                            enum:
                              - delivery_zone
                          id:
                            type: string
                          location_id:
                            type: string
                          name:
                            type: string
                          zone_type:
                            type: string
                            enum:
                              - polygon
                              - circle
                          polygon:
                            type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - Polygon
                              coordinates:
                                type: array
                                items:
                                  type: array
                                  items:
                                    type: array
                                    prefixItems:
                                      - anyOf:
                                          - anyOf:
                                              - type: number
                                              - type: string
                                                enum:
                                                  - NaN
                                              - type: string
                                                enum:
                                                  - Infinity
                                              - type: string
                                                enum:
                                                  - '-Infinity'
                                          - type: string
                                            enum:
                                              - Infinity
                                              - '-Infinity'
                                              - NaN
                                      - anyOf:
                                          - anyOf:
                                              - type: number
                                              - type: string
                                                enum:
                                                  - NaN
                                              - type: string
                                                enum:
                                                  - Infinity
                                              - type: string
                                                enum:
                                                  - '-Infinity'
                                          - type: string
                                            enum:
                                              - Infinity
                                              - '-Infinity'
                                              - NaN
                                    maxItems: 2
                                    minItems: 2
                            required:
                              - type
                              - coordinates
                            additionalProperties: false
                            description: >-
                              A GeoJSON Polygon. Coordinates are `[longitude,
                              latitude]` rings; the first ring must be closed.
                          radius_miles:
                            anyOf:
                              - anyOf:
                                  - anyOf:
                                      - type: number
                                      - type: string
                                        enum:
                                          - NaN
                                      - type: string
                                        enum:
                                          - Infinity
                                      - type: string
                                        enum:
                                          - '-Infinity'
                                  - type: string
                                    enum:
                                      - Infinity
                                      - '-Infinity'
                                      - NaN
                              - type: 'null'
                          delivery_fee_cents:
                            anyOf:
                              - anyOf:
                                  - type: number
                                  - type: string
                                    enum:
                                      - NaN
                                  - type: string
                                    enum:
                                      - Infinity
                                  - type: string
                                    enum:
                                      - '-Infinity'
                              - type: string
                                enum:
                                  - Infinity
                                  - '-Infinity'
                                  - NaN
                          min_order_cents:
                            anyOf:
                              - anyOf:
                                  - anyOf:
                                      - type: number
                                      - type: string
                                        enum:
                                          - NaN
                                      - type: string
                                        enum:
                                          - Infinity
                                      - type: string
                                        enum:
                                          - '-Infinity'
                                  - type: string
                                    enum:
                                      - Infinity
                                      - '-Infinity'
                                      - NaN
                              - type: 'null'
                          max_distance_miles:
                            anyOf:
                              - anyOf:
                                  - anyOf:
                                      - type: number
                                      - type: string
                                        enum:
                                          - NaN
                                      - type: string
                                        enum:
                                          - Infinity
                                      - type: string
                                        enum:
                                          - '-Infinity'
                                  - type: string
                                    enum:
                                      - Infinity
                                      - '-Infinity'
                                      - NaN
                              - type: 'null'
                          is_active:
                            type: boolean
                          priority:
                            anyOf:
                              - anyOf:
                                  - type: number
                                  - type: string
                                    enum:
                                      - NaN
                                  - type: string
                                    enum:
                                      - Infinity
                                  - type: string
                                    enum:
                                      - '-Infinity'
                              - type: string
                                enum:
                                  - Infinity
                                  - '-Infinity'
                                  - NaN
                          created_at:
                            type: string
                          updated_at:
                            type: string
                        required:
                          - object
                          - id
                          - location_id
                          - name
                          - zone_type
                          - polygon
                          - radius_miles
                          - delivery_fee_cents
                          - min_order_cents
                          - max_distance_miles
                          - is_active
                          - priority
                          - created_at
                          - updated_at
                        additionalProperties: false
                        description: >-
                          A delivery zone. `delivery_fee_cents` and
                          `min_order_cents` are integer USD cents; `created_at`
                          / `updated_at` are ISO 8601 timestamps.
                      - type: 'null'
                  delivery_fee_cents:
                    anyOf:
                      - anyOf:
                          - anyOf:
                              - type: number
                              - type: string
                                enum:
                                  - NaN
                              - type: string
                                enum:
                                  - Infinity
                              - type: string
                                enum:
                                  - '-Infinity'
                          - type: string
                            enum:
                              - Infinity
                              - '-Infinity'
                              - NaN
                      - type: 'null'
                required:
                  - object
                  - in_zone
                  - zone
                  - delivery_fee_cents
                additionalProperties: false
        '400':
          description: DeveloperApiBadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperApiBadRequest'
        '401':
          description: DeveloperApiUnauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperApiUnauthorized'
        '403':
          description: DeveloperApiForbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperApiForbidden'
        '404':
          description: DeveloperApiNotFound
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperApiNotFound'
        '429':
          description: DeveloperApiRateLimited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperApiRateLimited'
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying; also returned as retry_after in
                the body.
              schema:
                type: integer
                minimum: 1
      security:
        - bearer: []
components:
  schemas:
    DeveloperApiBadRequest:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - DeveloperApiBadRequest
        code:
          type: string
        message:
          type: string
      required:
        - _tag
        - message
      additionalProperties: false
    DeveloperApiUnauthorized:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - DeveloperApiUnauthorized
        message:
          type: string
      required:
        - _tag
        - message
      additionalProperties: false
    DeveloperApiForbidden:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - DeveloperApiForbidden
        code:
          type: string
          enum:
            - insufficient_scope
            - wrong_environment
        message:
          type: string
      required:
        - _tag
        - code
        - message
      additionalProperties: false
    DeveloperApiNotFound:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - DeveloperApiNotFound
        message:
          type: string
      required:
        - _tag
        - message
      additionalProperties: false
    DeveloperApiRateLimited:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - DeveloperApiRateLimited
        message:
          type: string
        retry_after:
          anyOf:
            - type: number
            - type: string
              enum:
                - NaN
            - type: string
              enum:
                - Infinity
            - type: string
              enum:
                - '-Infinity'
      required:
        - _tag
        - message
        - retry_after
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        API key — `mpk_test_…` for the sandbox, `mpk_live_…` for production.
        Issued by Maple during partner onboarding.

````