パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.10.0

google_directions_api

Directions API は、場所間の経路を計算するサービスです。複数の輸送手段についてルートを検索できます。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1260
いいね数
57
Pub ポイント
140

パッケージをインストール

flutter pub add google_directions_api

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

google_directions_api パッケージは、Google Directions API 用の Flutter インターフェースを提供し、ドライブ、ウォーキング、サイクリング、トランジットなどのさまざまな移動モードを使用して場所間のルートを計算できるようにします。Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしています。このパッケージは、Google のルーティングサービスとの統合を簡素化し、アプリがステップバイステップのナビゲーション、旅行時間の推定、距離の計算を表示できるようにします。ナビゲーション、旅行計画、ルートデータが必要な位置ベースのアプリケーションに最適です。

用途

  • ナビゲーションアプリ
  • 旅行計画機能
  • 配達ルート最適化
  • 位置ベースのサービスの強化
  • リアルタイム交通方向検索

主な機能

  • 複数のトランスポートモードをサポートしています
  • クロスプラットフォーム互換性
  • シンプルな API インテグレーション
  • ルート距離および所要時間の計算
  • ステップバイステップの方向サポート

適している対象

  • ナビゲーションツールを開発する開発者
  • ルート計画を必要とするアプリ
  • 旅行および物流アプリケーション
  • モバイルおよびWebの位置情報サービス
  • Google Maps ルーティング機能の統合

注意事項

  • Google Cloud Platform API キーが必要です
  • 使用状況に応じてレート制限が適用されます
  • 大量使用すると追加コストが発生する可能性があります
  • リアルタイムデータにはインターネット接続が必要です
  • APIエラーレスポンスの適切な処理が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

google_directions_api

Build Pub GitHub GitHub stars

The Directions API is a service that calculates directions between locations. You can search for directions for several modes of transportation, including transit, driving, walking, or cycling.

Getting Started

The Directions API is a service that calculates directions between locations using an HTTP request.

With the Directions API, you can:

  • Search for directions for several modes of transportation, including transit, driving, walking or cycling.
  • Return multi-part directions using a series of waypoints.
  • Specify origins, destinations, and waypoints as text strings (e.g. "Chicago, IL" or "Darwin, NT, Australia"), or as latitude/longitude coordinates, or as place IDs.

The API returns the most efficient routes when calculating directions. Travel time is the primary factor optimized, but the API may also take into account other factors such as distance, number of turns and many more when deciding which route is the most efficient.

Note: This service is not designed to respond in real time to user input.

For full info about Directions API visit official documentation

Usage
import 'package:google_directions_api/google_directions_api.dart';

void main() {
  DirectionsService.init('API_KEY');

  final directionsService = DirectionsService();

  final request = DirectionsRequest(
    origin: 'New York',
    destination: 'San Francisco',
    travelMode: TravelMode.driving,
  );

  directionsService.route(request,
      (DirectionsResult response, DirectionsStatus status) {
    if (status == DirectionsStatus.ok) {
      // do something with successful response
    } else {
      // do something with error response
    }
  });
}

Feature requests and Bug reports

Feel free to post a feature requests or report a bug here.

TODO

  • Write tests via mocks

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

このパッケージを使用しているプロジェクト