{"id":520834,"date":"2026-07-25T05:39:00","date_gmt":"2026-07-25T05:39:00","guid":{"rendered":"https:\/\/livelycity.com\/switzerland\/current-location-google-maps-link-to-directions\/"},"modified":"2026-07-25T05:39:00","modified_gmt":"2026-07-25T05:39:00","slug":"current-location-google-maps-link-to-directions","status":"publish","type":"post","link":"https:\/\/livelycity.com\/switzerland\/current-location-google-maps-link-to-directions\/","title":{"rendered":"Current Location &#8211; Google Maps &#8211; Link to Directions"},"content":{"rendered":"<p>I&#8217;m trying to have a link going to Google Maps with the destination address pre-filled and the from address to inherit the user&#8217;s current location. From what someone else had instructed, if I used &#8216;current location&#8217; as the &#8216;from address&#8217;, it&#8217;d do everything for me.<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/15042283\/current-location-google-maps-link-to-directions\" target=\"_blank\" class=\"\">https:\/\/stackoverflow.com\/questions\/15042283\/current-location-google-maps-link-to-directions<\/a>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to have a link going to Google Maps with the destination address pre-filled and the from address to inherit the user&#8217;s current location&#8230;.<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-520834","post","type-post","status-publish","format-standard","hentry","category-kunsthaus-zurich-en","wpcat-13-id"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/520834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/comments?post=520834"}],"version-history":[{"count":0,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/520834\/revisions"}],"wp:attachment":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/media?parent=520834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/categories?post=520834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/tags?post=520834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}