패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 인터페이스
  • 실시간 지도 렌더링
  • 사용자 지정 지도 타일 및 스타일 지원

적합한 대상

  • 위치 인식 앱을 개발하는 플러터 개발자
  • 크로스 플랫폼 지도 통합이 필요한 팀
  • Mapbox 고유 기능(예: 벡터 타일)이 필요한 프로젝트
  • Mapbox API에 익숙한 개발자
  • 모바일 및 웹을 동시에 타겟으로 하는 앱

고려 사항

  • 비공식 SDK – 공식 업데이트보다 뒤처질 수 있습니다
  • Mapbox API 키가 필요합니다
  • 공식 SDK와 비교하여 오류 처리 기능이 제한적입니다
  • 제3자 유지보수에 의존
  • 기본 렌더링을 넘어서는 내장 지도 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.