I'm wondering if this fits in with the location and gmaps modules at all or if it just duplicates some of the functionality. The reason I'm asking is that location lets you type in an address and will geocode it just like this one, but it does it when you save the node. I would love to have an actual button the user could push so they could see the lat/long show up and have the map adjust to suit rather than having to just hit submit and re-edit if it didn't geocode right.

From the description, I'm guessing the answer is that you're just duplicating not integrating, but I figured it didn't hurt to ask just in case. :)

Michelle

Comments

csc4’s picture

+1 for Michelle's idea - UK postcodes tend to cover quite large areas so being able to refine would be very useful either as a button or as a JS focus

mlncn’s picture

+1 to working with location-- best as a separate module, that works with it; some common code could come from this patch and live outside location, available to other approaches:

http://drupal.org/node/75459#comment-216146

Geocode could be the glue between geonames API and actually using it:
http://drupal.org/project/geonames

use case... in broad sense: http://agaricdesign.com/project/wsf_action

allie micka’s picture

Status: Active » Closed (won't fix)

Hello, blast-from-the-past!

Here's the deal: The Geocode module never had any commits. Thus, when wanting to write one of my own, I requested the namespace. So your query was on vaporware :(

Now here's the good news: The new-and-extant Geocode module, while still in a formative state, *may* do what you're seeking. Here are the design goals:

* Provide a generic geocode handler that accepts a variety of input formats, geocodes them with a compatible handler, and returns results in a variety of formats.
* Provides a widget for geo_field modules, which can store this information appropriately.

Presently, there are 2 available geocoding handlers: A Google API handler, which accepts text and/or a postal address, and an EXIF handler, which accepts image fields that contain locative data.

* Future inputs will include plain text, IP addresses, kml/gpx/etc files, and so-on.
* Future handlers will include geocoders for the above, including e.g. MaxMind handlers for IP's, GeoNames integration for text, File parsing for files, etc.
* I'd like to chain the handlers, so you could use image -> lat/lon -> reverse-geocoded city name.

I won't write all of these myself, but other modules can implement a geocode handler with a hook. If you're psyched about this, please help spread the word so that efforts can be routed to a central API for this sort of thing.

Thanks!