Index: location.hu.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/supported/location.hu.inc,v
retrieving revision 1.6
diff -u -r1.6 location.hu.inc
--- location.hu.inc	24 Jan 2008 09:00:03 -0000	1.6
+++ location.hu.inc	23 Feb 2010 10:58:29 -0000
@@ -44,3 +44,34 @@
     'VZ' => "Veszprem",
     'ZA' => "Zala");
 }
+
+function location_map_link_hu_providers() {
+  return array(
+    'google' => array(
+      'name' => 'Google Maps',
+      'url' => 'http://maps.google.hu',
+      'tos' => 'http://www.google.hu/help/terms_maps.html',
+    ),
+  );
+}
+
+function location_map_link_hu_default_providers() {
+  return array('google');
+}
+
+function location_map_link_hu_google($location = array()) {
+  $query_params = array();
+
+  foreach (array('street', 'city', 'postal_code', 'country') as $field) {
+    if (isset($location[$field])) {
+      $query_params[] = $location[$field];
+    }
+  }
+
+  if (count($query_params)) {
+    return ('http://maps.google.hu?q='. urlencode(implode(', ', $query_params)));
+  }
+  else {
+    return NULL;
+  }
+}

