Hi, I'm keen to get this working, but I need a mixture of geocoded and non-geocoded values. I have some places that are at a real address, and some that are no-where near a recognisable road, so I need to be able to put in lat/long values manually.

My imagined solution to this would be to have a "geocode from other field with XXXX widget override", where "XXXX" is one of the existing manual input widgets. Values would then never be geocoded unless the field was initially empty. Obviously this means there would be twice as many widgets to select from when geocoder is enabled, but I don't see this as a huge problem.

How difficult do you think this would be?

Comments

Brandonian’s picture

Status: Active » Postponed

Thanks for the feature request, naught101. I don't think this is going to be on my radar in the next release, but I'm definitely open to patches in the near future. Long term, I do think this is something that should be considered.

naught101’s picture

ok, I'm uncertain about how urgent it is for me at the moment, but I will probably want it in the future, so I may get a chance to poke at the code. Let me know if you have any general tips/strategies on how best to go about it.

burgs’s picture

Ideally we could just have another widget that used the Geocode from another field widget, but also displayed the Lat/Long widget so that you could override it. It would then choose the Lat/Long if it was filled in, otherwise it would do the geocoding from the other field. If that's the best approach, let me know, and I can get started. It seems like a pretty straightforward task.

hnln’s picture

+1 for this feature, I'm also foreseeing locations that don't have a clear address.

The location module solves it by providing both the address fields and allowing to optionally hand pick coordinates. Downside is that there is always a map widget in your form (I'd prefer it more as a fallback option).

UI wise I guess it would be something like:
field settings: a 'manual input' or 'override geocding' setting with a dropdown that defaults to none and then lists all the non geocoding widgets
field form: if set, again above checkbox and ideally only shows the widget when the checkbox is checked.

chaloalvarezj’s picture

Long term, I do think this is something that should be considered.

Mmm.. Mapping in Drupal 7 looks very powerful.. and yet, very user unfriendly... If geocoding was 100% accurate and the users would enter error free addresses, it would be justifiable not to consider overriding geocoded addresses. Location+ Gmap offer this functionality, and will have to stick to those two modules even though they seem very limited compared to what geofield+geocoder+addressfield+openlayers could do...
Please reconsider this and give it a higher priority

pribeh’s picture

Subscribe. Need this as well.

hnln’s picture

There is a bit more discussion at the geocoder issue queue where there is a similar request: http://drupal.org/node/1393246

rooby’s picture

I don't know that there needs to be a new widget.

I think the ideal solution would be that with any of the widgets you could select "geocoded value from another field" as the default value, so that if the field is left empty you get the default value geocoded for you.

kvit’s picture

+1 for this feature

phayes’s picture

Project: Geofield » Geocoder

Moving to the geocoder project.

phayes’s picture

rooby - that's a neat idea. I think we could implement you're specific use-case without developing a seperate widget.

Interactive geocoding / map-clicking will still require a separate widget

dgastudio’s picture

+1

phayes’s picture

Status: Postponed » Fixed

So actually this is now fixed.

In the 2.x branch of geofield, if you create a "openlayers map" widget for geofield, you have the option of using geocoder in combination with it now.

dgastudio’s picture

sorry, but.. that about addressfield? sometimes, geocoder returns incorrect position, and using geofield as "geocode from another field" don't let me introduce coordinates manually.

sorry for my english.

phayes’s picture

Hi kervi,

It's part of the geofield module now. See "OpenLayers Map" widget.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

swfindlay’s picture

Sorry if I'm late on this...similar to Kervi I use:

  • Addressfield module for entering address information
  • Geocoder module for turning this into coordinates
  • Location module for storing this information. I need to use Location as it has views integration which Geofield doesn't seem to have (although I could be wrong on this?)

    • My issue is that 25% of the time the Geocoded results are 100-200m away from the actual location. In these instances I would like to be able to overwrite with a manually entered lat/lng or similar.

      Will this be possible?

Exploratus’s picture

You could do this in Drupal 6. Without manual override this seems kind of worthless, might as well just input Gps manually. Many addresses, especially in rural areas, out of the US, etc, are not accurate or exact addresses that can be geocoded without manual input.

Squiggles’s picture

Issue summary: View changes

Hi,

Is this feature available for the Drupal 8 version? Been trying to find this feature, but I can't seem to find it.