{"id":1411,"date":"2022-10-11T10:08:27","date_gmt":"2022-10-11T08:08:27","guid":{"rendered":"https:\/\/botnation.ai\/gps-feature-messenger\/"},"modified":"2026-01-02T15:27:38","modified_gmt":"2026-01-02T14:27:38","slug":"gps-feature-messenger","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/gps-feature-messenger\/","title":{"rendered":"GPS feature (Messenger)"},"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-35.png.webp\" alt=\"\" class=\"wp-image-1417\"><\/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.<br><\/p>\n\n\n\n<p>This feature is available :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li> Either by direct access in the Botnation design interface via the feature :<\/li><\/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_FB_00_UK-1024x604.png.webp\" alt=\"\" class=\"wp-image-1422\"><\/figure>\n\n\n\n<p>This will add a \u201cButton\u201d functionality preconfigured as \u201cGPS\u201d.<\/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-37.png.webp\" alt=\"\" class=\"wp-image-1426\"><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\"><li>Either via the tool for adding buttons :<\/li><\/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_FB_02_UK-1024x604.png.webp\" alt=\"\" class=\"wp-image-1424\"><\/figure>\n\n\n\n<p>You can choose the color of the theme, the redirection sequence once the user has validated his position and also the size of the popup.<br><br>When the user clicks on this button, a webview will overlay the Messenger application and display a map with a location marker. The user will be able to zoom in\/out the map, move the marker and validate its position by clicking on the \u201cValidate\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-36.png.webp\" alt=\"\" class=\"wp-image-1420\"><\/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\"><li>{{GPS_CITY}} : the city<\/li><li>{{GPS_COUNTRY}} : the country<\/li><li>{{GPS_ADDRESS}} : the address<\/li><li>{{GPS_REGION}} : the region<\/li><li>{{GPS_LAT}} : the latitude<\/li><li>{{GPS_LONG}} : the longitude<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><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><\/blockquote>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[194,222],"class_list":["post-1411","support","type-support","status-publish","hentry","categorie-support-features","categorie-support-variables-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/1411","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=1411"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=1411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}