– Go to Propertyware settings and enter your URL in the ‘URL to fetch listings’ field and your Google Maps API key in the ‘Google Maps JS API’ field.
– Leave this field blank to Disable google map.
– Go to the Google Cloud Console: Navigate to the Google Cloud Console.
– Select Your Project: Make sure you have the correct project selected from the project dropdown menu at the top of the page.
– Access API & Services: Click on the “Navigation Menu” (three horizontal lines in the top-left corner), then select “APIs & Services” > “Credentials.”
– Identify Your API Key: In the “Credentials” page, you will see a list of API keys. Find the API key you are using for the Maps JavaScript API.
– Edit API Key: Click on the name of your API key to edit its settings.
– Application Restrictions: Scroll down to the “Application restrictions” section. Select “HTTP referrers (websites)” to restrict the usage of the API key to specific websites.
– Add Your Domain: Under “Website restrictions,” click “Add an item” and enter your domain in the format specified (e.g., example.com/* for a broad match or https://www.example.com/specificpage for a more specific path).
– Note: Ensure you include all variations of your domain that your application might use, including with or without www, different subdomains, or any specific paths, if applicable.
– Save Changes: After adding your domain(s), click the “Save” button at the bottom of the page to apply your changes.