ueda-keisuke / react-places-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

この文書の下に日本語での記述があります。日本語


React Places Autocomplete Example

Overview

This React application demonstrates the use of the react-places-autocomplete library to build a user interface that allows users to type an address, select one from the autocomplete dropdown, and then display the selected address's geographical coordinates and formatted address on the screen.

Features

  • Autocomplete input for typing addresses.
  • Display latitude and longitude of the selected address.
  • Show the formatted address using Google's Geocoding API.

How to Set Up

  1. Clone the repository:
    git clone https://github.com/ueda-keisuke/react-places-autocomplete.git
  2. Install dependencies:
    cd react-places-autocomplete
    npm install
  3. Start the development server:
    npm start

Usage

Simply start typing an address into the input field. Select an address from the dropdown suggestions to see its coordinates and a formatted string of the address components displayed below the input.


日本語での説明

概要

このReactアプリケーションは、react-places-autocompleteライブラリの使用を示しており、ユーザーがアドレスを入力し、オートコンプリートドロップダウンから選択し、選択されたアドレスの地理的座標とフォーマットされたアドレスを画面に表示するインターフェイスを構築します。

機能

  • アドレス入力のためのオートコンプリート入力フィールド。
  • 選択したアドレスの緯度と経度を表示します。
  • GoogleのジオコーディングAPIを使用してフォーマットされたアドレスを表示します。

セットアップ方法

  1. リポジトリをクローンします:
    git clone https://github.com/ueda-keisuke/react-places-autocomplete.git
  2. 依存関係をインストールします:
    cd react-places-autocomplete
    npm install
  3. 開発サーバーを起動します:
    npm start

使用方法

入力フィールドにアドレスを入力し始めます。ドロップダウンの提案からアドレスを選択すると、その座標とアドレスコンポーネントのフォーマットされた文字列が入力の下に表示されます。

About


Languages

Language:TypeScript 60.5%Language:HTML 25.6%Language:CSS 13.9%