# Search by the location doesn’t work correctly

**URL:** <https://community.hivepress.io/t/search-by-the-location-doesn-t-work-correctly/11854>\
**Category:** Geolocation\
**Tags:** geolocation\
**Created:** [August 19, 2024, 8:58am UTC](https://community.hivepress.io/t/search-by-the-location-doesn-t-work-correctly/11854 "2024-08-19T08:58:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomanija](https://community.hivepress.io/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@Tomanija](https://community.hivepress.io/u/Tomanija)\
**Post date:** [August 19, 2024, 8:58am UTC](https://community.hivepress.io/t/search-by-the-location-doesn-t-work-correctly/11854/1 "2024-08-19T08:58:58Z")

</div>

The search by location doesn’t work correctly. When I type the city name, it shows 25 results, but when I search by the country where that city is located, it shows me only 1 result. I am using MapBox.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [August 20, 2024, 8:16am UTC](https://community.hivepress.io/t/search-by-the-location-doesn-t-work-correctly/11854/3 "2024-08-20T08:16:31Z")

</div>

Hi,

Please make sure you set up Geolocation using this doc: [How to set up Geolocation - HivePress Help Center](https://help.hivepress.io/article/120-how-to-set-up-geolocation). Also, please make sure that the regions feature is enabled: [How to set up regions - HivePress Help Center](https://help.hivepress.io/article/157-how-to-set-up-regions)

​I hope this is helpful to you.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [September 19, 2024, 8:17am UTC](https://community.hivepress.io/t/search-by-the-location-doesn-t-work-correctly/11854/4 "2024-09-19T08:17:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
