Hvordan få Google Maps API-nøkkel

Du finner en fullstendig veiledning om hvordan du skaffer deg en API-nøkkel i Googles offisielle dokumentasjon her: https://developers.google.com/maps/documentation/javascript/get-api-key

Create Google API Key

I din, Google Cloud Platform naviger til API-er og tjenester for å finne legitimasjon. Den nye API-nøkkelen kan opprettes etter at du har klikket på knappen "Create credentials", der du finner alternativet "API Key".

Vi anbefaler på det sterkeste at du tar hensyn til begrensningene. Du bør begrense API-nøkkelen din ved hjelp av HTTP Referrers bare for nettstedene dine som vil bruke Google Maps API-nøkkelen. På denne måten kan ingen andre stjele og bruke API-nøkkelen din.

Enable Libraries

Hvilke API-er trenger jeg?

Fordi Google ikke forklarer tydelig hvilke API-er du trenger å aktivere, er her listen over nødvendige API-er for alle Google Maps-funksjoner:

  • Google Maps veibeskrivelse
  • Google Maps avstandsmatrise
  • Google Maps Høyde over havet
  • Google Maps Geokoding
  • Google Maps JavaScript

Du må aktivere disse API-ene i Bibliotek-delen.

Save API Key in Citadela Listing plugin

Where to insert my API key? If you login to your WordPress as an administrator, you can insert an API key in Citadela Listing -> Integrations

Debugging issues

If you encounter any issues with your Google Maps API key, you can easily debug them using the Console in your browser. To open the Console, simply right-click anywhere on the webpage, select “Inspect” or “Inspect Element,” then navigate to the “Console” tab. Here, you’ll find error messages and warnings that can help identify and resolve any issues with your API key configuration. Keep an eye out for any error messages related to the Google Maps API, and use them as clues to troubleshoot and fix the problem.