Download the PHP package jyun/mapsapi without Composer
On this page you can find all versions of the php package jyun/mapsapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor jyun
Package mapsapi
Short Description This is geographically related third-party api integration
License MIT
Package mapsapi
Short Description This is geographically related third-party api integration
License MIT
Please rate this library. Is it a good library?
Informations about the package mapsapi
安裝套包
在專案中執行下方指令:
composer require jyun/mapsapi
安裝好後即可在專案內使用 :
設定檔案
在專案中有使遇到 Mysql, Mongo, Map8, GoogleMap, 都須個別配置 .env 請參照:
目前 Mongo 因為資料太多錯誤決定停止使用
Directions API
Geocoding API
Source 順序:
- geocode: Map8 -> GoogleMap (timeout = 2s)
- reverseGeocode: Mongo -> Map8 -> GoogleMap (timeout = 2s)
注意事項:
- Map8 超過台灣地區會回傳空值, 但設計上會繼續往 GoogleMap 查詢
- Source 查詢時可能回傳空值, 所以 zip, city_id, district_id 有可能為 null
API 統一回傳格式:
參數 | 型別 | 說明 |
---|---|---|
source | string | 來源: Mongo, Map8, GoogleMap |
code | int | 按照 Http status: 200 為正常 |
msg | string | 回傳說明 |
data | array | 若無資料則不回傳 Data |
trace | array | 若無追中錯誤則不回傳 trace |
All versions of mapsapi with dependencies
PHP Build Version
Package Version
The package jyun/mapsapi contains the following files
Loading the files please wait ....