# 位置情報プロパティタイプ

*スキルレベル: 中級*

## 開始前に

* [Google APIキー](/ja/database/location/getting-your-google-api-key.md)を生成していることを確認してください。
* この機能を使用するには有料のAdaloプランが必要です。
* アプリがロケーション機能を使用するたびに、Googleプランに料金が請求されます。

## 手順

{% tabs %}
{% tab title="シンプル" %}
**1.)** ロケーションプロパティタイプを追加するのは非常に簡単です。まず、ロケーションプロパティが必要なコレクションをクリックします。この場合、**Trips**コレクションがあります。

**2.)** **+ プロパティを追加**ボタンをクリックして、Locationを選択します。

![](/files/TcVZpF0fu5OvJurAuByo)

**3.)** 新しいロケーションプロパティに名前を付けて**保存**をクリックします。この場合、**Destination**と名前を付けます。

{% hint style="info" %}
**注意**: Google APIキーなしでロケーションプロパティタイプを追加できますが、APIキーを追加するまで機能しません。
{% endhint %}

![](/files/Q18Kc09t5qojWWhDBzcH)

**4.)** ロケーションプロパティにはいくつかの自動データが含まれており、コレクションのレコードボタンをクリックしてレコードを選択することで確認できます。

![](/files/6ocl0h0TlPTDE4xEyU7q)

**5.)** レコード内では、ロケーションプロパティのドロップダウンで直接住所、場所、およびロケーションを検索できます。これらの結果はGoogleによって提供され、Google Cloudサービスプランのクレジットを使用します。

![](/files/zePpiVBEgrytAmonlvOO)

**6.)** これで、新しいロケーションプロパティタイプをアプリ内のどこでも使用できます！
{% endtab %}
{% endtabs %}

## もっと詳しく

* レコードビュー内で場所を検索する際にエラーが発生した場合は、プロジェクトのGoogle Cloudコンソールダッシュボードで有効になっているAPIを確認してください（[Google APIキーガイド](/ja/database/location/getting-your-google-api-key.md)を参照）。
* レコード内で場所情報を手動で追加または変更すると、Googleがその場所を見つける能力が損なわれる可能性があるため、場所データを手動で変更する際は注意してください。
* Adaloアカウントの所有者/作成者だけが、レコードビューでロケーションプロパティデータを変更するオプションを見ることができます。
* [App Academy](https://appacademy.adalo.com/course/geolocation-uber-airbnb)のコースでロケーションの使用について学んでください。

## ヘルプ

この記事で追加のヘルプが必要な場合は、いつでも[コミュニティフォーラム](https://forum.adalo.com/)で質問できます！投稿にこの記事へのリンクも貼っておくことを忘れないでください！


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.adalo.com/ja/database/location/the-location-property-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
