{"id":646,"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":"2018-01-23T18:34:28","modified_gmt":"2018-01-23T18:34:28","slug":"automatically-get-lat-lng","status":"publish","type":"faq","link":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/faq\/automatically-get-lat-lng\/","title":{"rendered":"How can I automatically get latitude (lat) \/ longitude (lng) data for my stores?"},"content":{"rendered":"<p>If you want to know if there is a way to automatically get the Lat\/Long data, then you are correct here.<\/p>\n<ol>\n<li>You need to set a Google Api Key (Server Side) 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 import file where the store&#8217;s lat \/ lng is empty<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<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-647\" src=\"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-content\/uploads\/sites\/11\/2018\/01\/lat-lng-updated.jpg\" alt=\"lat lng updated\" width=\"604\" height=\"328\" srcset=\"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-content\/uploads\/sites\/11\/2018\/01\/lat-lng-updated.jpg 604w, https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-content\/uploads\/sites\/11\/2018\/01\/lat-lng-updated-300x163.jpg 300w, https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-content\/uploads\/sites\/11\/2018\/01\/lat-lng-updated-600x326.jpg 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-646","faq","type-faq","status-publish","hentry","faq_topics-faq"],"_links":{"self":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/comments?post=646"}],"version-history":[{"count":1,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/646\/revisions"}],"predecessor-version":[{"id":648,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/646\/revisions\/648"}],"wp:attachment":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/media?parent=646"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/product_cat?post=646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}