Great module. Works as advertised. I haven't looked at the code but you you mentioned "input in a user-readable way" for the location input for calculating proximity. Any progress on this feature?

From a usability standpoint this would significantly improve the usefulness of this module.

CommentFileSizeAuthor
#4 googlemaps-widget-1415244-4.patch9.91 KBpeterpoe

Comments

derjochenmeyer’s picture

Title: input in a user-readable way » User-friendly input widget
Category: feature » task
derjochenmeyer’s picture

Version: 7.x-1.1 » 7.x-2.x-dev
RonD’s picture

Any progress and/or updates on this feature request. This and the other planned features would make this a top module for proximity searches.

Ron D.

peterpoe’s picture

Status: Active » Needs review
StatusFileSize
new9.91 KB

Patch provides an input widget identical to the field widget provided by the geolocation_googlemaps submodule. It will only be available if the geolocation_googlemaps module is active.

There may be some presentation issues depending on the active theme (for examples, themes that apply max-width: 100% to img make the icons in the map look weird), but it looks that these problems could be solved by the geolocation_googlemaps module.

Test test test!

Funksmaname’s picture

I'm testing this, using ip_geoloc to render a Leaflet map - it's working great! I can put an address and the geolocation is returned in a split second, and when submitted results seem to be working great!

Not sure if I should start a new issue for this, but is it possible to display the address Geolocation selects in a view? i.e. when I save a location for a node, it shows the address in a field, as it does here when I do a geolocation search with views filters - I'd love to be able to display this text based address which geolocation module selects... possible?

Funksmaname’s picture

upon closer inspection, I'm having issues with markers not showing up.

7 results without filtering, only 5 when filtering within 100km of an address (all of these markers are within 2km of the address and eachother - but the same 2 are not showing every time...
picking another street (within 1km) brings up 6 results

The missing results are always within the radius of results that ARE showing up, so it's not an issue of the results being outside the scope of the search

manually entering the calculated long/lat into the long/lat widget instead of the geocoding widget seems to show all 7 results... let me know if you need any more info!

Funksmaname’s picture

sorry, me again - I may have misspoke... the results are not working when putting in long/lat manually, this seems intermittent, as I got all results earlier by entering the long/lat manually, yet now it doesn't appear to be working correctly.

Did an address widget search which gave:
Latitude: -41.3483301
Longitude: 173.17086990000007
5 results

noted the long/lat, converted to standard long/lat widget and:

searching manually
Latitude: -41.3483301
Longitude: 173.17086990000007
gave 7 results earlier

then added a 2nd distance filter, one set to long/lat, one to address widget and searched a nearby road which gave the long/lat:
Latitude: -41.3473657
Longitude: 173.18700109999997
gave only 5 results

removed the address widget, and put the same long/lat into the manual widget:
same - 5 results!

tried again with the first long/lat
Latitude: -41.3483301
Longitude: 173.17086990000007
gives only 6 results (all 7 showed before)

I don't see a pattern :(

Please let me know how I can help!

vhwouter’s picture

Could it be possible that geolocation (proximity) doesn't take entity references into account?
Nice input widget btw.

Funksmaname’s picture

I've got a little further in figuring out the symptoms of the issues - I don't think this widget is to blame...
please see http://drupal.org/node/1699326#comment-6645400

Any help really appreciated! this widget is fantastic but unusable due to problems with the main module!!

jadowd’s picture

Hi!

I need to be able to create a field in the user account, that will pin that user to a location... I can do that. But I also need to be able to pin a location to notes (in this case, they are events.) I need to be able to use your module to determine which events are in the proximity of the users profile marked location, or, to be able to determine the proximity based on a zip code entered as an exposed field in the view...

Is this possible, or, how far out is this?

Can I help to code this if it's not an option at this time?

Thanks,

Funksmaname’s picture

jadowd, from what I understand you want to do it is possible with this module - but the proximity module is broken at this point, so if you want to help code, PLEASE take a look at http://drupal.org/node/1699326#comment-6645400 and the main Geolocation Proximity module and try to work out why a small area around the proximity target is not included in the search results (it means if your events are too close to your user, the event won't show up - yet if it's a little further away, it does!)

Unfortantely I've reported this over a week ago, and made it a critical issue, but the maintainers haven't responded. I wish I was more capable to help :(

jadowd’s picture

This allows me to plug in a zip code to the view as an exposed field (or have that set by default, from a field in the user profile... ) and set that as the local center for finding other node locations?

yanniboi’s picture

The issue that Funksmaname is having above is more thoroughly examined here:

#1699326: Fix distance filter: some nodes within the specified distance are NOT returned

edit:
Nice work peterpoe, works great for me.

rli’s picture

Status: Needs review » Reviewed & tested by the community

#4 great patch, thanks.

Ignigena’s picture

+1 for the RTBC status! Good work here!

derjochenmeyer’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed.

Status: Fixed » Closed (fixed)

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