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

パッケージ詳細v1.1.0

mapbox_api

公式の Mapbox ドキュメントに従う非公式の Mapbox Dart SDK。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
200
いいね数
26
Pub ポイント
150

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

flutter pub add mapbox_api

パッケージ概要

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

mapbox_api パッケージは、公式の Mapbox ドキュメントと一致する非公式の Dart SDK です。Android、iOS、Web、macOS、Windows、Linux を含む複数のプラットフォームで Flutter アプリに Mapbox の地理情報およびマッピング機能を統合できるようにします。このパッケージは、マップレンダリング、ジオコーディング、ルート案内などの Mapbox サービスにアクセスするための簡単なインターフェースを提供し、ネイティブプラットフォームコードに依存せずに場所に応じたアプリを開発しやすくなります。コミュニティによってメンテナンスされており、GitHub にホストされています。

用途

  • Flutterアプリにインタラクティブマップを統合する
  • ジオコーディングおよびリバースジオコーディングの実行
  • ルート計画およびナビゲーションの実装
  • カスタムマップスタイルの表示
  • 場所ベースの分析ダッシュボードの構築

主な機能

  • 公式の Mapbox API ドキュメントに従う
  • クロスプラットフォーム対応(Android、iOS、Web、macOS、Windows、Linux)
  • Mapbox サービス用のシンプルな Dart インターフェース
  • リアルタイムマップレンダリング
  • カスタムマップタイルおよびスタイルのサポート

適している対象

  • 位置に応じたアプリを構築するFlutter開発者
  • クロスプラットフォーム地図統合が必要なチーム
  • マップボックス固有の機能(例:ベクタータイル)を必要とするプロジェクト
  • Mapbox API に精通した開発者
  • モバイルおよびウェブの両方を同時にターゲットにするアプリ

注意事項

  • 非公式 SDK – 公式の更新に遅れる可能性があります
  • Mapbox API キーが必要です
  • 公式SDKと比較して、エラー処理が限定的です
  • サードパーティのメンテナンスに依存
  • 基本的なレンダリングを超える組み込みマップUIコンポーネントは存在しない

元の README

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

mapbox_api

This package aim to :

Examples

See examples/ for all available examples

import 'package:mapbox_api/mapbox_api.dart';

MapboxApi mapbox = MapboxApi(
  accessToken: '<Mapbox API token>',
);

Get your API token on mapbox.com

Request directions services
final response = await mapbox.directions.request(
  profile: NavigationProfile.DRIVING_TRAFFIC,
  overview: NavigationOverview.FULL,
  geometries: NavigationGeometries.GEOJSON,
  steps: true,
  coordinates: <List<double>>[
    <double>[
      37.786060, // latitude
      -122.246225, // longitude
    ],
    <double>[
      37.785939, // latitude
      -122.194292, // longitude
    ],
  ],
);

if (response.error == null) {
  // response.routes ...
  // response.waypoints ...
}

see basic example: example/example.dart
see full example with flutter_gl: example/example_directions_flutter.dart

Request forward geocoding services
final response = await mapbox.forwardGeocoding.request(
  searchText: 'tour eiffel',
  fuzzyMatch: true,
  language: 'fr',
  proximity: <double>[
    48.858638, // latitude
    2.286020, // longitude
  ],
);

if (response.error == null) {
  // response.features ...
}

see full example : example/example_forward_search.dart

Supported API

Maps
Service Implemented
Vector Tiles :heavy_multiplication_x:
Taster Tiles :heavy_multiplication_x:
Static Images :heavy_multiplication_x:
Static Tiles :heavy_multiplication_x:
Styles :heavy_multiplication_x:
Tilequery :heavy_multiplication_x:
Uploads :heavy_multiplication_x:
Mapbox Tiling Service :heavy_multiplication_x:
Datasets :heavy_multiplication_x:
Fonts :heavy_multiplication_x:
Navigation
Service Implemented Example
Directions :white_check_mark: example/example.dart
example/example_directions_flutter.dart
Isochrone :white_check_mark:
Map Matching :white_check_mark:
Matrix :white_check_mark:
Optimization :white_check_mark:
Search
Service Implemented Batch Example
Forward Geocoding :white_check_mark: :white_check_mark: example/example_forward_search.dart
Reverse Geocoding :white_check_mark: :white_check_mark: example/example_reverse_search.dart
Intersection :white_check_mark: :heavy_multiplication_x: example/example_intersection_search.dart
Accounts
Service Implemented
Tokens :heavy_multiplication_x:

Related Packages

This SDK will work perfectly with flutter-mapbox-gl to display retrieved data (will work with any other package too). You may also need polyline package to convert polylines strings to coordinates.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

データはまだありません。