デフォルトでは、Maps JavaScript API はブラウザで指定されたユーザーの優先言語設定を使用して、コントロール名や著作権表示、運転ルート、ラベルなどのテキスト情報を地図に表示します。ほとんどの場合、ブラウザの設定を反映することをおすすめします。ただし、Maps JavaScript API でブラウザの言語設定を無視したい場合、強制的に特定の言語で情報を表示することができます。そのためには、Maps JavaScript API のコードを読み込む際に、language パラメータを <script> タグに追加します。
language パラメータは、コントロール名、著作権表示、運転ルート、コントロール ラベル、サービス リクエストへのレスポンスに影響します。ただし、サービスへの影響はそれほど明白ではありません。たとえば、番地レベルの住所をジオコーディングした場合は、国名はリクエストされた言語で返されますが、住所の残りの部分はジオコーディング対象の場所に固有のものになります。一方、郵便番号と行政区画の結果は、リクエストされた言語で返されます。 こちらのデモで、language パラメータの更新による地図の変化をお試しください。
Maps JavaScript API のコードを読み込む際に <script> タグに region パラメータを追加すると、アプリケーションの動作を変更して、デフォルトとは異なる地図タイルを配信することや、バイアスを適用する(たとえばジオコーディングの結果に特定の地域へのバイアスをかける)ことが可能です。
多くのサービス(たとえば Place Autocomplete)は region が設定されていたほうが良い結果を出せるため、Maps JavaScript API アプリケーションを開発する際は常に region パラメータを設定することが推奨されます。また、Maps JavaScript API アプリケーションのデベロッパーには、アプリケーションがホストされている国に合わせて適切にリージョン ローカライズを行い、その地域の法律を遵守したアプリケーションを作成する責任があります。
region パラメータは、一般的に国別コード トップレベル ドメイン(ccTLD)と 1 対 1 になったマッピングを持つ Unicode region subtag identifier を受け付けます。大半の Unicode region identifier は ISO 3166-1 alpha-2 コードと同一ですが、いくつか注意が必要な例外もあります。たとえば、イギリスの ccTLD は「uk」(ドメインは .co.uk)ですが、リージョン ID は「GB」です。サポートされている地域は、Google Maps Platform のサポート状況でご確認いただけます。こちらのデモで、region パラメータの更新による地図の変化をお試しください。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-06 UTC。"],[[["\u003cp\u003eCustomize your map by adjusting the default language and specifying a region code for tailored behavior.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the \u003ccode\u003elanguage\u003c/code\u003e parameter in the script tag to display map information in a specific language, overriding browser settings if needed.\u003c/p\u003e\n"],["\u003cp\u003eApply the \u003ccode\u003eregion\u003c/code\u003e parameter in the script tag to refine map tiles, bias application results, and ensure compliance with local laws.\u003c/p\u003e\n"],["\u003cp\u003eFor optimal results and legal adherence, consider setting both \u003ccode\u003elanguage\u003c/code\u003e and \u003ccode\u003eregion\u003c/code\u003e parameters when localizing your map.\u003c/p\u003e\n"]]],["To customize a map, specify a `language` and `region` parameter in the `\u003cscript\u003e` tag when loading the Maps JavaScript API. The `language` parameter sets the display language for controls, directions, and service responses, overriding the browser's default. The `region` parameter alters map tiles and biases service results, like geocoding. Setting both is crucial for legal compliance and service accuracy. For example, you can set the language to Japanese and the region to Japan by setting `language=ja` and `region=JP`.\n"],null,["You can customize your map for a specific country or region in the following\nways:\n\n- Change the default language settings.\n- Specify a region code, which alters the map's behavior based on a given country or territory.\n\nLanguage localization\n\nBy default, the Maps JavaScript API uses the user's preferred\nlanguage setting as specified in the browser, when displaying textual\ninformation such as the names for controls, copyright notices, driving\ndirections and labels on maps. In most cases, it's preferable to respect the\nbrowser setting. However, if you want the\nMaps JavaScript API to ignore the browser's\nlanguage setting, you can force it to display information in a particular\nlanguage by adding a `language` parameter to the\n`\u003cscript\u003e` tag when loading the\nMaps JavaScript API code.\n\nThe `language` parameter affects the names of controls, copyright\nnotices, driving directions, and control labels, as well as the responses to\nservice requests. The effect on services is not as apparent. For example, when\ngeocoding street level addresses the country name is returned in the language\nyou requested, but the rest of the address will be specific to the location\nyou are geocoding. On the other hand, postal and political results are\nreturned in the requested language.\nTry [this demo](/maps/documentation/javascript/demos/localization) to experiment with the changes on the map when you update the\n`language` parameter.\n\nThe following example displays a map in Japanese and sets the region to\nJapan: \n\n```html\n\u003cscript async\n src=\"https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&loading=async®ion=JP&language=ja&callback=initMap\"\u003e\n\u003c/script\u003e\n```\n\n[View\nexample](/maps/documentation/javascript/examples/map-language).\n\nIf you set the language of the map, it's important to\nconsider setting the [region](#Region) too. This helps ensure\nthat your application complies with local laws.\n\n**Note:** When you load the API in the manner shown above, the\nmap uses the Japanese language for all users regardless of user preferences.\nBe sure you want this behavior before setting this option.\n\nThe Maps JavaScript API also supports bi-directional\n(Bidi) text containing characters in both left-to-right (LTR) and\nright-to-left (RTL) languages natively. Examples of RTL languages include\nArabic, Hebrew, and Farsi. Generally, you should specify RTL language pages to\nrender properly by adding `dir='rtl'` to the page's\n`\u003chtml\u003e` element. The following example renders a map of\nCairo, Egypt using Arabic controls: \n\n```html\n\u003cscript async\n src=\"https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&loading=async®ion=EG&language=ar&callback=initMap\"\u003e\n\u003c/script\u003e\n```\n\n[View example](/maps/documentation/javascript/examples/map-rtl)\n\nSee the [list of supported\nlanguages](/maps/faq#languagesupport). Note that new languages are added often, so this list may not\nbe exhaustive.\n\nRegion localization\n\nAdd a `region` parameter to the `\u003cscript\u003e` tag\nwhen loading the Maps JavaScript API code, if you\nwant to alter your application to serve different map tiles or bias the\napplication (such as biasing geocoding results towards the region).\n\nAs the developer of a Maps JavaScript API\napplication you are encouraged to always set a `region` parameter as various services\n(such as Places Autocomplete) tend to provide better results when the `region` is set.\nIt is also your responsibility to ensure that your application complies with local laws by\nensuring that the correct region localization is applied for the country in which the application\nis hosted.\n\nThe `region` parameter accepts\n[Unicode region subtag identifiers](http://www.unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) which (generally) have a\none-to-one mapping to country code Top-Level Domains (ccTLDs). Most Unicode\nregion identifiers are identical to ISO 3166-1 alpha-2 codes, with some\nnotable exceptions. For example, Great Britain's ccTLD is \"uk\" (corresponding\nto the domain `.co.uk`) while its region identifier is \"GB.\" See\n[Google Maps Platform Coverage Details](/maps/coverage) for\nsupported regions.\nTry [this demo](/maps/documentation/javascript/demos/localization) to experiment with the changes on the map when you update the\n`region` parameter.\n\nFor example, the following script tag localizes the map to the United\nKingdom: \n\n```html\n\u003cscript async\n src=\"https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&loading=async®ion=GB&callback=initMap\"\u003e\n\u003c/script\u003e\n```\n\nThe following examples show two maps, one which geocodes \"Toledo\" based on\na `region` set to `US` (US) to \"Toledo, Ohio\" and one\nwhich biases results based on a `region` set to `ES`\n(Spain) to \"Toledo, Spain.\" \n\nView the\n[US\nexample](/maps/documentation/javascript/examples/geocoding-region-us) and the\n[ES\nexample](/maps/documentation/javascript/examples/geocoding-region-es).\n\nLocalization Demo\n\nWhen setting the language of the map, it's important to consider setting the region too.\nHere is a demo that allows you to load the map with your choice of language and region.\n\nView this demo in [fullscreen](/maps/documentation/javascript/demos/localization)."]]