J-BusinessDirectory - Incorrect search results

Support Forum

 
 

 

Hello, the search modul for location/zip code only works correct when a suggested location is selected. When i type a city like "Berlin" or a zipcode without selecting a suggested (Google) city/zipcode, every entry is shown not only the entries within this city/zipcode. How to solve this?

6 replies

I had similar issue with the search module style 2. In the standard modul option everything works. When I type in as searchword "München" only the "München"-Entries show up even if there is no other filter used. Try without searching anything before, because if you just have searched before for example within the premium entries or inside a category, the search looks only for premium entries / same category entries till you go back to "all categories".

Hi,

 

This problem is usually caused by a wrong configuration on the map API.
The location detection is achieved at the moment only with the Google geolocation service. Make sure that Google map key - zipcode setting is added on the directory settings.

Please check https://www.cmsjunkie.com/docs/jbusinessdirectory/howto.html?highlight=google%20map%20key%20zipcode#how-to-create-a-map-key

Thanks Susanne and George, 

@Susanne
I am using the standard search module and you are right typing the Location (City) is working when typing in main search field. But not when using the field for Location/ZipCode. There it only works when the suggested (by Google) location oder zip code is selected not when a city is typed in whithoud klicking the suggestion. 

@George 
as dsecriped above the map API is working fine, if it wouldn't it wont showing the suggestions. The problem is that it is not normal that a user have to select a suggestion to get the correct results, 

I checked it out, in my portal it works when I type in the ZIP Code or the city name into the "Where" ("Wo")-field (without the Maps Suggestion, so it works for example even in Internet Explorer). Do you have a different zip-Map-Code in the settings?

ps: I have the following APIs running and which get requests as I can see in the Google Cloud Platform:

1. Maps JavaScript API

2. Geocoding API

3. Maps Static API

4. Places API

Hello Susanne, 

thanks to you i am a big step further. Geocoding API was not acitvated. Now when i type a city an select a radius > 0 then it work correctly. But when the Radius stays a 0 it shows all entries. Is there a way to set the default raidus to >0 and set the default selection fpr "autolocation" to "off"?

Ah, @George, this issue seems to be a bug (0km shows all entries!).

But if you delete all cache or use a fresh other browser you can see that the standard distance is 50km. I don't use the autolocation, I don't like those things. I removed the little Autolocation Bar via CSS with a  display: none;

 
 
 

7 Item(s)

Show per page