Easily start routing with MapLibre GL JS and Amazon Location Service.
- MapLibre GL JS v4.0.2
- Amazon Location Service
- node v20.0.0
- npm v9.6.4
Building a Route Search Function with Amazon Location SDK and API Key Function
Create Amazon Location Service "map", "API key(map)", "routing" and "API key(routing)"
Set "region", "API key(map)", "map name", "API key(routing)" and "routing name" in env file
VITE_REGION = xxxxx
VITE_MAP_API_KEY = v1.public.xxxxx
VITE_MAP_NAME = xxxxx
VITE_ROUTE_API_KEY = v1.public.xxxxx
VITE_ROUTE_NAME = xxxxx
Install package
npm install
build
npm run build
dev
npm run dev
MIT
Copyright (c) 2024 MapLibre User Group Japan
MapLibre GL JSとAmazon Location Serviceでルーティングを手軽に始める
- MapLibre GL JS v4.0.2
- Amazon Location Service
- node v20.0.0
- npm v9.6.4
Amazon Location SDKとAPIキーでルート検索機能を構築
Amazon Location Serviceのマップ・APIキー(マップ)・ルーティング・APIキー(ルーティング)を作成
リージョン・APIキー(マップ)・マップ名・APIキー(ルーティング)・ルーティング名をenvファイルに設定
VITE_REGION = xxxxx
VITE_MAP_API_KEY = v1.public.xxxxx
VITE_MAP_NAME = xxxxx
VITE_ROUTE_API_KEY = v1.public.xxxxx
VITE_ROUTE_NAME = xxxxx
パッケージインストール
npm install
ビルド
npm run build
開発
npm run dev
MIT
Copyright (c) 2024 MapLibre User Group Japan