Download the PHP package mtsung/mapsapi without Composer
On this page you can find all versions of the php package mtsung/mapsapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mtsung/mapsapi
More information about mtsung/mapsapi
Files in mtsung/mapsapi
Download mtsung/mapsapi
More information about mtsung/mapsapi
Files in mtsung/mapsapi
Vendor mtsung
Package mapsapi
Short Description Migrating from jyun/mapsapi
License MIT
Homepage https://github.com/mtsung/mapsapi
Package mapsapi
Short Description Migrating from jyun/mapsapi
License MIT
Homepage https://github.com/mtsung/mapsapi
Please rate this library. Is it a good library?
Informations about the package mapsapi
Maps API
Migrating from jyun/mapsapi
Support Laravel 10
Installation
在專案中執行下方指令:
安裝好後即可在專案內使用 :
Config
在專案中有使遇到 Mysql, Mongo, Map8, GoogleMap, 都須個別配置 .env 請參照:
目前 Mongo 因為資料太多錯誤決定停止使用
Usage
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
Requires
php Version
>=8.1
illuminate/support Version >=10.0
guzzlehttp/guzzle Version ^6.3|^7.0
mongodb/laravel-mongodb Version ^4
illuminate/support Version >=10.0
guzzlehttp/guzzle Version ^6.3|^7.0
mongodb/laravel-mongodb Version ^4
The package mtsung/mapsapi contains the following files
Loading the files please wait ....