Support » Plugin: WP Store Locator » Display Locations by Country

  • Resolved Sameer

    (@sameernxb)


    I wrote previously and again writing i want to know when i only write any country for example USA it do not brings locations, actually i am making a school website whose schools are in multiple countries. I just want to know why it is not searching locations if i only write country name? with city name it works perfectly. It do brings the pointer on the map of the searched country but do not display result in case of cities it works fine. Any timely help will be great and i will really appreciate that. Looking forward to your response.

Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    When you make a search the location you search for it send to the Geocode API, which returns a set of coordinates. Those coordinates are used in combination with the set search radius to find locations in the database.

    The coordinates are always in the center of what you search for. So when you search for a country the marker is placed in the center, and from there a search is made for nearby locations based on the set search radius.

    The only way this will work for countries is if you set a huge search radius.

Viewing 1 replies (of 1 total)
  • The topic ‘Display Locations by Country’ is closed to new replies.