{"id":1449,"date":"2022-10-11T10:40:13","date_gmt":"2022-10-11T08:40:13","guid":{"rendered":"https:\/\/botnation.ai\/gps-functionality-web-chatbot\/"},"modified":"2026-01-02T16:30:07","modified_gmt":"2026-01-02T15:30:07","slug":"gps-feature-web-chatbot","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/gps-feature-web-chatbot\/","title":{"rendered":"GPS feature (Web Chatbot)"},"content":{"rendered":"<p>How to retrieve your users\u2019 GPS coordinates<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/10\/image-40.png.webp\" alt=\"\" class=\"wp-image-1451\"><\/figure>\n<\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\">1. Use<\/h2>\n\n\n\n<p>With your chatbot you may want to know where your users are so you can offer them services, restaurants, etc. near their location. It is possible to geolocate with precision the users of your chatbot with our GPS functionality.<\/p>\n\n\n\n<p>This feature is available :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Either via the tool for adding buttons or quick replies:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/10\/GPS_W_02_UK-1024x604.png.webp\" alt=\"\" class=\"wp-image-1453\"><\/figure>\n\n\n\n<p>The behavior is then <a href=\"https:\/\/botnation.ai\/en\/gps-feature-messenger\/\">identical to the feature for Messenger<\/a>. That is, the button opens a web page that displays a map.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li> Either by a direct access in the Botnation construction interface among the features:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/10\/GPS_W_00_UK-1024x604.png.webp\" alt=\"\" class=\"wp-image-1456\"><\/figure>\n\n\n\n<p>This adds the following feature:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/10\/image-41.png.webp\" alt=\"\" class=\"wp-image-1458\"><\/figure>\n<\/div>\n\n\n<p>A map will appear in the conversation stream. The user will be able to zoom in\/out the map, move the marker and validate its position by clicking on the \u201cSend\u201d button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/10\/image-40.png.webp\" alt=\"\" class=\"wp-image-1451\"><\/figure>\n<\/div>\n\n\n<p>The following variables will be updated with the user\u2019s details:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>{{GPS_CITY}} : the city<\/li>\n\n\n\n<li>{{GPS_COUNTRY}} : the country<\/li>\n\n\n\n<li>{{GPS_ADDRESS}} : the address<\/li>\n\n\n\n<li>{{GPS_REGION}} : the region<\/li>\n\n\n\n<li>{{GPS_LAT}} : the latitude<\/li>\n\n\n\n<li>{{GPS_LONG}} : the longitude<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>TIP<\/strong><br>You can use these variables to determine the distance between two coordinates with our <a href=\"https:\/\/botnation.ai\/en\/beta-gps-tools\/\">advanced GPS<\/a> tools.<\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>ATTENTION<\/strong><br>Geolocation on a <a href=\"https:\/\/botnation.ai\/en\/?p=3013\">web chatbot<\/a> is less accurate than on mobile. This means that the marker will not be perfectly placed by default when the map is loaded.  <a href=\"https:\/\/botnation.ai\/en\/why-is-the-gps-of-my-web-chatbot-less-accurate-than-that-of-my-mobile-chatbot\/\">Click to learn more.<\/a><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">2. Options<\/h2>\n\n\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[194,222,221],"class_list":["post-1449","support","type-support","status-publish","hentry","categorie-support-features","categorie-support-variables-en","categorie-support-web-chatbot-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/1449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/types\/support"}],"wp:attachment":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=1449"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=1449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}