AddonsLab
Well-known member
I have an issue with the Google API autocomplete and range-based search feature that I wanted to inquire with the community about. The problem is that if I have two custom location fields filled in using autocomplete and one has the value "San Diego, CA" and the other has value "United States", the location filter doesn't work the way you'd expect for these two fields.
For example, based on these two fields, if I search for threads within 1 mile of San Diego, CA, you'd think that the "United States" thread would show up in the results in addition to the "San Diego" thread but that's not the case...only the "San Diego" thread shows up. In other words, for larger city/state/country boundaries that encompass smaller towns/cities, why don't those larger boundaries always show up when searching for threads related to the smaller unit?
Is there a fix for this? I'd like users to be able to enter their address, for example, and have all threads associated with cities, counties, states, etc., in which that address is located, show up in the results. Does Google autocomplete/range search have this capability?
Just to summarize what we have discussed via support ticket - location field geocoding stores a single point on the map, and this point is somewhere in the middle of the area, so the coordinates of "US" are some point in the US but not a specific point that could be used to do a range search. For now there is no solution for that issue, we might release an update when we manage to resolve it somehow.
I'm wondering if this addon is still in development and I'm interested in developing one similar if it isn't. Mine would need to find members that are within a certain proximity of a US zipcode. City/State would also be ideal but not necessary. This would be a directory of sorts and I haven't seen anyone do this, except in XF 1.x.
Sure, it is supported. If you see any missing features, let us know, and we will consider it including them in one of future updates. We also have a "User filter" add-on not released publicly which can use this custom field for member directory. We might at some point find time to release it publicly.
Thank you!