[WordPress] 外掛分享: RideShare Importer

首頁外掛目錄 › RideShare Importer
全新外掛
安裝啟用
尚無評分
2189 天前
最後更新
問題解決
WordPress 5.1+ PHP 7.2+ v1.0.0 上架:2020-03-19

內容簡介

這個外掛可以讓你從共乘服務中匯入個人乘車紀錄到單獨的文章。目前只支援 Uber。

哪些資料會被匯入?

每次行程都會被儲存為單獨的文章,包含以下內容:

地圖圖像
上車和下車地點
行程時間
行程里程數
司機姓名
車資和貨幣

更多資訊會儲存在 post_meta 中:

行程 ID(用於辨識之前匯入的行程)
從匯入的檔案中知道的完整 JSON 資料
編碼地圖座標,因此你可以在你的主題或外掛中呈現你自己的地圖

如果外掛 People & Places 已啟用,則會使用其 People 分類法向文章標記司機個人檔案。

匯入檔案格式

由於沒有公開 API 可以用來檢索完整的歷史記錄,這個匯入程式使用由瀏覽器擴展程式 RideShare Trip Stats(版本 2.2 或更高)所生成的檔案格式,您必須在提供者的網站上執行此擴展程式。

RideShare Trip Stats 擴展程式與本外掛沒有關聯。它是開源的,您可以從其 Github 存儲庫 或其 Chrome 線上應用商店頁面 安裝它。

這個匯入程式與其他 Keyring Social Importers 配合得很好,使用類似的方法將文章標記在 post_meta 中。之所以沒有直接包含在 Keyring 中,是因為它需要手動匯出並上傳 JSON 檔案到導入程式。Keyring 中的所有其他導入程式都使用 API 連接,但可惜的是,對於共乘服務,API 存取非常有限。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「RideShare Importer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin allows you to import your personal hisotry of rides from ride sharing services into individual posts. Currently, Uber is the only supported provider.
What gets Imported?
Each trip gets saved as a separate post with contents of:

Map image
Pickup & dropoff addresses
Trip duration
Trip mileage
Driver name
Fare and currency

More info is stored in post_meta:

Trip id (used to identify previously imported trips)
Full JSON data about the trip, as known from the imported file
Encoded map coordinates so you can render your own map in your theme or plugin

If plugin People & Places is active, it will be used to tag posts with driver profiles using its People taxonomy.
Imported File Format
Since there is no public API which could be used to retrieve the full history, this importer uses a file format generated by a browser extension RideShare Trip Stats (v2.2 or higher) which you must run on the website of the provider.
The RideShare Trip Stats extension is not associated with this plugin. It’s open source and you can install it from its Github repository or its Chrome Webstore listing.
This importer has been designed to work well together with other Keyring Social Importers by using similar ways to tag post with post_meta. The reason this importer is not included directly there is that it requires a JSON file to be manually exported and uploaded into the importer. All other importers in Keyring use an API connection but sadly, for ride sharing, API access is very limited.

延伸相關外掛

文章
Filter
Mastodon