{"id":1159,"date":"2026-11-04T16:00:35","date_gmt":"2026-11-04T16:00:35","guid":{"rendered":"https:\/\/vectalk.com.br\/blog\/whatsapp-api-location-request\/"},"modified":"2026-11-04T16:00:40","modified_gmt":"2026-11-04T16:00:40","slug":"whatsapp-api-location-request","status":"publish","type":"post","link":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/","title":{"rendered":"How to request and receive a location with the WhatsApp API"},"content":{"rendered":"\n<p><em>Updated on November 4, 2026<\/em><\/p>\n\n\n\n<p>To request a location with the WhatsApp Business API, send an interactive message of type <code>location_request_message<\/code>, which shows a short text and a <strong>Send location<\/strong> button. When the customer shares, you get a <code>messages<\/code> webhook with <code>type: \"location\"<\/code>, latitude, longitude and, if the customer chooses, the place&#8217;s name and address. To send your store&#8217;s location, use a <code>type: \"location\"<\/code> message or a template with a map header.<\/p>\n\n\n\n<p>Below are the three payloads, the webhook format, a Python example that finds the nearest branch, and the privacy considerations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Three ways to work with location<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>What you want<\/th><th>Message type<\/th><th>When you can send it<\/th><\/tr><\/thead><tbody><tr><td>Ask for the customer&#8217;s location<\/td><td>Interactive <code>location_request_message<\/code><\/td><td>Inside the 24-hour window<\/td><\/tr><tr><td>Send a pin (store, pickup point)<\/td><td><code>type: \"location\"<\/code><\/td><td>Inside the 24-hour window<\/td><\/tr><tr><td>Send a pin outside the window (e.g. delivery notice)<\/td><td>Template with a <code>LOCATION<\/code> header (utility or marketing)<\/td><td>Any time, with an approved template<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The window rule applies to the whole <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-whatsapp-api\/\">official WhatsApp API<\/a>: free-form and interactive messages only within 24 hours of the customer&#8217;s last message; after that, templates only.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Request the customer&#8217;s location<\/h2>\n\n\n\n<p>The location request is an interactive message with body text and the <code>send_location<\/code> action:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  \"messaging_product\": \"whatsapp\",\n  \"recipient_type\": \"individual\",\n  \"to\": \"16505551234\",\n  \"type\": \"interactive\",\n  \"interactive\": {\n    \"type\": \"location_request_message\",\n    \"body\": {\n      \"text\": \"To quote delivery, tap *Send location* and share where you are. Or just type your address with ZIP code.\"\n    },\n    \"action\": {\n      \"name\": \"send_location\"\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>According to the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/location-request-messages\" target=\"_blank\" rel=\"noreferrer noopener\">location request messages documentation<\/a>, the body accepts up to <strong>1,024 characters<\/strong> and can include URLs. When the customer taps the button, WhatsApp opens its own location-sharing screen.<\/p>\n\n\n\n<p>Copy tip: always offer the option to type the address. Not every customer wants to (or can) share GPS, and people on desktop may struggle.<\/p>\n\n\n\n<p>Meta&#8217;s documentation also lists <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/templates\/utility-templates\/location-request-templates\" target=\"_blank\" rel=\"noreferrer noopener\">location request templates<\/a> in the utility templates section. Check the requirements on that page before using it outside the window.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What arrives in the webhook<\/h2>\n\n\n\n<p>When the customer shares, you get a <code>messages<\/code> webhook. If they were answering your request, there&#8217;s also a <code>context<\/code> pointing to the message you sent:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  \"object\": \"whatsapp_business_account\",\n  \"entry\": [{\n    \"id\": \"102290129340398\",\n    \"changes\": [{\n      \"field\": \"messages\",\n      \"value\": {\n        \"messaging_product\": \"whatsapp\",\n        \"metadata\": {\n          \"display_phone_number\": \"15550783881\",\n          \"phone_number_id\": \"106540352242922\"\n        },\n        \"contacts\": [{ \"profile\": { \"name\": \"Sarah\" }, \"wa_id\": \"16505551234\" }],\n        \"messages\": [{\n          \"context\": {\n            \"from\": \"15550783881\",\n            \"id\": \"wamid.HBgLMTY1MDU1NTEyMzQVAgARGBI1QjJGRjI1RDY0RkE4Nzg4QzcA\"\n          },\n          \"from\": \"16505551234\",\n          \"id\": \"wamid.HBgLMTY1MDU1NTEyMzQVAgASGBQzQTRCRDcwNzgzMTRDNTAwRTgwRQA=\",\n          \"timestamp\": \"1762250400\",\n          \"type\": \"location\",\n          \"location\": {\n            \"latitude\": 37.4419,\n            \"longitude\": -122.1430,\n            \"name\": \"Home\",\n            \"address\": \"123 Example St, Palo Alto, CA\"\n          }\n        }]\n      }\n    }]\n  }]\n}<\/code><\/pre>\n\n\n\n<p>Key fields:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Field<\/th><th>Type<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td><code>location.latitude<\/code> \/ <code>location.longitude<\/code><\/td><td>Number (decimal degrees)<\/td><td>Always present<\/td><\/tr><tr><td><code>location.name<\/code> \/ <code>location.address<\/code><\/td><td>String<\/td><td>Only if the customer chooses to share them<\/td><\/tr><tr><td><code>location.url<\/code><\/td><td>String<\/td><td>Usually only for business locations<\/td><\/tr><tr><td><code>context.id<\/code><\/td><td>String<\/td><td><code>wamid<\/code> of the request message the customer answered<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Source: <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/reference\/messages\/location\" target=\"_blank\" rel=\"noreferrer noopener\">location messages webhook reference<\/a>. The same webhook arrives when the customer sends a location on their own (no <code>context<\/code>) or through a Click to WhatsApp ad.<\/p>\n\n\n\n<p>Two things to watch in your code: latitude and longitude arrive as <strong>numbers<\/strong> in the webhook but are sent as <strong>strings<\/strong> when you send a location. And the documented webhook carries a single position, not continuous tracking: if the customer moves, you get no updates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Send your store&#8217;s location<\/h2>\n\n\n\n<p>To send a pin inside the customer service window:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  \"messaging_product\": \"whatsapp\",\n  \"recipient_type\": \"individual\",\n  \"to\": \"16505551234\",\n  \"type\": \"location\",\n  \"location\": {\n    \"latitude\": \"37.44216\",\n    \"longitude\": \"-122.16153\",\n    \"name\": \"Downtown Store\",\n    \"address\": \"101 Forest Ave, Palo Alto, CA 94301\"\n  }\n}<\/code><\/pre>\n\n\n\n<p>Latitude and longitude are required; <code>name<\/code> and <code>address<\/code> are optional but matter: without them the customer sees just a dot on a map. Source: <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/location-messages\" target=\"_blank\" rel=\"noreferrer noopener\">location messages<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Send a location outside the window: map templates<\/h2>\n\n\n\n<p>For notices like &#8220;your order is on its way, see the drop-off point&#8221;, use a template with a location header. According to the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/templates\/utility-templates\/location-templates\" target=\"_blank\" rel=\"noreferrer noopener\">location templates documentation<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>only <strong>utility<\/strong> or <strong>marketing<\/strong> templates can have a location header;<\/li>\n\n\n<li>latitude, longitude, name and address are set <strong>at send time<\/strong>, not at creation;<\/li>\n\n\n<li>real-time locations are not supported;<\/li>\n\n\n<li>the template supports a body (up to 1,024 characters), an optional footer (up to 60) and buttons.<\/li>\n\n<\/ul>\n\n\n\n<p>Create:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  \"name\": \"order_pickup_location\",\n  \"language\": \"en_US\",\n  \"category\": \"UTILITY\",\n  \"parameter_format\": \"named\",\n  \"components\": [\n    { \"type\": \"HEADER\", \"format\": \"LOCATION\" },\n    {\n      \"type\": \"BODY\",\n      \"text\": \"Hi {{name}}! Order {{order}} is ready for pickup at the location shown on the map above.\",\n      \"example\": {\n        \"body_text_named_params\": [\n          { \"param_name\": \"name\", \"example\": \"Sarah\" },\n          { \"param_name\": \"order\", \"example\": \"#4821\" }\n        ]\n      }\n    }\n  ]\n}<\/code><\/pre>\n\n\n\n<p>Send, with the coordinates in the <code>header<\/code> component:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-json\">{\n  \"messaging_product\": \"whatsapp\",\n  \"recipient_type\": \"individual\",\n  \"to\": \"16505551234\",\n  \"type\": \"template\",\n  \"template\": {\n    \"name\": \"order_pickup_location\",\n    \"language\": { \"code\": \"en_US\" },\n    \"components\": [\n      {\n        \"type\": \"header\",\n        \"parameters\": [{\n          \"type\": \"location\",\n          \"location\": {\n            \"latitude\": \"37.44216\",\n            \"longitude\": \"-122.16153\",\n            \"name\": \"Downtown Store\",\n            \"address\": \"101 Forest Ave, Palo Alto, CA 94301\"\n          }\n        }]\n      },\n      {\n        \"type\": \"body\",\n        \"parameters\": [\n          { \"type\": \"text\", \"parameter_name\": \"name\", \"text\": \"Sarah\" },\n          { \"type\": \"text\", \"parameter_name\": \"order\", \"text\": \"#4821\" }\n        ]\n      }\n    ]\n  }\n}<\/code><\/pre>\n\n\n\n<p>Keep in mind that since October 1, 2026, utility templates are billed even inside the customer service window (for recipients in Brazil, BRL 0.0350 per delivered message; other countries follow Meta&#8217;s rate card). Inside the window, a plain <code>type: \"location\"<\/code> message is usually the simpler option.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example: find the nearest branch (Python)<\/h2>\n\n\n\n<p>A common case: the customer shares their location and the bot replies with the closest store. The snippet below computes straight-line distance (Haversine formula) and replies with the pin:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-python\">import math, os, requests\n\nBASE = os.environ[\"WA_BASE_URL\"]  # e.g. https:\/\/graph.facebook.com\/v26.0\/&lt;PHONE_NUMBER_ID&gt;\nTOKEN = os.environ[\"WA_TOKEN\"]\n\nSTORES = [\n    {\"name\": \"Downtown Store\", \"lat\": 37.44216, \"lng\": -122.16153, \"addr\": \"101 Forest Ave, Palo Alto, CA\"},\n    {\"name\": \"South Store\", \"lat\": 37.39420, \"lng\": -122.07810, \"addr\": \"80 Sample Rd, Mountain View, CA\"},\n]\n\ndef distance_km(lat1, lng1, lat2, lng2):\n    r = 6371.0\n    p1, p2 = math.radians(lat1), math.radians(lat2)\n    dp, dl = math.radians(lat2 - lat1), math.radians(lng2 - lng1)\n    a = math.sin(dp \/ 2) ** 2 + math.cos(p1) * math.cos(p2) * math.sin(dl \/ 2) ** 2\n    return 2 * r * math.asin(math.sqrt(a))\n\ndef send(payload):\n    payload[\"messaging_product\"] = \"whatsapp\"\n    r = requests.post(f\"{BASE}\/messages\", json=payload,\n                      headers={\"Authorization\": f\"Bearer {TOKEN}\"}, timeout=15)\n    r.raise_for_status()\n    return r.json()\n\ndef handle_location(msg):\n    loc = msg[\"location\"]\n    store = min(STORES, key=lambda s: distance_km(loc[\"latitude\"], loc[\"longitude\"], s[\"lat\"], s[\"lng\"]))\n    km = distance_km(loc[\"latitude\"], loc[\"longitude\"], store[\"lat\"], store[\"lng\"])\n    send({\n        \"to\": msg[\"from\"],\n        \"type\": \"text\",\n        \"text\": {\"body\": f\"Your nearest branch is {store['name']}, about {km:.1f} km away in a straight line.\"},\n    })\n    send({\n        \"to\": msg[\"from\"],\n        \"type\": \"location\",\n        \"location\": {\"latitude\": str(store[\"lat\"]), \"longitude\": str(store[\"lng\"]),\n                     \"name\": store[\"name\"], \"address\": store[\"addr\"]},\n    })<\/code><\/pre>\n\n\n\n<p>Straight-line distance isn&#8217;t road distance. For delivery fees or ETAs, use a routing API from your maps provider. To build the server that receives the webhook, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-bot-python-fastapi\/\">WhatsApp bot with Python and FastAPI<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Use cases<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Food delivery:<\/strong> confirm the delivery address before closing the order and avoid &#8220;I can&#8217;t find your street&#8221;. More ideas in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-food-delivery-restaurants\/\">WhatsApp for food delivery and restaurants<\/a>.<\/li>\n\n\n<li><strong>Logistics:<\/strong> a map template for pickup points, and a location request when a delivery attempt fails. See <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-delivery-notifications\/\">delivery notifications<\/a>.<\/li>\n\n\n<li><strong>Field service (internet, HVAC, solar):<\/strong> the technician gets the exact spot, handy in rural areas or large gated communities.<\/li>\n\n\n<li><strong>Store or clinic networks:<\/strong> &#8220;which branch is closest?&#8221; answered with the right pin.<\/li>\n\n\n<li><strong>Pickups and rides:<\/strong> the customer shares the pickup point directly.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Privacy<\/h2>\n\n\n\n<p>A location is personal data and, combined with a phone number, identifies a person. If you serve customers in Brazil, the <a href=\"https:\/\/www.planalto.gov.br\/ccivil_03\/_ato2007-2010\/2018\/lei\/l13709.htm\" target=\"_blank\" rel=\"noreferrer noopener\">General Data Protection Law (LGPD, Law 13,709\/2018)<\/a> requires a defined purpose, necessity and transparency; other jurisdictions have similar rules (such as the GDPR in Europe). In practice: say why you need the location, keep only what the delivery or service requires, and set a retention period. This is not legal advice; consult a lawyer. More in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/lgpd-whatsapp-en\/\">LGPD and WhatsApp<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to do this with Vectalk<\/h2>\n\n\n\n<p>With Vectalk, payloads are Meta&#8217;s: swap the base URL for <code>https:\/\/apis.vectalk.com.br\/api<\/code> and use the token generated in the dashboard. The docs (in Portuguese) describe <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/messages\/send-location\">sending a location<\/a> via <code>POST \/api\/messages<\/code>, and forwarded webhooks are Meta&#8217;s own, with <code>type: \"location\"<\/code> and the <code>latitude<\/code> and <code>longitude<\/code> fields (see <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/webhooks\">Webhooks<\/a>). The interactive location request and the map template use the same messages endpoint, with the JSON shown above.<\/p>\n\n\n\n<p>Vectalk has no native inbox or bot: the &#8220;find the nearest store&#8221; logic runs in your system, which receives the webhook and replies through the API. <a href=\"https:\/\/apps.vectalk.com.br\/register\">Create your account<\/a> to try it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Can I ask for a location from someone who has never messaged me?<\/h3>\n\n\n\n<p>Not with the interactive message, which can only be sent inside the 24-hour window. Outside it, the message must be an approved template.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I track a customer&#8217;s location in real time?<\/h3>\n\n\n\n<p>The documented webhook carries one point (latitude and longitude) per message. For location templates, Meta states that real-time locations are not supported.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why didn&#8217;t the address come in the webhook?<\/h3>\n\n\n\n<p>The <code>name<\/code> and <code>address<\/code> fields only appear if the customer chooses to share them. Latitude and longitude always come. If you need a formatted address, use reverse geocoding from your maps provider.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does the location request work on WhatsApp Web?<\/h3>\n\n\n\n<p>The location request documentation doesn&#8217;t detail behavior per platform. To be safe, always offer the option to type the address.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is a map template utility or marketing?<\/h3>\n\n\n\n<p>It depends on the content. Meta accepts location headers in both categories: an order pickup notice is utility, while an invitation to visit your new store is marketing. See <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-template-categories\/\">how Meta categorizes templates<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Official sources consulted on November 4, 2026:<\/strong> <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/location-request-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Location request messages<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/location-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Location messages<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/reference\/messages\/location\" target=\"_blank\" rel=\"noreferrer noopener\">Location messages webhook reference<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/templates\/utility-templates\/location-templates\" target=\"_blank\" rel=\"noreferrer noopener\">Location templates (utility)<\/a>, <a href=\"https:\/\/www.planalto.gov.br\/ccivil_03\/_ato2007-2010\/2018\/lei\/l13709.htm\" target=\"_blank\" rel=\"noreferrer noopener\">Law 13,709\/2018 (LGPD)<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/api-reference\/messages\/send-location\">Vectalk: Send location<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/webhooks\">Vectalk: Webhooks<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ask for the customer&#8217;s location with the Send location button, read latitude and longitude in the webhook and send your store&#8217;s pin with the official WhatsApp API.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-1159","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WhatsApp API location request: send &amp; receive | Vectalk<\/title>\n<meta name=\"description\" content=\"WhatsApp API location request: ask for the customer&#039;s location with a button, read latitude and longitude in the webhook and send your store&#039;s pin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WhatsApp API location request: send &amp; receive | Vectalk\" \/>\n<meta property=\"og:description\" content=\"WhatsApp API location request: ask for the customer&#039;s location with a button, read latitude and longitude in the webhook and send your store&#039;s pin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Vectalk\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-04T16:00:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-04T16:00:40+00:00\" \/>\n<meta name=\"author\" content=\"wanderleyfcunha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wanderleyfcunha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/\"},\"author\":{\"name\":\"wanderleyfcunha\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"headline\":\"How to request and receive a location with the WhatsApp API\",\"datePublished\":\"2026-11-04T16:00:35+00:00\",\"dateModified\":\"2026-11-04T16:00:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/\"},\"wordCount\":1119,\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/\",\"name\":\"WhatsApp API location request: send & receive | Vectalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-04T16:00:35+00:00\",\"dateModified\":\"2026-11-04T16:00:40+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"description\":\"WhatsApp API location request: ask for the customer's location with a button, read latitude and longitude in the webhook and send your store's pin.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-api-location-request\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to request and receive a location with the WhatsApp API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\",\"name\":\"Blog Vectalk\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\",\"name\":\"wanderleyfcunha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"caption\":\"wanderleyfcunha\"},\"sameAs\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WhatsApp API location request: send & receive | Vectalk","description":"WhatsApp API location request: ask for the customer's location with a button, read latitude and longitude in the webhook and send your store's pin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/","og_locale":"en_US","og_type":"article","og_title":"WhatsApp API location request: send & receive | Vectalk","og_description":"WhatsApp API location request: ask for the customer's location with a button, read latitude and longitude in the webhook and send your store's pin.","og_url":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/","og_site_name":"Blog Vectalk","article_published_time":"2026-11-04T16:00:35+00:00","article_modified_time":"2026-11-04T16:00:40+00:00","author":"wanderleyfcunha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wanderleyfcunha","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/#article","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/"},"author":{"name":"wanderleyfcunha","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"headline":"How to request and receive a location with the WhatsApp API","datePublished":"2026-11-04T16:00:35+00:00","dateModified":"2026-11-04T16:00:40+00:00","mainEntityOfPage":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/"},"wordCount":1119,"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/","url":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/","name":"WhatsApp API location request: send & receive | Vectalk","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/#website"},"datePublished":"2026-11-04T16:00:35+00:00","dateModified":"2026-11-04T16:00:40+00:00","author":{"@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"description":"WhatsApp API location request: ask for the customer's location with a button, read latitude and longitude in the webhook and send your store's pin.","breadcrumb":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-location-request\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vectalk.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"How to request and receive a location with the WhatsApp API"}]},{"@type":"WebSite","@id":"https:\/\/vectalk.com.br\/blog\/#website","url":"https:\/\/vectalk.com.br\/blog\/","name":"Blog Vectalk","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vectalk.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b","name":"wanderleyfcunha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","caption":"wanderleyfcunha"},"sameAs":["https:\/\/vectalk.com.br\/blog"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/comments?post=1159"}],"version-history":[{"count":1,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1159\/revisions"}],"predecessor-version":[{"id":1162,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1159\/revisions\/1162"}],"wp:attachment":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/media?parent=1159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/categories?post=1159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/tags?post=1159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}