เมื่อพร้อมที่จะย้ายโค้ดไปยังเวอร์ชันที่ใช้งานจริงแล้ว ให้ทำตามขั้นตอนต่อไปนี้เพื่อ
สร้างคีย์ API และเปิดใช้การเรียกเก็บเงิน
checklist
ตรวจสอบว่าคุณมีคุณสมบัติตรงตามข้อกำหนดเบื้องต้น
settings
เปิดใช้ API ในโปรเจ็กต์ที่อยู่ในระบบคลาวด์ของ Google
verified_user
กำหนดค่าคีย์ API เพื่อส่งคำขอ API ที่มีการตรวจสอบสิทธิ์
เปิดใช้ API
ก่อนที่จะใช้ Maps JavaScript API ได้ คุณต้องใช้คอนโซล Google Cloud หรือคำสั่ง gcloud เพื่อเปิดใช้ API ดังกล่าวในโปรเจ็กต์ที่อยู่ในระบบคลาวด์ของ Google Cloud
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2026-05-28 UTC"],[],["Google Maps Platform requires API keys for authentication and billing. To create an API key, navigate to the Google Maps Platform Credentials page and select \"Create credentials \\\u003e API key.\" Restricting API keys to specific applications and APIs is strongly recommended for security and to prevent financial abuse. This can be done via the console or Cloud SDK by setting application and API restrictions. Finally, include the API key in every Maps JavaScript API request.\n"]]