There are many ways to improve directory sites, one of which is to enable location-based search. If you are running other similar websites or classified websites and need yelp, TripAdvisor, Craigslist or location-based search, you can easily do this by integrating it with Google maps. Some users are required because they can search for local products, services, or locations. In addition, the Google Maps platform also has a monthly free limit, as long as the website traffic is at a normal level. This guide describes how to add location search to a catalog site. We will use the free word press plug-in hivepress to create a directory website in the blink of an eye. We will also use the hivepress geolocation extension to integrate the free word press catalog theme listing hive and Google maps. However, if you already have a catalog site built as another plug-in or theme, you can skip the first step and scroll to \
OK, let’s enter the first stage! The hydraulic press must be installed before it can be installed. It can be installed as other free plug-ins of WordPress. Navigate to plug-ins > new section, find and install the plug-in in the search window, and finally click the activate button to activate it. After the installation is completed, you can continue to expand the installation in the next step. If you have difficulties, you can also broadcast along the following screen and install hivepress directly from the WordPress dashboard. The next step of extension installation is to install geolocation extension. Users can search the list by location. To install, simply move the mouse over the hivepress section and click the \
The next screen broadcast also shows the general process of installing the hivepress extension. You can follow the steps. After the installation of the new project creation plug-in and geolocation extension, it will be Google cloud platform’s turn to create the project. If you already have a Google account, you can easily access the dashboard. However, if you don’t have an account, you must sign up for a Google account. Now you must click the create project button to create the project, name the project, and finally click the Create button.
Payment settings if there is no Google payment account now, you must create a new account to activate project payment. But don’t worry. You don’t have to pay anything now. This is just one of the requirements for using the Google Maps API. Simply create all form fields along the link, including payment method details. A free credit line of $200 per month, in most cases, is enough to cover the cost of using Google services. You can also set limits and notifications, so you won’t exceed free credit. To better understand how it works and make sure the map is free to use, you can check the price.
After adding payment information, a pop-up window will appear with the API type to activate. Select a map and location, as shown in the screenshot below, and then click the use button. If there are no pop-up windows, you can also activate these APIs through the Google API library page. The next step in API key generation is to create an API key for the website. To do this, visit the credentials page
Navigate to and select the item. On the credentials page, you can see the generated API key. If you have just created a payment account, the key may be generated automatically. In this case, just click to edit. However, if the page does not have an API key, you can create a new key in the \
Male secondly, application restrictions and API keys must be set. This is required because as long as the key is included, the source code of the website will be displayed as plain text. Therefore, other people must be restricted from using API keys in their projects. To do this, you just need to add http referers so that the web site only allows API requests. Set the website address and add a \
Activate Google map integration, that’s all! Just created the API key, and the finishing work is to activate Google Maps on the website. First, copy the API key from the API and services > credentials page. If you are using the hivepress plug-in now, go to the WordPress dashboard and go to the hivepress > Settings > integration > Google Maps section. Then paste the API key into the appropriate field and click the Save Changes button to add the location search to the website.
Congratulations! From this moment on, the site has been integrated with Google maps, and now you can add locations to existing lists in the list section. In addition, the user must set the location of the newly added list. In addition, there are location search fields on the website and Google maps, which you can use to search a partial list by location. When there is a problem with the generated API key, the map reads: \
To find the cause of the error, you must open the JavaScript console. Depending on the browser, you can open it with several other keys. Check the reply from stackoverflow, which explains how to open the JavaScript console. If you use Chrome browser, you can click Ctrl + Shift + I to open it. After opening, the following error message should be displayed: To correct the error, it is important to know exactly the cause of the error. Although there may be various errors, we will show you how to solve the most common errors. Missing key diagram error; Invalid key mapping error; APINotActivatedMapError; RefererNotAllowedMapError. However, if the above errors exist, please check the Google Maps API error message document for problems and solutions.
The missing key mapping error means that there are no API keys, so to activate Google Maps on the website, you must create an API key. If this error occurs, it is recommended to follow this tutorial from the first step to generate API keys and set up mappings correctly. Invalid key mapping error. This error is not valid
Appears when using the API key. Maybe you created it but didn’t add it to your website correctly. To correct this error, go to the credentials page and copy the API key. If you use the hivepress plug-in and its geolocation extension, go to the word press dashboard > hivepress > Settings > integration > Google Maps section, paste the API key into the corresponding field, and click the \
Apinotactivatedmap error. If this type of error occurs, the required API is not activated. The Google Maps API library has multiple APIs, so you must navigate to the library to activate the APIs required for your project. After activation, it must also be added to the API restrictions section of API key settings in the credentials section. For example, if you are using the hivepress plug-in and geolocation extension, and you want to add location search on the catalog site, you must enable Google APIs, such as maps JavaScript API, places API, geocoding API, and allow access. You can view screenshots containing the required APIs. Referernotallowedmaperror this error occurs when the API error limit is not set correctly. For example, if a map runs on one page of a website and does not run on another page, you are likely to face the same problem. The good news is that the API key is set and entered correctly, and there is a small detail that needs to be modified. Navigate to the credentials page and click the API key to edit it. In the application restrictions section, select HTTP translator (website). Then enter the site restrictions, but rename \