{"id":3984,"date":"2018-01-23T18:34:28","date_gmt":"2018-01-23T18:34:28","guid":{"rendered":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/?post_type=faq&#038;p=646"},"modified":"2020-07-30T11:18:40","modified_gmt":"2020-07-30T09:18:40","slug":"automatically-get-lat-lng","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/automatically-get-lat-lng\/","title":{"rendered":"How can I automatically get latitude (lat) \/ longitude (lng) data for my stores?"},"content":{"rendered":"<p>Our WordPress plugin is able to automatically add latitude and longitude data during store imports. Just follow these 3 steps:<\/p>\n<ol>\n<li>You need to set a <strong>Google Api Key (Server Side)<\/strong> in our plugin settings<br \/>\n<span class=\"description\">This will be used to fetch Lat \/ Lng when you import stores. It should not be your public key and have no http heder restrictions!<\/span><\/li>\n<li>Create an <strong>import file where the store&#8217;s lat \/ lng is empty<\/strong><br \/>\nIf you already have stores imported -&gt; make an export -&gt; delete all stores -&gt; edit the export and import it again<\/li>\n<li>If you have successfully set the server side key our plugin tries to fetch lat \/ lng by stores address automatically when importing<\/li>\n<\/ol>\n<p><strong>Caution<\/strong>: The automatic process might not always be 100% correct!<\/p>\n<figure id=\"attachment_5582\" aria-describedby=\"caption-attachment-5582\" style=\"width: 604px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5582\" src=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2018\/01\/automatically-get-lat-lng-during-stores-import.jpg\" alt=\"automatically get lat lng during stores import\" width=\"604\" height=\"328\" srcset=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2018\/01\/automatically-get-lat-lng-during-stores-import.jpg 604w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2018\/01\/automatically-get-lat-lng-during-stores-import-247x134.jpg 247w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2018\/01\/automatically-get-lat-lng-during-stores-import-510x277.jpg 510w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2018\/01\/automatically-get-lat-lng-during-stores-import-300x163.jpg 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><figcaption id=\"caption-attachment-5582\" class=\"wp-caption-text\">automatically get lat lng during stores import<\/figcaption><\/figure>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-3984","faq","type-faq","status-publish","hentry","faq_topics-store-locator-faq"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=3984"}],"version-history":[{"count":2,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3984\/revisions"}],"predecessor-version":[{"id":5584,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3984\/revisions\/5584"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=3984"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=3984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}