{"id":786,"date":"2005-09-20T12:52:00","date_gmt":"2005-09-20T17:52:00","guid":{"rendered":"http:\/\/blogs.terrorware.com\/geoff\/2005\/09\/20\/idea-googlemap-drupal-module-hack\/"},"modified":"2005-09-20T12:52:00","modified_gmt":"2005-09-20T17:52:00","slug":"idea-googlemap-drupal-module-hack","status":"publish","type":"post","link":"https:\/\/blogs.terrorware.com\/geoff\/2005\/09\/20\/idea-googlemap-drupal-module-hack\/","title":{"rendered":"idea: googlemap drupal module hack"},"content":{"rendered":"<p>A friend pointed me to the <a href=\"http:\/\/drupal.org\/node\/29091\">googlemap<\/a> drupal module.<\/p>\n<p>I installed this module on <a href=\"http:\/\/terrorware.com\">terrorware.com<\/a> and its pretty cool, but I&#8217;ve had some problems.<\/p>\n<p>This module is cool, but currently limited &#8211;  or rather limited by the location module.<\/p>\n<p>The googlemap (gmap) module gets data about the event from longitude and lattitude tags in the rss feed for nodes with location information enabled.<\/p>\n<p>I was only able to get this info added to the feed if I specified a zip for the location address. This makes sense as the documentation for the location module seems to suggest that it looks up longitude and lattitude based on postal code info.<\/p>\n<p>When I did this, the gmap loaded my points, but showed up incorrectly on the map. I assume that this was due to incorrectly calculated longitude and lattitude on the part of the location module. I confirmed this by looking at the feed for the node at http:\/\/www.terrorware.com\/?q=node\/76. It showed:<\/p>\n<p>39.131576<br \/>\n-86.497430<\/p>\n<p>The mapping feature of the location module just calls up google maps with a url generated from the addresss. In this case, it&#8217;s http:\/\/maps.google.com\/?q=325+S.+Walnut+Street%2C+Bloomington%2C+IN%2C+47401%2C+us. If you look at the source of the google page, you&#8217;ll notice that they have their calculated longitude and lattitude info included:<\/p>\n<p>Not the same!<\/p>\n<p>Looking at the google source does, however,  provide the means for hacking the location module to more accurately detect lng.\/lat. You could just have it grep the info from the page generated by google! The advantages of this would be greater accuracy and eliminate the need to enter a postcode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A friend pointed me to the googlemap drupal module. I installed this module on terrorware.com and its pretty cool, but I&#8217;ve had some problems. This module is cool, but currently limited &#8211; or rather limited by the location module. The googlemap (gmap) module gets data about the event from longitude and lattitude tags in the&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.terrorware.com\/geoff\/2005\/09\/20\/idea-googlemap-drupal-module-hack\/\">Continue reading <span class=\"screen-reader-text\">idea: googlemap drupal module hack<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-786","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wnIz-cG","_links":{"self":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/comments?post=786"}],"version-history":[{"count":0,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/786\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/media?parent=786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/categories?post=786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/tags?post=786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}