WhatsApp · JSON Structure

Whatsapp Cloud Api Location Message Structure

LocationMessage from WhatsApp API

Type: object Properties: 4 Required: 2

LocationMessage is a JSON Structure definition published by WhatsApp, describing 4 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

latitude longitude name address

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/whatsapp/refs/heads/main/json-structure/whatsapp-cloud-api-location-message-structure.json",
  "name": "LocationMessage",
  "description": "LocationMessage from WhatsApp API",
  "type": "object",
  "properties": {
    "latitude": {
      "type": "double",
      "minimum": -90,
      "maximum": 90,
      "example": 42.5
    },
    "longitude": {
      "type": "double",
      "minimum": -180,
      "maximum": 180,
      "example": 42.5
    },
    "name": {
      "type": "string",
      "description": "Location name",
      "example": "Example Business"
    },
    "address": {
      "type": "string",
      "description": "Location address",
      "example": "example_value"
    }
  },
  "required": [
    "latitude",
    "longitude"
  ]
}