このサービスでは以下のAPIを利用することができます。
APIの仕様については、それぞれの仕様書ページ(外部サイト)を参考にしてください。
API名 | 概要 | リクエスト・レスポンスパラメータ |
---|---|---|
/map_script | ブラウザ上で動作するタイル地図を制御するJavaScriptファイルを取得します | /map_script仕様書ページ |
/map_image | パラメータに指定された場所・範囲・ズーム値の静的地図画像を取得します | /map_image仕様書ページ |
東京駅を中心とした地図を表示し、地図上に円を描画
・利用にあたり、こちらの仕様書ページ (外部サイト)に記載の通り、お客様のサイト内で規約文言を含めていただく必要があります。
NAVITIME Mapsの/map_scriptをJavaScriptでリクエストする際、ヘッダ情報が付与されない場合がありますが、jQuery(Ajax)を利用することでヘッダ情報を付与したリクエストが可能です。
実装方法はこちらのページ を参考にしてください。
※上記の実装例はあくまでjQuery(Ajax)の利用方法を説明するためのものです。
APIキー(x-rapidapi-key)をそのまま記載することは、セキリュティ上好ましくないため、お客様側でヘッダ情報の隠蔽をして頂くようお願いいたします。
-English-
The following APIs can be used.
For details of the APIs, please refer to each specification documents (external websites) .
API | Description | Response and request parameters |
---|---|---|
/map_script | Return a JavaScript file which you can modify using layers and styles, controls and events on web pages. | specification documents of /map_script |
/map_image | Return the map as an image of request parameters (center location, width/height range, zoom level, etc). | specification documents of /map_image |
Display a map around Tokyo station and draw a circle on the map.
For using our services, It is necessary to include the terms and conditions on your websites, as mentioned in this specification documents.
When requesting /map_script of NAVITIME Maps with JavaScript, no header information is sometimes added.
In this case, you can use jQuery (Ajax) to make a request with header information as shown below.
Implementation example using jQuery(Ajax)
※caution
Describing the API key (x-rapidapi-key) as it is, as shown in this implementation example, is not good for security.
Please hide the header information on your side.
NAVITIMEでは多くのユーザーの移動をサポートする様々な個人向けサービス提供を行っており、それらの技術をAPIでもご提供しています。
Rakuten RapidAPIにて、以下のサービスを提供しています。
サービスの詳細はそれぞれのページをご確認ください。
複数のサービスを組み合わせてこのようなことが実現できます。
出発地・目的地・経由地を指定して最適な巡回ルートを検索します。 旅行サイトのプランニング機能などで活用いただけます。
実装サンプルはこちら (外部サイトへ遷移します)
> 利用サービス
指定した地点から、指定した移動手段で到達可能な範囲を地図上に可視化します。
こちらを応用することで、不動産サイトなどで、所定時間内で通える物件を地図上へ表示するといった活用ができます。
実装サンプルはこちら (外部サイトへ遷移します)
> 利用サービス