I am using ip geolocation, addressfield, and geocode

When creating the view, I can set Source of Origin Point to User Location. I have a field that is set to proximity, and it always appears with a value of 0.

I have tried this in a grid view and also in a leaflet map view. On the map, I can see the user location, set by the browser, as well as other points on the map. However, even on the map, the distances are all displayed as 0.

In case it matters, I am using a view of users (showing a map or grid of other users) and the geoaddress field is part of a field collection.

Is proximity to user location supposed to be working without any patches?

Thanks for a great module.

Comments

rdeboer’s picture

@jsibley
Thank you for your query.
What module do you use for lat/lon storage?
Is it Geofield? In that case this thread may be useful: #2011340: Geofield plugin to extend proximity filtering based on postal address with option to use HTML5 location.
Rik

jsibley’s picture

Yes, it's geofield. Thanks for the heads-up on the patch, which I have now tried.

Which module does the option of setting the Source of Origin point to user location come from?

Should this be an option if it leads to incorrect distances? Is this also a geofield issue?

Thanks.

rdeboer’s picture

"Source of Origin" comes from the Geofield View handlers for field, sort and filter.

Have you configured the field opitons correctly?

rdeboer’s picture

Status: Active » Closed (works as designed)

This is a Geofield question.