{"id":71,"date":"2007-05-18T18:08:21","date_gmt":"2007-05-18T23:08:21","guid":{"rendered":"http:\/\/coevolving.com\/blogs\/index.php\/archive\/extracting-the-longitude-and-latitude-from-a-google-map\/"},"modified":"2007-05-18T18:09:18","modified_gmt":"2007-05-18T23:09:18","slug":"extracting-the-longitude-and-latitude-from-a-google-map","status":"publish","type":"post","link":"http:\/\/coevolving.com\/blogs\/extracting-the-longitude-and-latitude-from-a-google-map\/","title":{"rendered":"Extracting the longitude and latitude from a Google Map"},"content":{"rendered":"<p>I like <a href=\"http:\/\/www.google.com\/maps\" title=\"http:\/\/www.google.com\/maps\">Google Maps<\/a>, because they provide a lot of context around the location that I&#8217;m searching.  With the amount of travel that I do, it&#8217;s always nice to know what&#8217;s near the hotel \u00e2\u20ac\u201d particularly restaurants, hotels, and shopping.<\/p>\n<p>I&#8217;m setting up a new <a href=\"http:\/\/civicrm.org\/\" title=\"civicrm.org\">CiviCRM<\/a> web site, and it has the feature of asking about the longitude and latitude of locations (e.g. home address) when filling in the user profile.  It&#8217;s easy enough to find the place using Google Maps, but decoding the URL is pretty tricky.<\/p>\n<p>In an entry on <a href=\"http:\/\/groups.google.com\/group\/Google-Maps-How-Do-I\/browse_frm\/thread\/a4763dd28e82964a\/a42239d06b543ef0?lnk=gst&amp;q=longitude+latitude&amp;rnum=7#a42239d06b543ef0\" title=\"http:\/\/groups.google.com\/group\/Google-Maps-How-Do-I\/browse_frm\/thread\/a4763dd28e82964a\/a42239d06b543ef0?lnk=gst&amp;q=longitude+latitude&amp;rnum=7#a42239d06b543ef0\">Google Maps Help Group<\/a>, someone asking that exact question got a response:<!--more--><\/p>\n<blockquote><p><em>When I do a search, I&#8217;d like to get the latitude and longitude results for the location I&#8217;m searching. How do I do this?<\/em><\/p>\n<p>Copy this line into the address bar of your browser<\/p>\n<ul>\n<li><em>javascript:void(prompt(&#8221;,gApplication.getMap().getCenter()));<\/em><\/li>\n<\/ul>\n<p>It displays the latitude and longitude of the centre point of the map.<\/p><\/blockquote>\n<p><a href=\"http:\/\/www-128.ibm.com\/developerworks\/ibm\/library\/i-lbs\/\" title=\"ibm.com\/developerworks\/ibm\/library\/i-lbs\/\">Location-based services<\/a> is thought to be one of the next big things.  Knowing where you want to go works out a lot better if you know where you are, though.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What&#8217;s the magic incantation to extract the longitude and latitude from a Google Map?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[14],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-technologies"],"_links":{"self":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":0,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}