سوالات متداول پلتفرم نقشه های گوگل

شروع شدن

درک شرایط خدمات

محدودیت استفاده و صورتحساب

استفاده از پلتفرم نقشه های گوگل

خطاها و عیب یابی

خدمات پلتفرم نقشه های گوگل

Maps JavaScript API

Google Maps SDK برای iOS

Google Maps SDK برای اندروید

امضای URL

شروع شدن

پلتفرم نقشه های گوگل چیست؟

پلتفرم نقشه های گوگل مجموعه ای از API ها و SDK ها است که به توسعه دهندگان اجازه می دهد نقشه های گوگل را در برنامه های موبایل و صفحات وب جاسازی کنند یا داده ها را از نقشه های گوگل بازیابی کنند. چندین پیشنهاد وجود دارد. بسته به نیازتان، ممکن است متوجه شوید که از یک یا ترکیبی از این API ها و SDK ها استفاده می کنید:

نقشه ها:

مسیرها:

مکان ها:

محیط:

چگونه می توانم با Google Maps Platform شروع کنم؟

به شروع با پلتفرم نقشه های Google مراجعه کنید.

به کدام API نیاز دارم؟

برای کمک به یافتن API مناسب بر اساس نیازهای عملکردی خود، نگاهی به انتخابگر API بیندازید.

چگونه می توانم از API ها در سایت خود استفاده کنم؟

راهنمای نمای کلی، توسعه‌دهنده و شروع به کار را برای API یا SDK خاصی که به آن علاقه دارید، ببینید. برای مثال، راهنمای Maps SDK برای Android یا Maps JavaScript API را بررسی کنید.

پلتفرم نقشه گوگل کدام کشورها را پوشش می دهد؟

تیم Google Maps دائماً داده‌های نقشه جدید را بیرون می‌آورد و پوشش بین‌المللی ما را افزایش می‌دهد. برای آخرین اطلاعات پوشش، با داده های پوشش Google Maps مشورت کنید. می توانید داده ها را با کادر فیلتر در بالای صفحه فیلتر کنید. لطفاً توجه داشته باشید که در صورت تغییر قراردادهای مجوز با ارائه‌دهندگان داده، داده‌های پوشش می‌توانند تغییر کنند.

همچنین مشاهده کنید:

آیا می توانم بدون استفاده از محصولات پلتفرم نقشه های گوگل، نقشه های گوگل را در سایت خود قرار دهم؟

آره. Google Maps اکنون امکان جاسازی نقشه ای را که در حال مشاهده آن هستید در وب سایت یا وبلاگ خود، بدون هیچ گونه برنامه نویسی یا استفاده از پلتفرم نقشه های Google ارائه می دهد. اطلاعات بیشتری اینجا در دسترس است .

چگونه برنامه های Maps را در دستگاه های تلفن همراه ارائه کنم؟

برای گنجاندن نقشه ها در یک برنامه Android، از Maps SDK برای Android استفاده کنید.

برای گنجاندن نقشه ها در یک برنامه اصلی iOS، از Maps SDK برای iOS استفاده کنید.

Maps JavaScript API برای پاسخگویی به دستگاه‌های تلفن همراه توسعه یافته است و برای برنامه‌های مرورگر که هم روی دسکتاپ و هم دستگاه‌هایی که شامل یک مرورگر وب با پیاده‌سازی کامل جاوا اسکریپت هستند، مناسب است، مانند Apple iPhone.

برای برنامه‌هایی که دستگاه‌هایی را هدف قرار می‌دهند که برای استفاده از Maps JavaScript API مناسب نیستند، Maps Static API تصاویر نقشه را در قالب‌های GIF، JPG، و PNG، از جمله نشانگرها و چند خطوط ارائه می‌کند. توجه داشته باشید که استفاده از Maps Static API خارج از برنامه‌های مبتنی بر مرورگر مستلزم پیوند تصویر نقشه به Google Maps است.

Maps JavaScript API و Maps Embed API از کدام مرورگرهای وب پشتیبانی می کند؟

Maps JavaScript API و Maps Embed API از مرورگرهای وب زیر پشتیبانی می‌کنند:

دسکتاپ
  • نسخه فعلی Microsoft Edge (ویندوز)، به استثنای حالت اینترنت اکسپلورر.
  • دو آخرین نسخه اصلی پایدار فایرفاکس (ویندوز، macOS، لینوکس).
  • دو آخرین نسخه اصلی پایدار کروم (ویندوز، macOS، لینوکس).
  • دو آخرین نسخه اصلی پایدار سافاری (macOS).
اندروید
  • نسخه فعلی Chrome در Android نسخه 4.1 و بالاتر.
  • Chrome WebView در Android 4.4 و بالاتر.
iOS
  • سافاری موبایل در نسخه های اصلی فعلی و قبلی iOS.
  • UIWebView و WKWebView در نسخه های اصلی فعلی و قبلی iOS.
  • نسخه فعلی کروم برای iOS.
آیا می توانم نقشه ها را از Maps JavaScript API چاپ کنم؟

چاپ از Maps JavaScript API پشتیبانی نمی شود. این به این دلیل است که پشتیبانی از چاپ در مرورگرهای رایج ناسازگار است.

وقتی تغییراتی در محصولات پلتفرم Google Maps ایجاد می شود، چگونه می توانم مطلع شوم؟

برای به روز رسانی اخبار در مورد پیشنهادات مختلف توسعه دهندگان Google Geo، باید در وبلاگ پلتفرم نقشه های Google مشترک شوید.

چگونه با پشتیبانی فنی تماس بگیرم؟

برای اطلاعات در مورد گزینه های پشتیبانی موجود، به پشتیبانی و منابع پلتفرم نقشه های Google مراجعه کنید.

چه زمانی پشتیبانی فنی در دسترس است؟
تیم پشتیبانی 24×5 (روزهای هفته از دوشنبه 9 صبح به وقت توکیو تا جمعه 5 بعد از ظهر به وقت اقیانوس آرام) به استثنای تعطیلات منطقه ای برای مسائل "خدمات غیرقابل استفاده" در دسترس است.
چگونه می توانم دسترسی به حساب Google خود را بازیابی کنم؟

اگر دسترسی به حساب Google خود را از دست دادید (به عنوان مثال joe@mycompany.com یا joe@gmail.com)، می توانید با بازیابی یا تنظیم مجدد رمز عبور، دسترسی به حساب را بازیابی کنید. به مقاله نحوه بازیابی حساب Google یا Gmail خود در راهنمای حساب Google مراجعه کنید.

چگونه می توانم دسترسی به یک پروژه خاص را بازیابی کنم؟

اگر دسترسی به پروژه ای را که در آن پیاده سازی پلتفرم Google Maps خود را مدیریت می کنید از دست دادید، می توانید سعی کنید آن را بازیابی کنید.

اگر به حساب Google مرتبط با پروژه خود دسترسی دارید:

اگر به حساب Google مرتبط با پروژه خود دسترسی ندارید :

آیا می توانم از Maps and Places SDK برای iOS در Mac های مبتنی بر Arm استفاده کنم؟

توسعه بر روی Mac های جدید مبتنی بر Arm امکان پذیر است، با این حال، نیاز به ساخت و اجرا بر روی یک دستگاه فیزیکی iOS دارد. این یک محدودیت موقتی است در حالی که ما به دنبال اضافه کردن پشتیبانی بیشتر برای توسعه در شبیه سازها هستیم.

درک شرایط خدمات

شرایط خدمات برای محصولات پلتفرم Google Maps چیست؟

شرایط خدمات پلتفرم Google Maps در آدرس زیر موجود است:

https://cloud.google.com/maps-platform/terms

آیا سایت من شرایط خدمات پلتفرم Google Maps را رعایت می کند؟

تا زمانی که سایت شما با شرایط خدمات پلتفرم Google Maps مطابقت داشته باشد، می‌توانید از پلتفرم Google Maps در برنامه‌های خود استفاده کنید.

با این حال، برخی از کاربردهای پلتفرم نقشه های گوگل وجود دارد که ما نمی خواهیم آنها را ببینیم: نقشه هایی که مکان های خرید مواد مخدر غیرقانونی در یک شهر را مشخص می کنند، به عنوان مثال، یا هر فعالیت غیرقانونی دیگری. ما همچنین به حریم خصوصی افراد احترام می گذاریم، بنابراین پلتفرم Google Maps نباید برای شناسایی اطلاعات خصوصی افراد استفاده شود.

قبل از توسعه و راه‌اندازی، باید از مشاوره خود برای تعیین اینکه آیا برنامه شما با شرایط خدمات پلتفرم Google Maps مطابقت دارد یا خیر استفاده کنید. مهندسان Google فقط می توانند کمک فنی ارائه دهند و صلاحیت ارائه مشاوره حقوقی را ندارند. Google این حق را برای خود محفوظ می دارد که در هر زمانی استفاده شما از این سرویس را تعلیق یا خاتمه دهد، بنابراین لطفاً شرایط Maps APIs را به دقت بخوانید.

آیا می توانم مستقیماً به کاشی های نقشه و تصاویر ماهواره ای دسترسی داشته باشم؟

شما نمی توانید از طریق مکانیسمی غیر از پلتفرم نقشه های گوگل (مانند ایجاد API نقشه برداری خود یا استفاده از اسکریپت دانلود انبوه کاشی) به کاشی های نقشه یا تصاویر ماهواره ای دسترسی پیدا کنید. اگر برنامه شما خارج از پلتفرم Google Maps به آنها دسترسی داشته باشد، دسترسی به کاشی‌ها مسدود می‌شود. برای جزئیات بیشتر به شرایط خدمات پلتفرم Google Maps مراجعه کنید.

آیا می توانم از محصولات پلتفرم نقشه های گوگل برای ردیابی برنامه ها استفاده کنم؟

هیچ محدودیتی برای نمایش داده‌های بی‌درنگ (ردیابی) با محصولات پلتفرم Google Maps وجود ندارد، مشروط بر اینکه برنامه با شرایط خدمات پلتفرم Google Maps مطابقت داشته باشد.

آیا می توانم از Google Maps در برنامه غیر وب خود استفاده کنم؟

بله، محصولات Google Maps Platform اکنون می توانند در برنامه های غیر وب استفاده شوند، مشروط بر اینکه از سایر محدودیت های شرایط خدمات پلت فرم Google Maps پیروی کنند.

Maps JavaScript API تنها زمانی پشتیبانی می شود که در یکی از مرورگرهای پشتیبانی شده اجرا شود.

آیا می توانم از محصولات پلتفرم نقشه های گوگل در سایتی استفاده کنم که دارای رمز عبور است؟

بله، خدمات Google Maps، Routes، Places و Environment را می توان با برنامه های کاربردی دسترسی خصوصی استفاده کرد. برای جزئیات بیشتر به شرایط خدمات پلتفرم Google Maps مراجعه کنید.

آیا می توانم برنامه ای ایجاد کنم که شامل داده های پلتفرم نقشه های گوگل در یک سند باشد؟

اگر برنامه شما سندی را به صورت الکترونیکی یا چاپی تولید می‌کند، هیچ داده‌ای از پلتفرم نقشه‌های Google، از جمله تصاویر، در سند گنجانده نمی‌شود. لطفاً برای جزئیات بیشتر به بخش شرایط خدمات پلتفرم Google Maps "بدون خراش دادن" مراجعه کنید.

چگونه می توانم از قرار دادن محتوای خود در نتایج جستجوی گوگل انصراف دهم؟

ما دیگر این داده ها را جمع آوری نمی کنیم. استفاده از پارامتر indexing منسوخ شده است و هیچ تاثیری ندارد. دیگر نیازی به انصراف صریح ندارید، اما ما شما را تشویق می‌کنیم که این پارامتر را در اولین فرصت خود حذف کنید.

برای حذف صفحه یا سایت خود از نتایج جستجو، دستورالعمل های ارائه شده در مرکز راهنمای وب مستر ما را دنبال کنید.

آیا می توانم با استفاده از Maps Static API که از وب سایت خود ذخیره و ارائه می کنم یک تصویر نقشه ایجاد کنم؟

شما نمی توانید کپی هایی از تصاویر تولید شده با استفاده از Maps Static API را از وب سایت خود ذخیره و ارائه دهید. همه صفحات وب که به تصاویر ثابت نیاز دارند باید ویژگی src یک تگ img HTML یا ویژگی background-image CSS یک تگ div HTML را مستقیماً به Maps Static API پیوند دهند تا همه تصاویر نقشه در محتوای HTML صفحه وب نمایش داده شوند. و مستقیماً توسط Google به کاربران نهایی ارائه می شود.

محدودیت استفاده و صورتحساب

چگونه صورتحساب پروژه خود را تنظیم کنم؟
به شروع با پلتفرم نقشه های Google مراجعه کنید.
چگونه مشتریان لایه رایگان Google Cloud Platform به یک حساب پولی ارتقا می دهند؟
برنامه Google Cloud Platform Free Tier یک دوره آزمایشی بدون هزینه با اعتبار 300 دلاری برای استفاده با هر سرویس Google Cloud Platform (GCP) از جمله APIهای پلتفرم Google Maps (GMP) به مشتریان ارائه می دهد. پس از پایان دوره آزمایشی بدون هزینه، برای ادامه استفاده از این خدمات، باید به یک حساب پولی ارتقا دهید . برای ارتقاء به یک حساب پولی، از Cloud Console دیدن کنید.
آیا پلتفرم نقشه های گوگل محدودیت استفاده دارد؟

هیچ محدودیت روزانه حداکثری برای تعداد درخواست‌هایی که می‌توانید به محصولات پلتفرم Google Maps بدهید وجود ندارد و تنها محدودیت‌های استفاده مربوط به حداکثر تعداد درخواست‌ها در ثانیه (QPS) یا درخواست‌ها در دقیقه (QPM) است.

برای Distance Matrix، محدودیت بر حسب رویداد در ثانیه (EPS) تنظیم می‌شود که به‌عنوان مجموع پرس‌و‌جوهای سمت کلاینت و سمت سرور محاسبه می‌شود.

برای Routes: Compute Route Matrix، محدودیت بر حسب عناصر در دقیقه (EPM) است، که در آن تعداد عناصر در یک درخواست برابر است: (تعداد مبدا × تعداد مقصد).

جدول زیر محدودیت استفاده برای هر API را نشان می دهد.

API محدودیت استفاده
اعتبار سنجی آدرس 6000 QPM
نمای هوایی: جستجوی ویدیو 180 QPM و 100000 QPD
نمای هوایی: رندر ویدیو 100 QPM و 100 QPD
کیفیت هوا 6000 QPM
جهت ها 3000 QPM
ماتریس فاصله 60000 EPM
نقشه های پویا 30000 QPM
ارتفاع 6000 QPM
ژئوکدینگ 3000 QPM
موقعیت جغرافیایی 6000 QPM
Map Tiles API: کاشی‌های دوبعدی و کاشی‌های نمای خیابان 6000 QPM و 15000 QPD
Map Tiles API: کاشی های سه بعدی فوتورئالیستی 300 QPD
Map Tiles API: Photorealistic 3D Tiles: Renderer 12000 QPM
مکان ها 6000 QPM
گرده 6000 QPM
جاده ها 30000 QPM
مسیرها: محاسبه مسیرها 3000 QPM
مسیرها: محاسبه مسیر ماتریس 3000 EPM
خورشیدی 600 QPM
نقشه های ایستا 30000 QPM
API تصویر نمای خیابان 30000 QPM
منطقه زمانی 30000 QPM

به منظور کنترل هزینه‌ها، می‌توانید استفاده از API خود را کنترل کنید و محدودیت‌های روزانه برای همه درخواست‌ها برای هر API قابل پرداختی تعیین کنید .

محصولات Google Maps Platform باید مطابق با شرایط خدمات استاندارد Google Maps Platform مستقر شوند.

هزینه استفاده چگونه محاسبه می شود؟

برای مروری بر قیمت محصولات پلتفرم Google Maps، لطفاً به برگه قیمت‌گذاری مراجعه کنید.

برای کسب اطلاعات بیشتر در مورد نحوه صورت‌حساب APIهای پلتفرم Google Maps، لطفاً به درک صورت‌حساب نقشه‌ها، مسیرها، مکان‌ها و محیط مراجعه کنید.

بارهای نقشه در پلتفرم Google Maps چگونه محاسبه می‌شوند؟

زمانی که هر یک از موارد زیر رخ می دهد، یک بار نقشه واحد شارژ می شود:

  • یک صفحه وب یا برنامه یک نقشه را با استفاده از Maps JavaScript API نمایش می دهد.
  • یک برنامه یک تصویر نقشه واحد را از Maps Static API درخواست می کند.

هزینه پانورامای نمای خیابان به طور جداگانه از بارهای نقشه دریافت می شود:

  • یک پانورامای استاتیک نمای خیابان برای هر درخواست به API استاتیک نمای خیابان برای جاسازی یک پانورامای نمای خیابان ثابت (غیر تعاملی) هزینه می‌شود.
  • برای هر نمونه از یک شی پانوراما در Maps JavaScript API، Maps SDK برای Android یا Maps SDK برای iOS، هزینه پانورامای نمای خیابان پویا دریافت می‌شود.

پس از اینکه یک صفحه وب یا برنامه یک نقشه، یا یک تصویر نقشه ایستا، یا یک پانورامای نمای خیابان را بارگیری کرد، هرگونه تعامل کاربر با آن، مانند جابجایی، بزرگنمایی، یا تغییر لایه های نقشه، بارهای نقشه اضافی ایجاد نمی کند یا بر محدودیت های استفاده تأثیر نمی گذارد.

افزودن نشانگر بارهای نقشه اضافی ایجاد نمی کند، اما ممکن است هزینه هایی را در مورد نحوه تعیین مکان پین ایجاد کند (مانند بارگیری یا بارگیری مجدد کلاس `google.maps.Map()`.)

چگونه بر استفاده خود نظارت کنم؟

می‌توانید استفاده از APIهای جداگانه را در Google Cloud Console نظارت کنید.

  1. پروژه ای را که حاوی API مورد نظر برای بررسی است انتخاب کنید.
  2. از لیست APIها در داشبورد، روی نام API کلیک کنید.
  3. در نزدیکی بالای صفحه، روی معیارها یا سهمیه‌ها کلیک کنید.

برای مشاهده گزارش ترافیک و اطلاعات صورتحساب کل پروژه، این مراحل را دنبال کنید:

  1. اگر قبلاً این کار را نکرده‌اید، صورت‌حساب را تنظیم کنید .
  2. به صفحه صورتحساب کنسول Cloud بروید.
  3. یک پروژه را انتخاب کنید.
  4. در نوار کناری سمت چپ، روی گزارش‌ها کلیک کنید. از فیلترهای موجود در نوار کناری سمت راست برای مشاهده گزارش های حساب صورتحساب خود استفاده کنید.

برای کسب اطلاعات بیشتر، گزارش‌دهی پلتفرم نقشه‌های Google و همچنین نظارت بر استفاده از API و استفاده از پوشش API را ببینید.

اگر از محدودیت های نرخ درخواست (QPS) تجاوز کنم چه اتفاقی می افتد؟

اگر از محدودیت‌های QPS یک محصول پلتفرم Google Maps تجاوز کنید، API یک پیام خطا برمی‌گرداند. اگر مکرراً از محدودیت ها تجاوز کنید، ممکن است دسترسی شما به API به طور موقت مسدود شود.

اگر از محدودیت‌های QPS درخواست تجاوز کنید یا از سرویس سوء استفاده کنید، درخواست‌ها یک پیام خطای خاص را برمی‌گردانند. اگر همچنان از محدودیت ها تجاوز کنید، ممکن است دسترسی شما به پلتفرم Google Maps مسدود شود.

توجه: چهار API سرویس وب دارای یک سرویس مشابه در سمت سرویس گیرنده هستند که در Maps JavaScript API موجود است: مسیرها ، ماتریس فاصله ، ارتفاع و کدگذاری جغرافیایی .

از محدودیت های استفاده فراتر رفت

اگر از محدودیت‌های استفاده فراتر رفتید، یک کد وضعیت OVER_QUERY_LIMIT به عنوان پاسخ دریافت خواهید کرد.

این بدان معناست که سرویس وب ارائه پاسخ‌های عادی را متوقف می‌کند و تا زمانی که استفاده بیشتر مجاز نشود، فقط به بازگرداندن کد وضعیت OVER_QUERY_LIMIT روی می‌آورد. این می تواند در عرض چند ثانیه اتفاق بیفتد، اگر خطا دریافت شده باشد زیرا برنامه شما در هر ثانیه درخواست های زیادی ارسال کرده است.

اگر مرتباً از محدودیت‌های استفاده از QPS خود فراتر می‌روید، با بهینه‌سازی برنامه‌ها برای استفاده مؤثرتر از محصولات پلتفرم Google Maps، میزان مصرف را کاهش دهید. برای اطلاعات بیشتر به راهنمای بهینه سازی مراجعه کنید.

سایت من ترافیک زیادی می گیرد. آیا می توانم از محصولات پلتفرم نقشه های گوگل استفاده کنم؟

آره. با این حال، توصیه می‌کنیم که با محدودیت‌های استفاده برای هر یک از پلتفرم‌های Google Maps که برنامه شما به آن متکی است آشنا شوید.

هنگامی که یک حساب صورت‌حساب دارید، اگر از محدودیت استفاده ماهیانه 200 دلاری تجاوز کنید و روش پرداخت معتبری در حساب صورت‌حساب خود نداشته باشید (کارت اعتباری، حواله بانکی، ...)، API از کار می‌افتد. تا زمانی که یک روش پرداخت معتبر اضافه نکنید.

میزان مصرف چگونه محاسبه و صورتحساب می شود؟

میزان استفاده در پایان هر روز محاسبه می‌شود و طبق جدول قیمت‌گذاری نشان داده شده است. در پایان هر ماه، کل استفاده از روش پرداخت مربوط به حساب صورت‌حساب شما محاسبه می‌شود. برای اطلاعات بیشتر، صورت‌حساب پلتفرم Google Maps را ببینید.

هزینه استفاده از پلتفرم نقشه های گوگل چقدر است؟

برای بررسی کلی هزینه هر API، به برگه قیمت‌گذاری مراجعه کنید. اگر برنامه شما درخواست ها یا حجم بارگذاری نقشه را تا 200 دلار در ماه استفاده می کند، هزینه استفاده شما دریافت نمی شود. استفاده بیش از 200 دلار اعتبار ماهانه به حساب صورت‌حساب شما کسر می‌شود. برای جزئیات بیشتر، راهنمای ما برای درک صورت‌حساب پلتفرم Google Maps را ببینید.

آیا قیمت گذاری به ارزهای دیگر موجود است؟

ممکن است ارزهای اضافی در کنسول موجود باشد. وقتی ارز دیگری را انتخاب می‌کنید، نرخ‌ها از معادل دلار ذکر شده در برگه قیمت‌گذاری ما تبدیل می‌شوند.

من صورتحساب را تنظیم کرده ام. چگونه صورتحساب خود را مشاهده کنم؟

Google در ابتدای هر ماه هزینه فعالیت ماه قبل را با استفاده از روش پرداخت مشخص‌شده از شما دریافت می‌کند. برای جزئیات درباره صورتحساب خود، به راهنمای ما برای درک صورت‌حساب پلتفرم Google Maps مراجعه کنید.

منابع اضافی:

اگر مصرف من به طور غیرمنتظره افزایش یابد، چگونه می توانم از یک صورت حساب بزرگ جلوگیری کنم؟

پلتفرم نقشه های گوگل راه هایی برای تعیین محدودیت های درخواست روزانه و تعیین حداکثر محدودیت های قابل پرداخت روزانه ارائه می دهد. برای محافظت در برابر افزایش‌های غیرمنتظره، می‌توانید حداکثر محدودیت روزانه استفاده را محدود کنید. همچنین می‌توانید هشدارهای بودجه را تنظیم کنید تا زمانی که هزینه‌های حساب صورت‌حساب به آستانه‌ای که شما تعیین کرده‌اید، اعلان‌های ایمیلی دریافت کنید.

محدود کردن حداکثر سقف قابل پرداخت روزانه:

برای جلوگیری از قبض زیاد، می توانید یک سقف روزانه برای استفاده در نظر بگیرید تا از افزایش غیرمنتظره استفاده محافظت کنید. با انجام مراحل زیر می توانید این محدودیت را در Cloud Console تغییر دهید :

  1. به داشبورد APIs & Services بروید.
  2. در صورت درخواست، پروژه ای را انتخاب کنید.
  3. یک API را از لیست انتخاب کنید، سپس روی برگه Quotas کلیک کنید.
  4. روی نماد ویرایش در کنار سهمیه «درخواست‌ها در روز» کلیک کنید.

همچنین، می‌توانید با استفاده از داشبورد IAM و Admin Quotas، سهمیه‌های متعدد را برای چندین API ویرایش کنید.

تنظیم و مدیریت هشدارهای بودجه:

هشدارهای بودجه را برای ارسال اعلان‌های ایمیلی به سرپرستان صورت‌حساب زمانی که هزینه‌های حساب صورت‌حساب به آستانه‌ای که شما تعیین کرده‌اید رسید، تنظیم کنید . زمانی که هزینه‌های تخمینی حساب صورت‌حساب از 50%، 90% و 100% آستانه فراتر رفت، اعلان‌های ایمیل به مدیران صورت‌حساب ارسال می‌شود.

پیامی دریافت کردم مبنی بر اینکه پروژه من به "حساب انتقال پلتفرم Google Maps" مرتبط است، اما من به آن حساب دسترسی ندارم. چکار کنم؟

«حساب انتقال پلتفرم Google Maps» برای کمک به مشتریان خاص برای انتقال به طرح قیمت‌گذاری جدید ما ایجاد شده است. این حساب انتقالی Google را قادر می‌سازد تا اعتباری یک‌باره به این مشتریان ارائه دهد تا بتوانند از پلتفرم Google Maps تا سقف 200 دلار بدون هزینه استفاده کنند. پس از تجاوز از این حد، حساب صورت‌حساب بسته می‌شود و دسترسی به سرویس را از دست خواهید داد. برای جلوگیری از وقفه در خدمات، از شما می‌خواهیم حساب صورت‌حساب خود را تنظیم کنید و همچنان از سطح ماهیانه 200 دلاری بدون هزینه لذت ببرید. برای تغییر حساب صورتحساب پروژه خود:

  1. یک حساب صورت‌حساب جدید ایجاد کنید (اگر قبلاً یک حساب صورت‌حساب دارید، می‌توانید از این مرحله رد شوید).
  2. حساب صورتحساب را با پروژه خود مرتبط کنید .
چرا محدودیت سهمیه من روی 1 درخواست در روز تنظیم شده است؟ چگونه می توانم این حد را افزایش دهم؟

اگر یک حساب صورت‌حساب ایجاد نکرده‌اید و به پروژه خود پیوست نکرده‌اید، APIهای پلتفرم Maps شما به ۱ درخواست در روز محدود می‌شوند. با ایجاد و پیوست کردن حساب صورتحساب می توانید سهمیه بالاتری دریافت کنید. برای انجام این کار، به شروع با پلتفرم نقشه های گوگل مراجعه کنید.

پس از ایجاد و پیوست یک حساب صورتحساب، محدودیت سهمیه روزانه شما حذف خواهد شد. می‌توانید برای جلوگیری از هزینه‌های غیرمنتظره، در Cloud Console محدودیتی تعیین کنید .

من یک اخطار نقض صورت حساب دریافت کردم. چگونه این را حل کنم؟

شما این اعلان را دریافت کرده‌اید زیرا Google تشخیص داده است که حساب شما از چندین حساب صورت‌حساب استفاده می‌کند. این نقض شرایط Google است، همانطور که در بخش 3.2.4 شرایط خدمات پلتفرم Google Maps تعریف شده است. تحت این شرایط، ایجاد چندین حساب صورتحساب ممنوع است. برای کسب اطلاعات بیشتر، به سؤالات متداول نقض حساب صورت‌حساب مراجعه کنید.

استفاده از پلتفرم نقشه های گوگل

از کدام کلیدها یا اعتبارنامه ها برای محصولات مختلف Maps استفاده کنم؟

هر بار که از محصولات پلتفرم Google Maps استفاده می کنید، باید یک کلید API برای تأیید درخواست خود اضافه کنید. پلتفرم نقشه های گوگل برای اندروید، iOS یا برنامه های وب و از طریق سرویس های وب HTTP در دسترس است.

کلید ای پی ای:

  • یک کلید API یک شناسه منحصربه‌فرد است که با استفاده از Cloud Console ایجاد می‌کنید.
  • مثالی از بارگیری یک API با یک کلید: &key=AIzaSyBjsINSH5x39Ks6c0_CoS1yr1Mb3cB3cVo

امضای دیجیتالی:

  • امضای دیجیتال با استفاده از راز امضای URL که توسط Google به شما ارائه شده است، ایجاد می‌شود. امضای دیجیتال با Maps Static API و Street View Static API استفاده می شود.

محدودیت های:

  • محدودیت‌های کلید API اختیاری هستند، اما ما قویاً توصیه می‌کنیم تمام کلیدهای API را برای امنیت بیشتر محدود کنید. برای جزئیات بیشتر به بهترین شیوه های امنیتی API مراجعه کنید.
  • می توانید یک محدودیت برنامه را به کلید API اضافه کنید. پس از محدود شدن، یک کلید فقط روی پلتفرم هایی کار می کند که از آن نوع محدودیت پشتیبانی می کنند. چهار نوع محدودیت برنامه موجود است. APIهایی که یک نوع محدودیت را اعمال می کنند می توانند از همان کلید محدود استفاده کنند.
    • آدرس های IP (سرورهای فردی) - برای استفاده با API های سرویس وب .
    • ارجاع دهنده های HTTP (وب سایت ها) - برای استفاده با API های وب .
    • محدودیت برنامه Android (بر اساس نام بسته و اثر انگشت) - برای استفاده با Maps SDK برای Android .
    • محدودیت برنامه iOS (توسط شناسه بسته iOS) - برای استفاده با Maps SDK برای iOS .
  • همچنین می توانید یک محدودیت API به کلید API اضافه کنید. برای اطلاعات بیشتر، به دریافت، افزودن و محدود کردن یک کلید API مراجعه کنید.

جدول زیر کلید / اعتبار و محدودیت برنامه را برای هر API/SDK پلتفرم Google Maps نشان می‌دهد.

API/SDK اعتبارنامه و محدودیت درخواست
Maps SDK برای اندروید کلید API با محدودیت اندروید 1
مکان‌های SDK برای Android کلید API با محدودیت اندروید 1
Maps SDK برای iOS کلید API با محدودیت iOS 1
مکان‌های SDK برای iOS کلید API با محدودیت iOS 1
Maps JavaScript API کلید API با محدودیت ارجاع HTTP 1
Map Tiles API کلید API با محدودیت آدرس IP 1
Aerial View API کلید API با محدودیت آدرس IP 1
Maps Static API کلید API با محدودیت ارجاع HTTP 1 + امضای دیجیتال 2
API استاتیک نمای خیابان کلید API با محدودیت ارجاع HTTP 1 + امضای دیجیتال 2
Maps Embed API کلید API با محدودیت ارجاع HTTP 1
Address Validation API کلید API با محدودیت آدرس IP 1
Directions API کلید API با محدودیت آدرس IP 1
Distance Matrix API کلید API با محدودیت آدرس IP 1
Elevation API کلید API با محدودیت آدرس IP 1
API کدگذاری جغرافیایی کلید API با محدودیت آدرس IP 1
API مکان جغرافیایی کلید API با محدودیت آدرس IP 1
Places API کلید API با محدودیت آدرس IP 1
Roads API کلید API با محدودیت آدرس IP 1
Routes API کلید API با محدودیت آدرس IP 1
API منطقه زمانی کلید API با محدودیت آدرس IP 1
API کیفیت هوا کلید API با محدودیت آدرس IP 1
Pollen API کلید API با محدودیت آدرس IP 1
API خورشیدی کلید API با محدودیت آدرس IP 1
1 محدودیت های کلید API اختیاری است، اما ما قویاً توصیه می کنیم برای امنیت بیشتر، همه کلیدهای API را محدود کنید.
2 بسته به نوع استفاده، ممکن است برای Maps Static API و Street View Static API به امضای دیجیتال نیاز باشد. صرف نظر از استفاده، ما اکیداً توصیه می کنیم که از کلید API و امضای دیجیتال برای احراز هویت درخواست های خود استفاده کنید.
چگونه می توانم نوع محدودیت کلید خود را از یک ارجاع دهنده HTTP به یک محدودیت آدرس IP تغییر دهم؟

مهم: اگر از هر یک از APIهای سرویس وب با یک کلید API استفاده می‌کنید که دارای محدودیت‌های ارجاع است، درخواست‌های شما با این پیام خطا شکست می‌خورد: «کلیدهای API نمی‌توانند محدودیت‌های ارجاع‌دهنده داشته باشند وقتی با این API استفاده می‌شوند». باید به استفاده از کلید API با محدودیت آدرس IP تغییر دهید.

قبل از اینکه نوع محدودیت کلید API را از ارجاع دهنده HTTP به آدرس IP تغییر دهید، مطمئن شوید که همه APIهایی که از کلید API استفاده می کنند از نوع محدودیت IP پشتیبانی می کنند. APIهای یک نوع محدودیت می توانند از همان کلید محدود استفاده کنند. اگر نیاز به اعمال بیش از یک محدودیت دارید، یک کلید جداگانه با محدودیت مورد نیاز اضافه کنید. نحوه افزودن یک کلید API جدید را ببینید.

درباره محدودیت‌های کلیدی API مرتبط با محصولات پلتفرم Google Maps بیشتر بیاموزید.

برای تغییر کلید API با محدودیت ارجاع HTTP به محدودیت آدرس IP، موارد زیر را انجام دهید:

  1. به صفحه Credentials در Cloud Console بروید.
  2. پروژه ای را انتخاب کنید که حاوی کلید API است که می خواهید ویرایش کنید.
  3. در صفحه Credentials ، از لیست کلیدهای API، نام کلید API را برای ویرایش جزئیات کلید انتخاب کنید.
  4. در بخش محدودیت کلید صفحه، «آدرس‌های IP (سرورهای وب، کارهای کرون و غیره)» را انتخاب کنید و آدرس‌های IP سرور مناسب را وارد کنید، سپس روی ذخیره کلیک کنید.
چگونه یک کلید API جدید دریافت کنم؟
به شروع با پلتفرم نقشه های Google مراجعه کنید.
چگونه می توانم تغییرات ایجاد شده در هر نسخه از APIهای Google Maps را پیدا کنم؟

اطلاعات تغییر نسخه برای بسیاری از Maps API در پیوندهای زیر موجود است:

همچنین می‌توانید بررسی کنید که کدام نسخه از پلتفرم نقشه‌های Google با استفاده از ردیاب مشکلات پلتفرم Google Maps یک اشکال خاص در آن معرفی و رفع شده است:

https://issuetracker.google.com/bookmark-groups/76561

چگونه می توانم پس از بارگیری صفحه، API را به صورت ناهمزمان در صفحه بارگذاری کنم؟

فقط پارامتر callback را هنگام بارگذاری API مشخص کنید. اطلاعات بیشتر و کد نمونه را می‌توانید در بخش شروع به کار از مستندات Maps JavaScript API بیابید.

چگونه می توانم محصولات Google Maps Platform را برای نمایش به زبانی غیر از انگلیسی دریافت کنم؟

به طور پیش‌فرض API تلاش می‌کند تا مناسب‌ترین زبان را بر اساس موقعیت مکانی کاربر یا تنظیمات مرورگر بارگیری کند. برخی از APIها به شما این امکان را می دهند که در هنگام درخواست، به صراحت یک زبان را تنظیم کنید. اطلاعات بیشتر در مورد نحوه تنظیم زبان در اسناد هر API موجود است:

زبان های پشتیبانی شده:

گوگل اغلب زبان های پشتیبانی شده را به روز می کند. این فهرست ممکن است جامع نباشد و ممکن است تغییر کند.

کد زبان زبان کد زبان زبان
af آفریقایی ja ژاپنی
مربع آلبانیایی kn کانادا
صبح آمهری kk قزاقی
ar عربی کیلومتر خمر
هی ارمنی ko کره ای
az آذربایجانی ky قرقیزستان
اتحادیه اروپا باسکی اینجا لائوس
بودن بلاروسی lv لتونی
bn بنگالی آن لیتوانیایی
لیسانس بوسنیایی mk مقدونی
bg بلغاری ام‌اس مالایی
من برمه ای میلی لیتر مالایایی
حدود کاتالان آقای مراتی
zh چینی ها دقیقه مغولی
zh-CN زبان چینی ساده شده) ne نپالی
zh-HK چینی (هنگ کنگ) نه نروژی
zh-TW چینی (سنتی) pl لهستانی
ساعت کروات pt پرتغالی
cs کشور چک pt-BR پرتغالی (برزیل)
دا دانمارکی pt-PT پرتغالی (پرتغال)
nl هلندی pa پنجابی
en انگلیسی ro رومانیایی
en-AU انگلیسی (استرالیایی) ru روسی
en-GB انگلیسی (بریتانیا کبیر) sr صربی
et استونیایی si سینهالی
فا فارسی sk اسلواکی
فی فنلاندی sl اسلوونیایی
فایل فیلیپینی es اسپانیایی
fr فرانسوی es-419 اسپانیایی (آمریکای لاتین)
fr-CA فرانسوی (کانادا) sw سواحیلی
gl گالیسیایی sv سوئدی
کا گرجی تا تامیل
de آلمانی شما تلوگو
el یونانی هفتم تایلندی
Gu گجراتی tr ترکی
iw عبری انگلستان اوکراینی
سلام هندی ur اردو
هو مجارستانی uz ازبکستان
است ایسلندی vi ویتنامی
شناسه اندونزیایی zu زولو
آی تی ایتالیایی

می توانید ببینید که نقشه در هر یک از زبانهای ذکر شده در بالا در این برنامه نمونه به نظر می رسد.

آیا می توان از پلتفرم Google Maps از طریق SSL (HTTPS) دسترسی پیدا کرد؟

API MAPS JavaScript ، نقشه های API استاتیک و API های سرویس وب از طریق اتصالات Secure (HTTPS) قابل دسترسی هستند. لطفاً برای اطلاعات در مورد نحوه دسترسی به API از طریق SSL ، مستندات مربوط به API مورد نظر را مشاهده کنید.

توجه داشته باشید که API Static Maps از URL های نماد سفارشی که از HTTPS استفاده می کنند ، پشتیبانی نمی کند. نماد پیش فرض نمایش داده می شود.

چگونه می توانم یک اشکال را گزارش کنم یا ویژگی جدیدی را در پلت فرم Google Maps درخواست کنم؟

اگر رفتاری را تجربه می کنید که فکر می کنید ممکن است یک اشکال باشد ، لطفاً با بالا بردن آن در انجمن مربوطه شروع کنید. این به سایر توسعه دهندگان اجازه می دهد تا اشکال را تأیید کنند و هرگونه مشکل احتمالی را با کد شما رد کنند.

اگر می خواهید یک ویژگی را درخواست کنید ، لطفاً ابتدا آن را در انجمن مربوطه مطرح کنید تا تأیید کنید که راه حلی که نیازهای شما را برآورده می کند در حال حاضر در دسترس نیست.

هنگامی که تأیید کردید که یک اشکال جدید را شناسایی کرده اید ، یا اینکه با عملکرد موجود محصولات Google Maps Platform ، نمی توان نیازهای شما را برآورده کرد ، لطفاً اشکال یا درخواست ویژگی خود را با استفاده از ردیاب شماره پلت فرم Google Maps گزارش دهید.

قبل از افزودن یک اشکال یا درخواست ویژگی به ردیاب مسئله ، لطفاً بررسی کنید که اشکال یا ویژگی مربوطه قبلاً اضافه نشده است. در صورت وجود ، می توانید این مسئله را برای ثبت نام علاقه خود و از بروزرسانی ها به شما اطلاع دهید.

چگونه Google Maps Platform API ها از کوکی های سایت استفاده می کنند؟

نقشه SDK را برای Android و نقشه SDK برای iOS از کوکی های مشمول سیاست حفظ حریم خصوصی Google ، مانند محاسبه کاربران فعال روزانه و 7 روزه و پیشگیری از سوء استفاده از خدمات استفاده کنید. این کوکی ها با هیچ حساب Google در Google همراه نیستند و با بقیه اطلاعات جمع آوری شده از تماس های API ثبت نشده اند.

من نمی توانم جواب سوال خود را پیدا کنم. با چه کسی تماس بگیرم؟

تیم روابط توسعه دهنده Google حضور در Onlowow Stack را حفظ می کند-یک سؤال و پاسخ به ویرایش مشترک برای برنامه نویسان. این یک مکان عالی برای پرسیدن سوالات فنی در مورد توسعه و نگهداری برنامه های Google Maps است. اطلاعات بیشتر در مورد پرسیدن سوالات در مورد Overflow در صفحه پشتیبانی در دسترس است.

برای بهترین نتیجه هنگام درخواست کمک ، لطفاً موارد زیر را در خاطر داشته باشید:

  • بحث های فعلی را جستجو کنید. شانس این است که شخص دیگری مسئله مشابهی را تجربه کرده و رفع آن را پیدا کرده است.
  • در صورت امکان پیوندی به سایت خود ارسال کنید. اگر کد به راحتی به صورت آنلاین قابل مشاهده نباشد ، فقط قطعه کد را ارسال کنید.
  • کلیه اطلاعات مربوطه از جمله نسخه های مرورگر ، خطاها و سایر حقایق را که ممکن است در عیب یابی این مشکل مفید باشد ، ارائه دهید.

خطا و عیب یابی

این خطا به چه معناست؟

اگر هنگام بارگیری یا اجرای API های Google Maps با خطایی روبرو شدید ، لطفاً به لینک های زیر مراجعه کنید تا توضیحات مربوط به کدهای خطا را پیدا کنید:

نقشه های من تاریک تر از حد معمول به نظر می رسند. چه اتفاقی می افتد؟

در شرایط خاص ، ممکن است یک نقشه تاریک یا تصویر نمای خیابانی "منفی" ، که با متن "فقط برای اهداف توسعه" علامت گذاری شده است ، نمایش داده شود. این رفتار به طور معمول نشانگر مسائل مربوط به کلید API یا صورتحساب است. برای استفاده از محصولات Google Maps Platform ، باید یک حساب صورتحساب داشته باشید و کلیه درخواست ها باید یک کلید API معتبر را شامل شود. جریان زیر به عیب یابی این کمک می کند:


چگونه می توانم کدهای خطا را حل کنم: OVER_DAILY_LIMIT یا OVER_QUERY_LIMIT ؟
این کدهای خطا به هر یک از دلایل زیر قابل بازگشت است:
  • یک کلید API از درخواست گم شده است.
  • کلید API ارائه شده نامعتبر است.
  • این پروژه دارای حساب صورتحساب نیست.
  • از یک کلاه استفاده از خود تحمیل شده فراتر رفته است.
  • روش پرداخت ارائه شده دیگر معتبر نیست (برای مثال ، کارت اعتباری منقضی شده است).
  • شما از محدودیت QPS برای یک API معین فراتر رفته اید.

برای استفاده از محصولات Google Maps Platform ، باید یک حساب صورتحساب داشته باشید و کلیه درخواست ها باید یک کلید API معتبر را شامل شود. برای رفع این مشکل ، مراحل زیر را انجام دهید:

چگونه می توان کدهای خطا را برطرف کرد: kGMSPlacesRateLimitExceeded یا 9005 PLACES_API_RATE_LIMIT_EXCEEDED ؟
اگر می بینید kGMSPlacesRateLimitExceeded یا 9005 PLACES_API_RATE_LIMIT_EXCEEDED ، ممکن است از نسخه مستهجن مکان های SDK برای Android یا مکان های SDK برای iOS استفاده کنید. بیشتر بدانید و SDK های جدید را در https://goo.gle/places-sdk-deprecation پیدا کنید.
چگونه می توانم خطای را حل کنم: "این IP ، سایت یا برنامه موبایل مجاز به استفاده از این کلید API نیست."

سناریوهای مختلفی وجود دارد که ممکن است باعث این خطا شود:

  • شما محدودیت های آدرس IP (سرور) را در کلید API خود فعال کرده اید ، و یک آدرس IP غیرمجاز در حال تلاش برای درخواست است.
  • شما محدودیت های HTTP (وب سایت) را در کلید API خود فعال کرده اید ، و یک مراجعه کننده غیرمجاز در حال تلاش برای درخواست است.
  • شما با تنظیم نام بسته و اثر انگشت ، استفاده از برنامه های اندرویدی خود را محدود کرده اید و یک برنامه اندرویدی غیرمجاز در تلاش است.
  • شما با مشخص کردن شناسه های بسته نرم افزاری درخواست های برنامه های iOS را محدود کرده اید و یک برنامه iOS شناخته نشده برای ارسال درخواست در نظر دارد.
  • در صورت استفاده از هر یک از API های سرویس وب ، با یک کلید API با محدودیت های مرجع HTTP ، این خطا را می توان این خطا دریافت کرد. درخواست های مربوط به آن API ها باید با یک کلید API با محدودیت آدرس IP مشخص شود. نوع محدودیت اصلی خود را از محدودیت ارجاع HTTP به محدودیت آدرس IP تغییر دهید . برای کسب اطلاعات بیشتر در مورد محدود کردن کلیدهای API ، به بهترین روشهای API Key مراجعه کنید.

اعتبار کلید API خود را مشاهده و ویرایش کنید

برای مشاهده کلیدهای API و مدیریت هرگونه محدودیت ، موارد زیر را انجام دهید:

  1. به صفحه اعتبار کنسول Cloud بروید.
  2. پروژه ای را که حاوی کلید API است که می خواهید مرور کنید انتخاب کنید.
  3. برای مشاهده جزئیات اعتبار ، از جمله هر محدودیتی که برای کلید تعیین شده است ، از لیست کلیدهای API ، روی نام کلید کلیک کنید.
  4. اعتبار کامل کلید API انتخاب شده نمایش داده می شود ، از جمله هرگونه محدودیتی که برای کلید تنظیم شده است. از اینجا ، محدودیت ها در صورت لزوم قابل تغییر ، حذف یا به روزرسانی هستند.
چگونه می توانم خطای را حل کنم: "کلیدهای API با محدودیت های ارجاع با این API قابل استفاده نیستند."

شما از هر یک از API های سرویس وب با یک کلید API محدود به یک مراجعه کننده HTTP استفاده می کنید. به دلایل امنیتی ، API های سرویس وب نیاز به استفاده از کلیدهای API محدود به آدرس های IP دارند. نوع محدودیت اصلی خود را از محدودیت ارجاع HTTP به محدودیت آدرس IP تغییر دهید ، یا اگر کلید شما در حال حاضر با نقشه های JavaScript API استفاده شده است ، یک کلید جدید API ایجاد کنید.

Google Maps Services Platform

من باید آدرس ها را به جفت های عرض جغرافیایی/طول جغرافیایی تبدیل کنم. آیا می توانم این کار را با پلت فرم Google Maps انجام دهم؟

بله ، این فرایند "GeoCoding" نامیده می شود. نقشه های JavaScript API شامل کلاس برای انجام یک سرویس جغرافیایی است. کلاس: Google.maps.geocoder .

از طرف دیگر ، Google همچنین API GeoCoding را ارائه می دهد ، که یک رابط REST ارائه می دهد که می تواند در قالب های JSON و XML پاسخ دهد.

GeoCoding در کدام کشورها موجود است؟

برای دیدن کشورهایی که در حال حاضر توسط GeoCoders پلتفرم Google Maps پشتیبانی می شوند ، لطفاً با داده های پوشش Google Maps مشورت کنید.

صحت مکانهای جغرافیایی ممکن است در هر کشور متفاوت باشد ، بنابراین شما باید از قسمت برگشتی مکان بازگشت_تایپ استفاده کنید تا مشخص شود که آیا یک مسابقه به اندازه کافی خوب برای اهداف برنامه شما پیدا شده است یا خیر. لطفاً توجه داشته باشید که در دسترس بودن داده های GeoCoding به قراردادهای ما با ارائه دهندگان داده بستگی دارد ، بنابراین در معرض تغییر است.

چرا GeoCoders پلت فرم Google Maps مکان های مختلفی نسبت به Google Maps ارائه می دهد؟

GeoCoder API GeoCoder و Google Maps گاهی اوقات از مجموعه داده های مختلف (بسته به کشور) استفاده می کنند. GeoCoder API گاهی اوقات با داده های جدید به روز می شود ، بنابراین می توانید انتظار داشته باشید که نتایج را با گذشت زمان تغییر یا بهبود می بخشد.

چگونه باید نمایش داده های GeoCoder خود را برای به حداکثر رساندن تعداد درخواست های موفق قالب بندی کنم؟

GeoCoder برای نقشه برداری آدرس های خیابانی به مختصات جغرافیایی طراحی شده است. بنابراین ما توصیه می کنیم که درخواست های GeoCoder را مطابق با دستورالعمل های زیر قالب بندی کنید تا احتمال یک سؤال موفق را به حداکثر برسانید:

  • آدرس ها را مطابق با فرمت استفاده شده توسط سرویس ملی پستی کشور مورد نظر مشخص کنید.
  • عناصر آدرس اضافی مانند نام تجاری ، شماره واحد ، شماره کف یا شماره های مجموعه را که در آدرس موجود نیست ، مطابق با سرویس پستی کشور مورد نظر مشخص نکنید. انجام این کار ممکن است منجر به پاسخ با ZERO_RESULTS شود.
  • قالب به علاوه کدهای همانطور که در اینجا نشان داده شده است (به علاوه علائم URL به %2B تبدیل شده و فضاها URL به %20 تبدیل شده اند):
    • کد جهانی یک کد منطقه 4 کاراکتر و 6 کاراکتر یا کد محلی طولانی تر است (849VCWC8+R9 849VCWC8%2BR9 است).
    • کد مرکب یک کد 6 کاراکتر یا طولانی تر با مکان صریح است (CWC8+R9 Mountain View ، CA ، USA CWC8%2BR9%20Mountain%20View%20CA%20USA ) است.
  • در صورت امکان از شماره خیابان یک فرضیه استفاده کنید.
  • در اولویت برای مشخص کردن خیابان های صلیب در صورت امکان از آدرس شماره خیابان استفاده کنید.
  • "نکات" مانند نقاط دیدنی در این نزدیکی را ارائه ندهید.
چگونه باید آدرس ایالات متحده را در یک بزرگراه شماره گذاری شده برای GeoCoding قالب بندی کنم؟

Google Maps Platform GeoCoder نیاز دارد که بزرگراه های شماره گذاری شده ایالات متحده در آدرس ها به شرح زیر مشخص شود:

  • جاده های شهرستان: "Co Road NNN " که NNN شماره جاده است. به عنوان مثال. "Co Road 82"
  • بزرگراه های ایالتی: " State NNN " که در آن ایالت نام کامل دولت است و NNN شماره بزرگراه است. به عنوان مثال. "California 82"
  • بزرگراه های ایالات متحده: "US NNN " که در آن شماره بزرگراه است. به عنوان مثال. "US 101"
  • Interstates ایالات متحده: "Interstate NNN " که NNN شماره بین المللی است. به عنوان مثال. "Interstate 280"
چه موقع باید از کلاس GeoCoder API استفاده کنم و چه زمانی باید از سرویس GeoCoding HTTP استفاده کنم؟

به سند مراجعه کنید: استراتژی های GeoCoding ، که جزئیات جوانب مثبت و منفی استراتژی های مختلف جغرافیایی را نشان می دهد.

چگونه می توانم مسیرهای رانندگی را با پلت فرم Google Maps ارائه دهم؟

سرویس محاسبات مسیرهای API و API مسیرها به شما امکان می دهد جهت های رانندگی را برای سفرهای یک و چند پا ارائه دهید. گزینه های مسیریابی به شما کمک می کند تا با یک حالت مسافرتی (رانندگی) ، یک یا مجموعه ای از مسیرها و محدودیت ها (بدون جاده عوارض) جهت ها را شکل دهید. این سرویس ها به اشکال زیر در دسترس هستند:

  • رابط درخواست/پاسخ HTTP (استفاده شده در موبایل و سایر برنامه ها) با نقشه SDK برای Android و سایر خدمات وب Google Maps سازگار است.
  • JavaScript API ، برای برنامه های سمت مشتری ، به شما امکان می دهد جهت رانندگی را از طریق کلاس Google.maps.DirectionSservice ارائه دهید. کلاس DirectionSrenderer می تواند به طور خودکار پانل Overlays و Directions را برای شما ایجاد کند. نمونه های اضافی در مستندات ارائه شده است.
  • Java ، Python ، Go و Node.js Client Client ، برای برنامه های سمت سرور ، همان عملکرد را ارائه می دهند. برای اطلاعات بیشتر در مورد کتابخانه های مشتری ، به کتابخانه های مشتری API مراجعه کنید.
در کدام کشورها جهت رانندگی در دسترس هستند؟

برای دیدن کشورهایی که در حال حاضر با استفاده از مسیرهای رانندگی در Google Maps Platform Products پشتیبانی می شوند ، با داده های پوشش Google Maps مشورت کنید. لطفاً توجه داشته باشید که در دسترس بودن داده های جهت رانندگی به قراردادهای ما با ارائه دهندگان داده بستگی دارد و در معرض تغییر است.

در کدام کشورها مسیرهای ترانزیت در دسترس هستند؟

API API و API از راه دور از همه شرکای ترانزیت Google پشتیبانی می کنند ، به جز مواردی که در ژاپن هستند.

کدام ویژگی های KML و Georss در نقشه های API JavaScript پشتیبانی می شوند؟

کلاس Kmllayer در نقشه های JavaScript API به توسعه دهندگان این امکان را می دهد تا پرونده های KML/KMZ و Georss را در بالای نقشه پوشش دهند. مستندات و نمونه ها را می توان در اینجا یافت.

محدودیت های اندازه و پیچیدگی KML که می تواند با استفاده از کلاس Kmllayer از نقشه های JavaScript API نمایش داده شود چیست؟

اندازه و محدودیت پیچیدگی در نمایش KML با استفاده از کلاس KmlLayer در اینجا ثبت شده است.

چگونه می توانم پرونده های KML را که در سایت های اینترانت میزبان هستند ، ارائه دهم؟

کلاس KmlLayer که در نقشه های JavaScript API پوشش KML ایجاد می کند ، از یک سرویس میزبان Google برای بازیابی و تجزیه پرونده های KML برای ارائه استفاده می کند. در نتیجه ، نمایش پرونده های KML که در URL میزبانی نشده اند که در دسترس عموم باشد ، یا نیاز به تأیید اعتبار برای دسترسی ندارد ، امکان پذیر نیست.

در صورت نیاز به توسعه برنامه هایی که از پرونده های KML میزبان در سایت های اینترانت استفاده می کنند ، توصیه می کنیم KML را با استفاده از کتابخانه های جاوا اسکریپت شخص ثالث در سمت مشتری ارائه دهید. از آنجا که پرونده KML توسط مرورگر مورد تجزیه و تحلیل قرار می گیرد ، ممکن است عملکرد با استفاده از کلاس KmlLayer کمتر باشد.

حداکثر تعداد نشانگرها یا راس های مسیر پشتیبانی شده توسط API استاتیک نقشه ها چیست؟

هیچ محدودیتی برای تعداد نشانگرها یا راس های مسیر پشتیبانی شده توسط API استاتیک نقشه ها وجود ندارد. هنگام استفاده از نمادهای سفارشی ، حداکثر پنج نماد منحصر به فرد در هر درخواست قابل مشخص است ، اما هر یک از آنها می تواند چندین بار در نقشه استفاده شود.

توجه داشته باشید که URL های API استاتیک نقشه ها می توانند حداکثر تقریباً 8192 کاراکتر را شامل شوند که تعداد نشانگرها و راس های مسیر را محدود می کند که می توانند بر اساس تعداد مکان های اعشاری مورد استفاده در هنگام مشخص کردن هر جفت عرض جغرافیایی مشخص شوند. برای کسب اطلاعات در مورد چگونگی ارتباط تعداد اعشاری مورد استفاده با صحت روی زمین ، به مقاله ویکی پدیا در مورد درجه های اعشاری مراجعه کنید.

چرا نمی توانم برای کشورهای خاص به محصولات پلت فرم Google Maps دسترسی پیدا کنم؟

API MAPS ممکن است در سرزمین های ممنوعه استفاده نشود. همچنین به شرایط خدمات مراجعه کنید.

چگونه می توانم مشکلی را در پایه Google گزارش کنم؟
ارسال بازخورد از طریق نقشه های Google برای اطلاعات اشتباه یا گمشده نقشه مانند:
  • آدرس های اشتباه یا مکان های نشانگر
  • نام های جاده ای نادرست
  • اطلاعات اشتباه در مورد جاده های یک طرفه و دو طرفه
  • جاده نادرست کشیده شده
  • جاده های بسته
  • جاده هایی که وجود ندارند

برای تصحیح یک مکان یا لیست مشاغل ، ویرایش را پیشنهاد دهید .

اگر باید به دلایل قانونی محتوا حذف شود ، درخواست قانونی ارسال کنید.

برای درخواست های حساس یا حساس به زمان ، یک مورد پشتیبانی را با جزئیات خاص در مورد آنچه باید برطرف شود ، تشکیل دهید.

چگونه عملکرد برای خدمات مورد استفاده در نقشه های JavaScript API کنترل می شود؟

برخی از ویژگی های سمت مشتری برای گزارش موفقیت یا عدم موفقیت به منظور محاسبه SLO (هدف سطح خدمات) استفاده شده است. این اطلاعات در maps.googleapis.com/maps_api_js_slo/log در تماس هایی که اطلاعات SLO را وارد می کنند ، به Google ارسال می شود. این اطلاعات شامل وضعیت موفقیت ، تأخیر و نسخه/کانال نقشه های API JavaScript در حال استفاده است. تماس ها ممکن است برای عملکرد انجام شود. لطفاً توجه داشته باشید که ممکن است لازم باشد که در خط مشی امنیت محتوای خود به maps.googleapis.com اجازه دهید تا اطمینان حاصل شود که این تماس ها در سطح مرورگر مسدود نشده است. به عنوان مثال: Content-Security-Policy: default-src 'self' maps.googleapis.com; با هدرهای HTTP ، یا <meta http-equiv="Content-Security-Policy" content="default-src 'self' maps.googleapis.com;"> با برچسب های متا HTML.

Maps JavaScript API

نقشه های JavaScript API پس از بارگیری چه مدت کار می کنند؟

شما باید صفحه ای را که حداقل یک بار 5 روز یک بار نقشه های JavaScript را بارگیری می کند ، تازه کنید.

Google Maps SDK برای iOS

چگونه می توانم خطا را حل کنم: kGMSPlacesRateLimitExceeded ؟
اگر این خطا را مشاهده می کنید ، ممکن است از نسخه مستهجن مکان های SDK برای iOS استفاده کنید. نسخه 2.7.0 از مکان های SDK برای iOS خاموش شده است و دیگر در دسترس نیست. لطفاً برنامه خود را به روز کنید تا در اسرع وقت از آخرین نسخه استفاده کنید. برای جزئیات بیشتر به راهنمای مهاجرت مراجعه کنید.
هنگام اشکال زدایی با دستگاه iOS 8.x ، تصادف می کنم. باید چکار کنم؟

اگر هنگام اشکال زدایی با دستگاه هایی که iOS 8.x را اجرا می کنند ، مشکلی را تجربه می کنید ، این مراحل را دنبال کنید تا ضبط قاب GPU را در طرح XCODE که در حال اجرا هستید غیرفعال کنید:

  1. در Xcode ، محصول ، طرح ، مدیریت طرح ها را انتخاب کنید.
  2. یک طرح را انتخاب کنید و ویرایش را انتخاب کنید ...
  3. گزینه GPU Frame Capture را روی Disabled تنظیم کنید. توجه داشته باشید که این گزینه ممکن است برای همه دستگاه ها وجود نداشته باشد.
گزینه ضبط قاب XCode در صفحه دستگاه iOS عمومی
تأثیر صفحه نمایش های گرد و گسترده تر در Google Maps iOS SDK چیست؟

با شروع آیفون X ، آیفون ها دارای شکل صفحه نمایش هستند که دارای گوشه های گرد ، شکاف در قسمت بالا برای محفظه سنسور دستگاه و یک نشانگر در پایین صفحه برای دسترسی به صفحه اصلی است. از نظر iOS 11.0 SDK ، اپل API منطقه امن را اضافه کرد و به توسعه دهندگان این امکان را می دهد تا عناصر را در منطقه ای قرار دهند که از شکل صفحه نمایش جدید در امان باشد.

Google Maps IOS SDK دارای عناصر و کنترل های بصری بسیاری است ، مانند یک انتخاب کننده داخلی و گزارش پیوند مشکل. با نسخه 2.4 ، این عناصر و کنترل های بصری می توانند با شکل صفحه نمایش جدید قطع شوند. در حالت چشم انداز ، انتخاب کننده کفپوش داخلی ممکن است توسط شکاف یا نشانگر دکمه خانه قطع شود.

با انتشار نسخه های Google Maps IOS SDK 2.5 ، این مشکلات طرح بندی به طور خودکار برطرف می شود. هنگامی که برنامه شما در آیفون X یا بعد از آن استفاده می شود ، بالشتک در GMSmapView و Gmspanoramaview افزایش می یابد تا عناصر بصری قطع نشوند.

به طور پیش فرض ، ما همیشه بالشتک شما را در بر می گیریم. Google Maps IOS SDK فرض می کند که بالشتک در نظر گرفته شده است که از داخل منطقه امن استفاده کند. اگر رابط کاربری خود را با این فرض طراحی کنید که همه چیز در منطقه امن قرار گرفته است ، این کار بدون هیچ تلاش اضافی کار خواهد کرد.

اگر رابط کاربری طراحی کرده اید که با تنظیم پیش فرض ما کار نمی کند ، ما یک ویژگی جدید را به GMSmapview با نام PaddingAdustmentBehavior معرفی کرده ایم. GMSmapView اکنون به شما امکان می دهد یکی از سه رفتار تنظیمات تنظیمات را انتخاب کنید: "همیشه" (پیش فرض) ، "اتوماتیک" و "هرگز".

اگر قرار است GmsMapView از رفتار "همیشه" استفاده کند ، همیشه قسمت های امن منطقه را به بالشتک اضافه می کند. این به شما امکان می دهد رابط خود را با این فرض که تمام محل قرارگیری از لبه های منطقه امن است ، طراحی کنید. این مقدار پیش فرض است.

اگر GmsMapView از رفتار بالشتک "اتوماتیک" استفاده کند ، همیشه بزرگتر از بالشتک یا قسمت امن منطقه را انتخاب می کند. این امر به شما امکان می دهد تا در حالی که همیشه اطمینان حاصل کنید که همه عناصر در منطقه امن باقی می مانند ، بالشتک را از لبه صفحه اضافه کنید.

اگر قرار است GmsMapView از رفتار "هرگز" استفاده کند ، هرگز به قسمت های امن منطقه ایمن به بالشتک اضافه نمی کند. این رفتار قبل از انتشار 2.5 است و اگر بالشتک شما از قبل منطقه امن را در نظر بگیرد ، یا اگر رفتارهای دیگر ما با رابط کاربری شما خوب عمل نمی کنند ، ممکن است مفید باشد. این وظیفه شماست که اطمینان حاصل کنید که آرم Google و اعلامیه های حق چاپ همیشه قابل مشاهده هستند ، همانطور که در شرایط خدمات پلت فرم Google Maps مشخص شده است.

در مقابل ، Gmspanoramaview خاصیت بالشتک اختیاری ندارد. این بدان معنی است که هیچ گونه بالینی برای تنظیم وجود ندارد و Gmspanoramaview همیشه از هر نوع بالشتک لازم استفاده می کند تا اطمینان حاصل شود که همه عناصر بصری در منطقه امن هستند.

Google Maps SDK برای Android

چگونه می توانم خطا را برطرف کنم: 9005 PLACES_API_RATE_LIMIT_EXCEEDED ؟
اگر این خطا را مشاهده می کنید ، ممکن است از یک نسخه مستهجن از مکان های SDK برای Android استفاده کنید. نسخه Google Play Services از مکان های SDK برای Android خاموش شده است و دیگر در دسترس نیست. لطفاً برنامه خود را به روز کنید تا در اسرع وقت از آخرین نسخه استفاده کنید. برای جزئیات بیشتر به راهنمای مهاجرت مراجعه کنید.
برنامه من فقط کاشی های خاکستری خالی را به جای نقشه نشان می دهد. چگونه می توانم این را حل کنم؟

یک دلیل رایج که کاشی های خاکستری خالی به جای نقشه نشان داده می شود ، مشکلات احراز هویت است. می توانید مراحل زیر را برای عیب یابی این موارد با استفاده از ADB LogCat دنبال کنید.

  1. اطمینان حاصل کنید که ADB نصب شده است. اگر اینطور نیست ، می توانید راهنمای را در اینجا دنبال کنید.
  2. برنامه ای را که مشکل را در یک دستگاه یا یک شبیه ساز اندرویدی نشان می دهد نصب کنید. اگر از Android Emulator استفاده می کنید ، اطمینان حاصل کنید که تنظیمات شبیه ساز شامل فروشگاه Play است.
  3. در ترمینال Android Studio ، adb logcat -e "Google Maps Android API" را اجرا کنید. این فقط خطوطی را چاپ می کند که در آن پیام ورود به سیستم با "Google Maps Android API" مطابقت دارد (به صورت اختیاری ، می توانید با ضمیمه:> logcat.txt ورود به یک پرونده متنی را وارد کنید.
  4. مسئله را در دستگاه خود بازتولید کنید و خطاهای متداول مانند:
    • کلید API اشتباه/ناخواسته در مانیفست ارجاع می شود.
    • صورتحساب در پروژه فعال نیست.
    • SDK در API های پروژه فعال نیست.
    • اثر انگشت نادرست SHA1 به محدودیت های اصلی API اضافه می شود.
    • وابستگی های سرویس Google Play در پرونده build.gradle گنجانده نشده است.

امضای URL

آیا می توانم URL ها را با استفاده از JavaScript امضا کنم؟

ما اکیداً در مورد امضای URL با استفاده از JavaScript توصیه می کنیم زیرا این امر می تواند راز URL شما را برای کاربران نهایی در معرض نمایش قرار دهد. بنابراین امضاها فقط باید توسط اجزای جانبی سرور ایجاد شوند.

چرا من یک پاسخ ممنوع HTTP 403 به درخواست های سرویس وب API نقشه های خود دریافت می کنم؟

پاسخ HTTP 403 نشانگر یک مسئله مجوز است ، به احتمال زیاد به دلیل اینکه امضای برای این درخواست قابل تأیید نیست. این می تواند به این دلیل باشد که:

  1. امضا مشخص شده است اما برای این درخواست نادرست است.
  2. این درخواست یک برنامه حق بیمه پلتفرم Google Maps یک کلید API را مشخص می کند اما امضای آن را مشخص نمی کند ، و این سرویس که خوانده می شود نیاز دارد که درخواست های انجام شده با استفاده از یک کلید API شامل یک امضای معتبر باشد.
  3. امضای مشخص شده است اما کلید API PLAN PLAM PLAMIUM PLATOM PLATOM PLATOM Google Associated مشخص نشده است.
،

شروع شدن

درک شرایط خدمات

محدودیت های استفاده و صورتحساب

با استفاده از پلتفرم Google Maps

خطا و عیب یابی

Google Maps Services Platform

Maps JavaScript API

Google Maps SDK برای iOS

Google Maps SDK برای Android

امضای URL

شروع شدن

پلت فرم Google Maps چیست؟

پلت فرم Google Maps مجموعه ای از API ها و SDK ها است که به توسعه دهندگان اجازه می دهد تا نقشه های Google را در برنامه های تلفن همراه و صفحات وب جاسازی کنند یا داده ها را از Google Maps بازیابی کنند. چندین پیشنهاد وجود دارد. بسته به نیاز خود ، ممکن است خود را با استفاده از یک یا ترکیبی از این API ها و SDK ها پیدا کنید:

نقشه ها:

مسیرها:

مکان ها:

محیط:

چگونه می توانم با سیستم عامل Google Maps شروع کنم؟

شروع به شروع با پلت فرم Google Maps کنید.

به کدام API نیاز دارم؟

برای کمک به یافتن API مناسب بر اساس نیازهای عملکردی خود ، به انتخاب API نگاهی بیندازید.

چگونه می توانم استفاده از API ها را در سایت خود شروع کنم؟

به نمای کلی ، توسعه دهنده مراجعه کنید و راهنماهای مربوط به API خاص یا SDK را که به آن علاقه مند هستید شروع کنید. به عنوان مثال ، راهنماهای نقشه SDK را برای Android یا Maps JavaScript API بررسی کنید.

پلتفرم نقشه های Google کدام کشورها را پوشش می دهد؟

The Google Maps team is constantly pushing new map data out and increasing our international coverage. Consult the Google Maps coverage data for the latest coverage information. You can filter the data with the filter box at the top of the page. Please note that coverage data can change if licensing agreements with the data providers change.

همچنین مشاهده کنید:

Can I put Google Maps on my site without using Google Maps Platform products?

آره. Google Maps now offers the ability to embed the map that you're viewing into your website or blog, without any programming or use of the Google Maps Platform. اطلاعات بیشتری اینجا در دسترس است .

How do I deliver Maps applications on mobile devices?

To incorporate maps in an Android application, use the Maps SDK for Android .

To incorporate maps in a native iOS application, use the Maps SDK for iOS .

The Maps JavaScript API has been developed to cater to mobile devices, and is suitable for browser applications targeted at both the desktop and devices that include a web browser with a full JavaScript implementation, such as the Apple iPhone.

For applications targeted at devices not suitable for using the Maps JavaScript API, the Maps Static API delivers map images in GIF, JPG, and PNG formats, including markers and polylines. Note that use of the Maps Static API outside of browser based applications requires that the map image be linked to Google Maps.

Which web browsers do the Maps JavaScript API and Maps Embed API support?

The Maps JavaScript API and Maps Embed API support the following web browsers:

دسکتاپ
  • The current version of Microsoft Edge (Windows), excluding IE mode.
  • The two latest major stable versions of Firefox (Windows, macOS, Linux).
  • The two latest major stable versions of Chrome (Windows, macOS, Linux).
  • The two latest major stable versions of Safari (macOS).
اندروید
  • The current version of Chrome on Android 4.1+.
  • Chrome WebView on Android 4.4+.
iOS
  • Mobile Safari on the current and previous major versions of iOS.
  • UIWebView and WKWebView on the current and previous major versions of iOS.
  • The current version of Chrome for iOS.
Can I print maps from the Maps JavaScript API?

Printing from the Maps JavaScript API is not supported. This is because printing support is inconsistent across commonly used browsers.

How can I be notified when there are changes to Google Maps Platform products?

You should subscribe to the Google Maps Platform Blog for news updates across the various Google Geo developer offerings.

How do I contact technical support?

See Google Maps Platform Support and Resources for information about available support options.

When is technical support available?
The support team is available 24x5 (weekdays from Monday 9 am Tokyo time to Friday 5 pm Pacific time) excluding regional holidays for "service unusable" issues.
How can I recover access to my Google Account?

If you lost access to your Google Account (eg joe@mycompany.com or joe@gmail.com), you can try restoring the account access by retrieving or resetting your password. Visit the How to recover your Google Account or Gmail article in Google Account Help.

How can I recover access to a specific project?

If you lost access to the project where you manage your Google Maps Platform implementation, you can try to recover it.

If you have access to your project-associated Google Account:

If you do not have access to your project-associated Google Account:

Can I use the Maps and Places SDK for iOS on Arm-based Macs?

Developing on the new Arm-based Macs is possible, however, it requires building and running on a physical iOS device. This is a temporary limitation while we look into adding more support for developing on simulators.

Understanding the terms of service

What are the terms of service for Google Maps Platform products?

The Google Maps Platform Terms of Service are available at:

https://cloud.google.com/maps-platform/terms

Does my site meet the Google Maps Platform Terms of Service?

You can use the Google Maps Platform within your applications as long as your site meets the Google Maps Platform Terms of Service .

However, there are some uses of the Google Maps Platform that we just don't want to see: maps that identify the places to buy illegal drugs in a city, for instance, or any other illegal activity. We also respect people's privacy, so the Google Maps Platform shouldn't be used to identify private information about individuals.

You should use your own counsel to determine whether your application complies with the Google Maps Platform Terms of Service before you develop and launch it. Google engineers can only offer technical assistance and are not qualified to offer legal advice. Google reserves the right to suspend or terminate your use of the service at any time, so please read the Maps APIs Terms carefully.

Can I directly access map tiles and satellite imagery?

You may not access map tiles or satellite imagery through any mechanism besides the Google Maps Platform (such as the creation of your own mapping API or the use of a bulk tile download script). Your application's access to the tiles will be blocked if it accesses them outside of the Google Maps Platform. See the Google Maps Platform Terms of Service for more details.

Can I use Google Maps Platform products for tracking applications?

There is no restriction on displaying real-time data (tracking) with Google Maps Platform products provided that the application complies with the Google Maps Platform Terms of Service.

Can I use Google Maps in my non-Web application?

Yes, Google Maps Platform products can now be used in non-Web applications, provided that they adhere to the other restrictions of the Google Maps Platform Terms of Service.

The Maps JavaScript API is only supported when run in one of the supported browsers .

Can I use Google Maps Platform products on a site that is password protected?

Yes, Google Maps, Routes, Places, and Environment services can be used with private-access applications. See the Google Maps Platform Terms of Service for more details.

Can I create an application that includes Google Maps Platform data in a document?

If your application generates a document, either in electronic or printed form, no data from Google Maps Platform, including images, may be included in the document. Please see the Google Maps Platform Terms of Service "No Scraping" section for more details.

How can I opt out of including my content in Google search results?

We are no longer collecting this data. The use of the indexing parameter has been deprecated and has no effect. You no longer need to opt out explicitly, but we encourage you to remove this parameter at your earliest convenience.

To remove your page or site from search results, follow the instructions provided in our webmaster help center.

Can I generate a map image using the Maps Static API which I store and serve from my website?

You may not store and serve copies of images generated using the Maps Static API from your website. All web pages that require static images must link the src attribute of an HTML img tag or the CSS background-image attribute of an HTML div tag directly to the Maps Static API so that all map images are displayed within the HTML content of the web page and served directly to end users by Google.

Usage limits and billing

How do I set up billing for my project?
See Get Started with Google Maps Platform .
How do Google Cloud Platform Free Tier customers upgrade to a paid account?
The Google Cloud Platform Free Tier program provides customers a no-charge trial with a $300 credit to use with any Google Cloud Platform (GCP) service, including the Google Maps Platform (GMP) APIs. When the no-charge trial ends, you must upgrade to a paid account to continue using these services. To upgrade to a paid account, visit the Cloud Console .
Does the Google Maps Platform have usage limits?

There are no maximum daily limits on the number of requests you can make to Google Maps Platform products, and the only usage limits are related to the maximum number of queries per second (QPS) or queries per minute (QPM).

For Distance Matrix, the limit is set in events per second (EPS) calculated as the sum of client-side and server-side queries.

For Routes:Compute Route Matrix, the limit is in elements per minute (EPM), where the number of elements in a request is equal to: (number of origins × number of destinations).

The following table shows the usage limit for each API.

API محدودیت استفاده
اعتبار سنجی آدرس 6,000 QPM
Aerial View: Lookup Video 180 QPM and 100,000 QPD
Aerial View: Render Video 100 QPM and 100 QPD
کیفیت هوا 6,000 QPM
جهت ها 3,000 QPM
ماتریس فاصله 60,000 EPM
نقشه های پویا 30,000 QPM
ارتفاع 6,000 QPM
ژئوکدینگ 3,000 QPM
موقعیت جغرافیایی 6,000 QPM
Map Tiles API: 2D Tiles and Street View Tiles 6,000 QPM and 15,000 QPD
Map Tiles API: Photorealistic 3D Tiles 300 QPD
Map Tiles API: Photorealistic 3D Tiles: Renderer 12,000 QPM
مکان ها 6,000 QPM
گرده 6,000 QPM
جاده ها 30,000 QPM
Routes: Compute Routes 3,000 QPM
Routes: Compute Route Matrix 3,000 EPM
خورشیدی 600 QPM
نقشه های ایستا 30,000 QPM
Street View Image API 30,000 QPM
منطقه زمانی 30,000 QPM

In order to govern expenditures, you can monitor your API usage , and set daily limits to all requests to any billable API.

Google Maps Platform products must be deployed in compliance with the standard Google Maps Platform Terms of Service .

How is usage cost calculated?

For an overview of pricing for the Google Maps Platform products, please see the Pricing Sheet .

To learn more about how Google Maps Platform APIs are billed, please see Understanding billing for Maps, Routes, Places, and Environment .

How are map loads counted on the Google Maps Platform?

A single map load is charged when any of the following occur:

  • A web page or application displays a map using the Maps JavaScript API.
  • An application requests a single map image from the Maps Static API.

Street View panoramas are charged separately from map loads:

  • A static Street View panorama is charged for each request to the Street View Static API to embed a static (non-interactive) Street View panorama.
  • A dynamic Street View panorama is charged for each instantiation of a panorama object in a Maps JavaScript API, Maps SDK for Android, or Maps SDK for iOS application.

After a web page or application loads a map, or a static map image, or a Street View panorama, any user interactions with it, such as panning, zooming, or switching map layers, do not generate additional map loads or affect usage limits.

Adding a marker will not generate additional map loads, but may generate charges around how the pin location was determined (such as loading or reloading the `google.maps.Map()` class.)

How do I monitor my usage?

You can monitor the usage of individual APIs in the Google Cloud Console .

  1. Select the project that contains the API you want to review.
  2. From the list of APIs on the Dashboard, click the name of the API.
  3. Near the top of the page, click Metrics or Quotas .

To see a traffic report and billing information for an entire project, follow these steps:

  1. If you haven't already done so, set up billing .
  2. Go to the Cloud Console billing page .
  3. Select a project.
  4. In the left sidebar, click Reports . Use the filters on the right sidebar to view reports on your billing account.

To learn more, see Google Maps Platform Reporting as well as Monitoring your API Usage and Capping API Usage .

What happens if I exceed the request rate (QPS) limits?

If you exceed the QPS limits of a given Google Maps Platform product, the API will return an error message. If you repeatedly exceed the limits, your access to the API may be temporarily blocked.

If you exceed the request QPS limits or otherwise abuse the service, requests will return a specific error message. If you continue to exceed limits, your access to the Google Maps Platform may be blocked.

Note: Four of the web service APIs have an equivalent client-side service available in the Maps JavaScript API: Directions , Distance Matrix , Elevation , and Geocoding .

Usage limits exceeded

If you exceed the usage limits you will get an OVER_QUERY_LIMIT status code as a response.

This means that the web service will stop providing normal responses and switch to returning only status code OVER_QUERY_LIMIT until more usage is allowed again. This can happen within a few seconds, if the error was received because your application sent too many requests per second.

If you regularly exceed your QPS usage limits, consider lowering usage, by optimizing applications to use Google Maps Platform products more efficiently. See the Optimization Guide for more information.

My site gets a lot of traffic. Can I use Google Maps Platform products?

آره. However we recommend that you familiarize yourself with the usage limits for any of the Google Maps Platform that your application relies on.

Once you have a billing account, if you exceed the no-charge, $200-monthly usage limit and you do not have a valid payment method on your billing account (credit card, bank transfer, ...), the API ceases to function until you add a valid payment method.

How will usage be calculated and billed?

Usage is calculated at the end of each day, and priced as shown in the Pricing Sheet . At the end of every month, the total usage is charged to the payment method associated with your billing account. For more information, see Google Maps Platform Billing .

How much does it cost to use the Google Maps Platform?

See the Pricing Sheet for an overview of cost per API. If your application generates requests or map load volumes up to $200 per month usage, your usage is not charged. Usage that exceeds the $200 monthly credit will be charged to your billing account. For more details, see our guide to understanding Google Maps Platform billing .

Is pricing available in other currencies?

Additional currencies may be available within the console. When you select a different currency, rates will convert from the USD equivalent listed on our Pricing Sheet .

I've set up billing. How do I view my bill?

Google charges you at the beginning of each month for the previous month's activity, using your specified payment method . For details about your bill, see our guide to understanding Google Maps Platform billing .

منابع اضافی:

How do I avoid a large bill if my usage unexpectedly increases?

The Google Maps Platform provides ways to set daily request limits and set maximum daily billable limits. You can cap the maximum daily limit on usage to protect against unexpected increases. You can also set budget alerts to receive email notifications when the charges on the billing account reach a threshold you set.

Capping the maximum daily billable limit:

To avoid a large bill, you can set a daily cap on usage to protect against unexpected increases in use. You can change this limit in the Cloud Console by taking the following steps:

  1. Go to the APIs & Services Dashboard .
  2. Select a project if prompted.
  3. Select an API from the list, then click the Quotas tab.
  4. Click the edit icon next to the "requests per day" quota.

Alternatively, you can edit multiple quotas for multiple APIs using the IAM & admin Quotas dashboard .

Setting and managing budget alerts:

Set up budget alerts to send email notifications to billing administrators when the charges on the billing account reach a threshold you set. Billing administrators will be sent email notifications when the estimated charges on the billing account exceed 50%, 90%, and 100% of the threshold.

I got a message saying that my project is linked to the "Google Maps Platform Transition Account", but I don't have access to that account. چکار کنم؟

The "Google Maps Platform Transition Account" was created to help certain customers transition to our new pay-as-you-go pricing plan. This transition account enabled Google to provide these customers with a one-time credit, so that they could continue using Google Maps Platform up to the limit of the $200 no-charge tier. Once this limit is exceeded, the billing account will shut down and you will lose access to the service. To avoid service interruptions, we urge you to set your own billing account, and continue to enjoy the $200 monthly no-charge tier. To change the billing account for your project:

  1. Create a new billing account (if you already have a billing account, you can skip this step).
  2. Associate the billing account with your project .
Why is my quota limit set to 1 request per day? How can I raise this limit?

If you have not created and attached a billing account to your project, your Maps Platform APIs will be limited to 1 request per day. You can get higher quota by creating and attaching a billing account. To do this, see Get Started with Google Maps Platform .

Once you have created and attached a billing account, your daily quota limit will be removed. You can decide to set a limit to prevent unexpected spend, in the Cloud Console .

I received a billing violation notice. How do I resolve this?

You have received this notice because Google has determined that your account has been using multiple billing accounts. This is a violation of Google's terms, as defined in section 3.2.4 of the Google Maps Platform Terms of Service . Under these terms, it is forbidden to create multiple billing accounts. To learn more, see the Billing Account Violation FAQ .

Using the Google Maps Platform

Which keys or credentials should I use for different Maps products?

Each time you use Google Maps Platform products, you must include an API key to validate your request. The Google Maps Platform is available for Android, iOS or Web apps, and via HTTP web services.

کلید ای پی ای:

  • An API key is a unique identifier that you generate using the Cloud Console .
  • Example of loading an API with a key: &key=AIzaSyBjsINSH5x39Ks6c0_CoS1yr1Mb3cB3cVo

امضای دیجیتالی:

  • A digital signature is generated using a URL signing secret provided to you by Google. Digital signatures are used with the Maps Static API and Street View Static API.

محدودیت های:

  • API key restrictions are optional, but we strongly recommend you restrict all API keys for greater security. See API security best practices for more details.
  • You can add an application restriction to the API key. Once restricted, a key will only work on platforms that support that type of restriction. Four types of application restrictions are available. APIs enforcing the same restriction type can use the same restricted key.
    • IP addresses (individual servers) - for use with the web service APIs .
    • HTTP referrers (web sites) - for use with the web APIs .
    • Android app restriction (by package name and fingerprint) - for use with the Maps SDK for Android .
    • iOS app restriction (by iOS bundle identifier) - for use with the Maps SDK for iOS .
  • You can also add an API restriction to the API key. For more information, see Get, add, and restrict an API key .

The table below indicates the key/credential and application restriction for each Google Maps Platform API/SDK.

API/SDK Credential & Application Restriction
Maps SDK برای اندروید API key with Android restriction 1
مکان‌های SDK برای Android API key with Android restriction 1
Maps SDK برای iOS API key with iOS restriction 1
مکان‌های SDK برای iOS API key with iOS restriction 1
Maps JavaScript API API key with HTTP referer restriction 1
Map Tiles API API key with IP address restriction 1
Aerial View API API key with IP address restriction 1
Maps Static API API key with HTTP referer restriction 1 + Digital Signature 2
API استاتیک نمای خیابان API key with HTTP referer restriction 1 + Digital Signature 2
Maps Embed API API key with HTTP referer restriction 1
Address Validation API API key with IP address restriction 1
Directions API API key with IP address restriction 1
Distance Matrix API API key with IP address restriction 1
Elevation API API key with IP address restriction 1
API کدگذاری جغرافیایی API key with IP address restriction 1
API مکان جغرافیایی API key with IP address restriction 1
Places API API key with IP address restriction 1
Roads API API key with IP address restriction 1
Routes API API key with IP address restriction 1
API منطقه زمانی API key with IP address restriction 1
API کیفیت هوا API key with IP address restriction 1
Pollen API API key with IP address restriction 1
API خورشیدی API key with IP address restriction 1
1 API key restrictions are optional, but we strongly recommend you restrict all API keys for greater security.
2 Depending on usage, a digital signature may be required for the Maps Static API and Street View Static API . Regardless of usage, we strongly recommend that you use both an API key and a digital signature to authenticate your requests.
How do I switch my key restriction type from an HTTP referer to an IP address restriction?

Important: If you are using any of the web service APIs with an API key that has referer restrictions, your requests will fail with the error message: "API keys cannot have referer restrictions when used with this API." You should switch to using an API key with IP address restrictions.

Before you switch the API key restriction type from HTTP referer to IP address, ensure that all the APIs that use the API key support the IP restriction type. APIs of the same restriction type can use the same restricted key. If you need to enforce more than one restriction, add a separate key with the required restriction. See how to add a new API key .

Learn more about API key restrictions associated with Google Maps Platform products .

To switch an API key with HTTP referer restriction to IP address restriction, do the following:

  1. Go to the Credentials page of the Cloud Console.
  2. Select the project that contains the API key you want to edit.
  3. On the Credentials page, from the list of API keys, select the name of the API key to edit the details of the key.
  4. In the Key restriction section of the page, select “IP addresses (web servers, cron jobs, etc.)” and insert the appropriate server IP addresses, then click Save.
How do I get a new API key?
See Get Started with Google Maps Platform .
How can I find the changes introduced in each version of the Google Maps APIs?

Version change information for many of the Maps APIs are available at the following links:

You can also check which version of the Google Maps Platform a particular bug was introduced and fixed in using the Google Maps Platform Issue Tracker at:

https://issuetracker.google.com/bookmark-groups/76561

How can I load the API into a page asynchronously after the page has loaded?

Just specify the callback parameter when loading the API. More information and sample code can be found in the Getting Started chapter of the Maps JavaScript API documentation.

How can I get Google Maps Platform products to display in a language other than English?

By default the API will attempt to load the most appropriate language based on the users location or browser settings. Some APIs allow you to explicitly set a language when you make a request. More information on how to set the language is available in the documentation for each API:

Supported Languages:

Google often updates supported languages. This list may not be exhaustive and is subject to change.

Language Code زبان Language Code زبان
af آفریقایی ja ژاپنی
مربع آلبانیایی kn کانادا
صبح آمهری kk قزاقی
ar عربی کیلومتر خمر
هی ارمنی ko کره ای
az آذربایجانی ky قرقیزستان
اتحادیه اروپا باسکی اینجا لائوس
بودن بلاروسی lv لتونی
bn بنگالی آن لیتوانیایی
لیسانس بوسنیایی mk مقدونی
bg بلغاری ام‌اس مالایی
من برمه ای میلی لیتر مالایایی
حدود کاتالان آقای مراتی
zh چینی ها دقیقه مغولی
zh-CN زبان چینی ساده شده) ne نپالی
zh-HK چینی (هنگ کنگ) نه نروژی
zh-TW چینی (سنتی) pl لهستانی
ساعت کروات pt پرتغالی
cs کشور چک pt-BR پرتغالی (برزیل)
دا دانمارکی pt-PT پرتغالی (پرتغال)
nl هلندی pa پنجابی
en انگلیسی ro رومانیایی
en-AU English (Australian) ru روسی
en-GB English (Great Britain) sr صربی
et استونیایی si سینهالی
فا فارسی sk اسلواکی
فی فنلاندی sl اسلوونیایی
فایل فیلیپینی es اسپانیایی
fr فرانسوی es-419 اسپانیایی (آمریکای لاتین)
fr-CA فرانسوی (کانادا) sw سواحیلی
gl گالیسیایی sv سوئدی
کا گرجی تا تامیل
de آلمانی شما تلوگو
el یونانی هفتم تایلندی
Gu گجراتی tr ترکی
iw عبری انگلستان اوکراینی
سلام هندی ur اردو
هو مجارستانی uz ازبکستان
است ایسلندی vi ویتنامی
شناسه اندونزیایی zu زولو
آی تی ایتالیایی

You can see what the map will look like in any of the languages listed above in this sample application .

Can the Google Maps Platform be accessed over SSL (HTTPS)?

The Maps JavaScript API, Maps Static API, and Web Service APIs can be accessed over secure (HTTPS) connections. Please see the documentation for the API concerned for information on how to access the API over SSL.

Note that the Maps Static API does not support custom icon URLs that use HTTPS; the default icon will be displayed.

How do I report a bug or request a new feature in the Google Maps Platform?

If you experience behavior that you believe may be a bug, please begin by raising it in the relevant forum . This will allow other developers to validate the bug, and rule out any potential issues with your code.

If you wish to request a feature, please also first raise it in the relevant forum to confirm that a solution that meets your requirements is not already available.

Once you have confirmed that you have identified a new bug, or that your requirements cannot be met by the existing functionality of the Google Maps Platform products, please report your bug or feature request using the Google Maps Platform Issue Tracker .

Before adding a bug or feature request to the Issue Tracker please be sure to check that the bug or feature concerned has not already been added. If it has, you can star the issue to register your interest and be notified of updates.

How do Google Maps Platform APIs use site cookies?

Maps SDK for Android and Maps SDK for iOS use cookies subject to Google's Privacy Policy , such as calculating daily and 7-day active users and service abuse prevention. These cookies are not associated with any signed-in Google Account and are not logged with the rest of the information collected from the API calls.

I can't find the answer to my question. با چه کسی تماس بگیرم؟

Google's Developer Relations team maintains a presence on Stack Overflow — a collaboratively-edited question and answer site for programmers. It's a great place to ask technical questions about developing and maintaining Google Maps applications. More information about asking questions on Stack Overflow is available on the Support page.

For best results when requesting help, please keep the following in mind:

  • Search the current discussions. Chances are someone else has experienced a similar issue and found a fix.
  • Submit a link to your site if possible. Only post code snippets if the code is not easily viewable online.
  • Provide all relevant information including browser versions, errors, and all other facts that may be useful in troubleshooting this problem.

Errors and troubleshooting

این خطا به چه معناست؟

If you encounter an error while loading or running the Google Maps APIs, please see the following links to find explanations for the error codes:

My maps appear darker than usual. چه اتفاقی می افتد؟

Under certain circumstances, a darkened map, or 'negative' Street View image, watermarked with the text "for development purposes only", may be displayed. This behavior typically indicates issues with either an API key or billing. To use Google Maps Platform products, you must have a billing account and all requests must include a valid API key. The following flow will help troubleshoot this:


How do I resolve the error codes: OVER_DAILY_LIMIT or OVER_QUERY_LIMIT ?
These error codes can be returned for any of the following reasons:
  • An API key is missing from the request.
  • The provided API key is invalid.
  • The project does not have a billing account attached.
  • A self-imposed usage cap has been exceeded.
  • The provided method of payment is no longer valid (for example, a credit card has expired).
  • You have exceeded the QPS limits for a given API.

To use Google Maps Platform products, you must have a billing account, and all requests must include a valid API key. To fix this, take the following steps:

How do I resolve the error codes: kGMSPlacesRateLimitExceeded or 9005 PLACES_API_RATE_LIMIT_EXCEEDED ?
If you are seeing kGMSPlacesRateLimitExceeded or 9005 PLACES_API_RATE_LIMIT_EXCEEDED , you may be using a deprecated version of the Places SDK for Android or Places SDK for iOS. Learn more and find the new SDKs at https://goo.gle/places-sdk-deprecation .
How do I resolve the error: "This IP, site or mobile application is not authorized to use this API key."?

There are various scenarios which may cause this error:

  • You've enabled IP address (server) restrictions on your API key, and an unauthorized IP address is attempting a request.
  • You've enabled HTTP referrer (website) restrictions on your API key, and an unauthorized referrer is attempting a request.
  • You've restricted usage to your Android apps by setting a package name and fingerprint, and an unauthorized Android app is attempting a request.
  • You've restricted requests from iOS apps by specifying bundle identifiers and an unrecognized iOS app is attemting to send a request.
  • It used to be possible to get this error if you used any of the web service APIs , with an API key with HTTP referer restrictions. Requests to those APIs should be identified with an API key with IP address restrictions. Switch your key restriction type from an HTTP referer restriction to an IP address restriction . For more information about restricting API keys, see API Key Best Practices .

View and Edit your API Key Credentials

To view your API keys and manage any restrictions, do the following:

  1. Go to the Credentials page of the Cloud Console.
  2. Select the project that contains the API key you want to review.
  3. To view credential details, including any restrictions set for the key, from the list of API keys, click the name of the key.
  4. The full credentials of the selected API key are displayed, including any restrictions set up for the key. From here, the restrictions can be changed, deleted, or updated as needed.
How do I resolve the error: "API keys with referer restrictions cannot be used with this API."?

You are using any of the web service APIs with an API key restricted to an HTTP referer. For security reasons, web service APIs need to use API keys restricted to IP addresses . Switch your key restriction type from an HTTP referer restriction to an IP address restriction , or create a new API key if your key is already used with the Maps JavaScript API.

Google Maps Platform Services

I need to convert addresses to latitude/longitude pairs. Can I do that with the Google Maps Platform?

Yes, this process is called "geocoding." The Maps JavaScript API includes a class for performing a geocoding service. The class is: google.maps.Geocoder .

Alternatively, Google also provides the Geocoding API , which offers a REST interface that can respond in JSON and XML formats.

Which countries is geocoding available in?

To see countries currently supported by the Google Maps Platform geocoders, please consult the Google Maps coverage data .

The accuracy of geocoded locations may vary per country, so you should consider using the returned location_type field to determine if a good enough match has been found for the purposes of your application. Please note that the availability of geocoding data depends on our contracts with data providers, so it is subject to change.

Why do the Google Maps Platform Geocoders provide different locations than Google Maps?

The API geocoder and Google Maps geocoder sometimes use different data sets (depending on the country). The API geocoder occasionally gets updated with new data, so you can expect to see results changing or improving over time.

How should I format my geocoder queries to maximise the number of successful requests?

The geocoder is designed to map street addresses to geographical coordinates. We therefore recommend that you format geocoder requests in accordance with the following guidelines to maximize the likelihood of a successful query:

  • Specify addresses in accordance with the format used by the national postal service of the country concerned.
  • Do not specify additional address elements such as business names, unit numbers, floor numbers, or suite numbers that are not included in the address as defined by the postal service of the country concerned. Doing so may result in responses with ZERO_RESULTS .
  • Format plus codes as shown here (plus signs are url-escaped to %2B and spaces are url-escaped to %20 ):
    • global code is a 4 character area code and 6 character or longer local code (849VCWC8+R9 is 849VCWC8%2BR9 ).
    • compound code is a 6 character or longer local code with an explicit location (CWC8+R9 Mountain View, CA, USA is CWC8%2BR9%20Mountain%20View%20CA%20USA ).
  • Use the street number of a premise in preference to the building name where possible.
  • Use street number addressing in preference to specifying cross streets where possible.
  • Do not provide 'hints' such as nearby landmarks.
How should I format a US address on a numbered highway for geocoding?

The Google Maps Platform geocoder requires that US numbered highways be specified in addresses as follows:

  • County Roads: "Co Road NNN " where NNN is the road number. به عنوان مثال. "Co Road 82"
  • State Highways: " State NNN " where State is the full name of the state and NNN is the highway number. به عنوان مثال. "California 82"
  • US Highways: "US NNN " where NNN is the highway number. به عنوان مثال. "US 101"
  • US Interstates: "Interstate NNN " where NNN is the interstate number. به عنوان مثال. "Interstate 280"
When should I use an API geocoder class and when should I use the HTTP Geocoding Service?

See the document: Geocoding Strategies , which details the pros and cons of different geocoding strategies.

How do I provide driving directions with the Google Maps Platform?

The Compute Routes service of the Routes API and the Directions API allow you to provide driving directions for single and multi-leg journeys. Routing options help you shape directions with a travel mode (driving), a single or a set of routes, and restrictions (no toll roads). These services are available in the following forms:

  • HTTP request/response interface (used in mobile and other applications) is compatible with Maps SDK for Android and with other Google Maps web services.
  • JavaScript API , for client-side applications, allows you to provide driving directions via the google.maps.DirectionsService class. The DirectionsRenderer class can automatically create the overlays and directions panel for you. Additional examples are provided in the documentation.
  • Java, Python, go, and Node.js client interfaces , for server-side applications, provide the same functionality. For more information on client libraries, see Directions API client libraries .
In which countries are driving directions available?

To see countries currently supported by driving directions in the Google Maps Platform products, consult the Google Maps coverage data . Please note that the availability of driving directions data depends on our contracts with data providers, and is subject to change.

In which countries are transit directions available?

The Directions API and Distance Matrix API support all Google Transit partners , except those in Japan.

Which KML and GeoRSS features are supported in the Maps JavaScript API?

The KmlLayer class in the Maps JavaScript API enables developers to overlay KML/KMZ and GeoRSS files on top of the map. Documentation and examples can be found here .

What are the limits on the size and complexity of KML that can be displayed using the KmlLayer class of the Maps JavaScript API?

The size and complexity limits on the display of KML using the KmlLayer class are documented here .

How do I render KML files that are hosted on intranet sites on a map?

The KmlLayer class that generates KML overlays in the Maps JavaScript API uses a Google hosted service to retrieve and parse KML files for rendering. Consequently it is not possible to display KML files that are not hosted at a URL that is available publicly accessible, or that require authentication to access.

If you need to develop applications that use KML files hosted on intranet sites we recommend that you render the KML on the client side by using third-party JavaScript libraries. As the KML file is analyzed by the browser, performance may be lower than by using the KmlLayer class.

What is the maximum number of markers or path vertices supported by the Maps Static API?

There is no limit to the number of markers or path vertices supported by the Maps Static API. When using custom icons, up to five unique icons can be specified per request, but each can be used multiple times within the map.

Note that Maps Static API URLs can contain a maximum of approximately 8,192 characters which constrains the number of markers and path vertices that can be specified based on the number of decimal places used when specifying each latitude/longitude pair. For information on how the number of decimal places used relates to the accuracy on the Earth see the Wikipedia article on Decimal Degrees .

Why can't I access Google Maps Platform products for certain countries?

Maps APIs may not be used in Prohibited Territories . Refer also to the Terms of Service .

How do I report a problem on the Google basemap?
Send feedback through Google Maps for wrong or missing map information such as:
  • Wrong addresses or marker locations
  • Incorrect road names
  • Wrong information about one-way and two-way roads
  • Incorrectly drawn road
  • جاده های بسته
  • Roads that don't exist

For correction of a place or business listing, suggest an edit .

If Maps content needs to be removed for legal reasons, submit a legal request.

For critical or time-sensitive requests, file a support case with specific details on what needs to be fixed.

How is performance monitored for the services used with Maps JavaScript API?

Some client-side features are instrumented to report success or failure for the purpose of calculating the SLO (Service Level Objective). This information is sent to Google at maps.googleapis.com/maps_api_js_slo/log in calls that log SLO information. This information includes success status, latency, and version/channel of the Maps JavaScript API in use. The calls may be batched for performance. Please note that you may need to allow maps.googleapis.com in your Content Security Policy to ensure these calls are not blocked at browser-level. For example: Content-Security-Policy: default-src 'self' maps.googleapis.com; with HTTP headers, or <meta http-equiv="Content-Security-Policy" content="default-src 'self' maps.googleapis.com;"> with HTML Meta Tags.

Maps JavaScript API

How long will the Maps JavaScript API work after it has been loaded?

You need to refresh the page that loads the Maps JavaScript API at least once every 5 days.

Google Maps SDK for iOS

How do I resolve the error: kGMSPlacesRateLimitExceeded ?
If you are seeing this error, you may be using a deprecated version of the Places SDK for iOS. Version 2.7.0 of the Places SDK for iOS has been turned off, and is no longer available. Please update your app to use the latest version as soon as possible. See the migration guide for details.
I'm getting crashes when debugging with an iOS 8.x device. باید چکار کنم؟

If you experience issues when debugging with devices running iOS 8.x, follow these steps to disable GPU frame capture in the XCode scheme you are running:

  1. In XCode, choose Product , Scheme , Manage Schemes .
  2. Select a scheme and choose Edit... .
  3. Set the GPU Frame Capture option to Disabled . Note that this option may not be present for all devices.
Xcode GPU Frame Capture option on the Generic iOS device page
What's the impact of rounded and wider screens on the Google Maps iOS SDK?

Beginning with the iPhone X , iPhones have a screen shape featuring rounded corners, a notch at the top for the device's sensor housing, and an indicator at the bottom of the screen for accessing the Home screen. As of iOS 11.0 SDK, Apple added the Safe Area API allowing developers to position elements in an area which is safe from being clipped by the new screen shape.

The Google Maps iOS SDK has many visual elements and controls, such as an indoor picker and the report a problem link. With version 2.4, these visual elements and controls could be clipped by the new screen shape. In landscape mode, the indoor floor picker may be clipped by either the notch or the home button indicator.

With the Google Maps iOS SDK 2.5 release these layout issues are fixed automatically. When your app is used on an iPhone X or later, the padding on GMSMapView and GMSPanoramaView are increased so that the visual elements aren't clipped.

By default, we will always include your padding. The Google Maps iOS SDK assumes that padding is intended to pad from within the safe area. If you design your interface with the assumption that everything is positioned within the safe area, this will work without any extra effort.

If you have designed an interface which doesn't work with our default adjustment, we have introduced a new property to GMSMapView, called paddingAdjustmentBehavior . GMSMapView now allows you to pick from one of three padding adjustments behaviors: 'Always' (default), 'Automatic', and 'Never'.

If GMSMapView is set to use the 'Always' padding behavior, it will always add the safe area insets to the padding. This allows you to design your interface with the assumption that all placement is from the edges of the safe area. این مقدار پیش فرض است.

If GMSMapView is set to use the 'Automatic' padding behavior, it will always choose the larger of padding or safe area inset. This will allow you to add padding from the screen edge while always ensuring that all elements stay within the safe area.

If GMSMapView is set to use the 'Never' padding behavior, it will never add the safe area insets to the padding. This is the behavior prior to the 2.5 release and may be useful if your padding already takes into consideration the safe area, or if our other behaviors don't act well with your interface. It is your responsibility to ensure that the Google logo and copyright notices are always visible, as specified in the Google Maps Platform Terms of Service .

In contrast, GMSPanoramaView doesn't have an optional padding property. This means that there is no padding to adjust and GMSPanoramaView will always apply any necessary padding to ensure that all visual elements are within the safe area.

Google Maps SDK for Android

How do I resolve the error: 9005 PLACES_API_RATE_LIMIT_EXCEEDED ?
If you are seeing this error, you may be using a deprecated version of the Places SDK for Android. The Google Play services version of the Places SDK for Android has been turned off, and is no longer available. Please update your app to use the latest version as soon as possible. See the migration guide for details.
My app only shows blank grey tiles instead of a map. How can I resolve this?

A common reason that a blank grey tiles are shown instead of a map is authentication issues. You can follow the steps below to troubleshoot those issues by using adb logcat.

  1. Make sure you have adb installed. If not, you can follow the guide here .
  2. Install the app that shows the problem on a device or an Android emulator. If you use Android emulator, make sure the emulator settings has Play Store included.
  3. In Android Studio terminal, run adb logcat -e "Google Maps Android API" . This will only print lines where the log message matches "Google Maps Android API" (Optionally, you can output the log to a text file by appending: > logcat.txt)
  4. Reproduce the issue on your device and check for common errors such as:
    • The wrong/unintended API Key is being referenced in Manifest.
    • Billing isn't enabled on Project.
    • The SDK isn't enabled on project APIs.
    • The incorrect SHA1 fingerprint is added to the API Key restrictions.
    • The Google Play Service dependencies is not included in the build.gradle file.

URL signing

Can I sign URLs using JavaScript?

We strongly recommend against signing URLs using JavaScript as this would expose your URL signing secret to end users. Therefore signatures should only be generated by server side components.

Why am I receiving a HTTP 403 Forbidden response to my Maps API web service requests?

An HTTP 403 response indicates a permission issue, likely because the signature could not be verified for this request. This could be because:

  1. A signature has been specified but is incorrect for this request.
  2. The request specifies a Google Maps Platform Premium Plan an API key but does not specify a signature, and the service being called requires that requests made using an API key include a valid signature.
  3. A signature has been specified but the associated Google Maps Platform Premium Plan API key has not been specified.