How to do a city search

  • Author
    Posts
  • goo

    How it can be done so that each user chooses which city to search.

    ihordeveloper

    You can try using the Geolocation extension https://hivepress.io/docs/extensions/geolocation/ For example, it’s enabled on the demo site https://demo.hivepress.io/

    goo

    please tell me is this google API key paid? After inserting the key, will this section appear in the site search engine?

    ihordeveloper

    Please check their pricing here https://cloud.google.com/maps-platform/pricing They seem to have a $200 free credit every month, so they’ll charge you only if you exceed this credit. The API key is set on the back-end, it’s not indexed by search engines.

    goo

    I had planned to put the Google API in the search engine of the site, a section with a selection of the city will appear, will I have to include it from the second place?

    ihordeveloper

    This extension doesn’t add a drop-down of cities, it adds a worldwide (or countrywide if you limit it to some country) location search. Users can search for some city in the location field, or click on the “Locate Me” button to set their current location. The HivePress searches listings within a radius from this location (15km by default).

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.