---
updatedAt: 2025-12-25T23:22:01.000Z
agentTools:
  projectIndex: https://integrate.route4me.com/llms.txt
---

# Get Location Service-Time Heatmap

Get a location service-time heatmap. This endpoint retrieves detailed information with location details such as coordinates, address, and metadata.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "5.0-oas3",
    "title": "Route4Me Address Book API",
    "description": "Package for the Address Book API",
    "contact": {
      "name": "Route4Me",
      "url": "docs.route4me.com",
      "email": "support@route4me.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "description": "Prod",
      "url": "https://wh.route4me.com/modules/api/v5.0/address-book"
    }
  ],
  "security": [
    {
      "APIKeyQueryParam": []
    },
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/locations/service-time/heatmap": {
      "post": {
        "tags": [
          "Locations"
        ],
        "summary": "Get a location service-time heatmap",
        "description": "Get a location service-time heatmap",
        "operationId": "40abb4f0feb073683abc9382b310b2a5",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceTimeHeatmapRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationServiceTimeHeatmapCollection"
                }
              }
            }
          },
          "406": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "APIKeyQueryParam": {
        "type": "apiKey",
        "in": "query",
        "name": "api_key"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "ServiceTimeHeatmapRequest": {
        "title": "ServiceTimeHeatmapRequest",
        "description": "Get a location service-time heatmap",
        "properties": {
          "contact_id": {
            "type": "integer"
          },
          "location_id": {
            "type": "integer"
          },
          "metric_type_id": {
            "type": "integer",
            "default": 2,
            "enum": [
              1,
              2,
              3,
              4,
              5,
              6,
              7,
              8,
              9,
              10,
              11,
              12,
              13,
              14
            ]
          }
        },
        "type": "object",
        "oneOf": [
          {
            "required": [
              "contact_id"
            ]
          },
          {
            "required": [
              "location_id"
            ]
          }
        ]
      },
      "LocationServiceTimeHeatmapCollection": {
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocationServiceTimeHeatmapResource"
            }
          }
        },
        "type": "object"
      },
      "LocationServiceTimeHeatmapResource": {
        "properties": {
          "weekday": {
            "type": "integer"
          },
          "hour": {
            "type": "integer"
          },
          "value": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ErrorResponse": {
        "properties": {
          "status": {
            "type": "boolean"
          },
          "code": {
            "type": "integer"
          },
          "exit_code": {
            "type": "integer"
          },
          "error": {
            "type": "string"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "type": "object"
      },
      "ValidationErrorResponse": {
        "properties": {
          "status": {
            "type": "boolean"
          },
          "code": {
            "type": "integer"
          },
          "exit_code": {
            "type": "integer"
          },
          "error": {
            "type": "string"
          },
          "messages": {
            "properties": {
              "validated_property": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object"
          },
          "validation_errors": {
            "properties": {
              "validated_property": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      }
    }
  }
}
```