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
Comment #1
Brandonian commentedThanks 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.
Comment #2
naught101 commentedok, 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.
Comment #3
burgs commentedIdeally 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.
Comment #4
hnln commented+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.
Comment #5
chaloalvarezj commentedMmm.. 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
Comment #6
pribeh commentedSubscribe. Need this as well.
Comment #7
hnln commentedThere is a bit more discussion at the geocoder issue queue where there is a similar request: http://drupal.org/node/1393246
Comment #8
rooby commentedI 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.
Comment #9
kvit commented+1 for this feature
Comment #10
phayes commentedMoving to the geocoder project.
Comment #11
phayes commentedrooby - 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
Comment #12
dgastudio commented+1
Comment #13
phayes commentedSo 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.
Comment #14
dgastudio commentedsorry, 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.
Comment #15
phayes commentedHi kervi,
It's part of the geofield module now. See "OpenLayers Map" widget.
Comment #17
swfindlay commentedSorry if I'm late on this...similar to Kervi I use:
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?
Comment #18
Exploratus commentedYou 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.
Comment #19
Squiggles commentedHi,
Is this feature available for the Drupal 8 version? Been trying to find this feature, but I can't seem to find it.