It'd be great if there was a CCK formatter to display the address in a Google/Yahoo! map in addition to text.

CommentFileSizeAuthor
#6 addresses_6110_01.patch9.4 KBPatrizio
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pasada’s picture

Agreed. It might be a good idea to touch base with bdragon about some sort of integration with Location, which is currently in HEAD for the Drupal 6 port. In its current state, Location does not provide CCK fields (although this is planned), but it does geocode the address. Addresses provides a great CCK implementation but doesn't geocode. If Addresses could tap into Location for geocoding (or even merge the two projects) we'd have the best of both worlds.

Thanks for what is shaping up to be a great module.

Edit: Oops, I guess brmassa's 833 commits to Location tell me that this angle is covered. :| It will be interesting to see how these two modules co-evolve.

brmassa’s picture

Assigned: Unassigned » brmassa

Angie and pasada (i couldnt find your name),

im planning to create a entirely new module dedicated to geocoding and maps, integrating Addresses with other existing modules.

They should be separated, because deal with different problems. I dont want to create a super package not useful for everyone like Locations.

While 90% of geocoding situations do include addresses, 90% of addresses problems dont involve geocoding (e-Commerce and contacts for example). Is basically a matter of dependency.

I only need first to finish the Addresses module. im working now on a generic API for displaying addresses (it should allow users to include extra fields, like phone/fax, latitude/longitude, maps) and a Views deeper integration. After that, i might release the final version and start to work on geocoding/maps, ok? Fell free to help on any matter.

best regards,

massa

brmassa’s picture

Status: Active » Closed (works as designed)

I will build such thing later

AlexisWilke’s picture

I agree with you! The geo stuff should not be part of this module.

that0n3guy’s picture

Maybe some integration with geocode module though?

http://drupal.org/project/geocode

Patrizio’s picture

Status: Closed (works as designed) » Needs review
FileSize
9.4 KB

I made a patch to integrate a gmap on the cck widget.
It is stand-alone and require only a little bit of css.
There is a map on teh node creation page to geocode the address and a map on the node view.
I hope it will be usefull

AlexisWilke’s picture

Hi Patrizio,

Does that work with 6.x-1.x-dev?

Thank you.
Alexis

Patrizio’s picture

I think so. You should try
Tell me if there are some problem

Patrizio’s picture

There is also a problem with special characters in location.
I added the following code to display the correct character.

@@ -712,8 +711,6 @@
                $address_format = implode("<br/>", $address_format);
          }
   }
+
+  $address_format = htmlspecialchars_decode($address_format);