OSM資料處理與分析------OSM資料說明
目錄
OSM概念
OpenStreetMap,簡稱OSM,是一個網上地圖協作計劃,目標是創造一個內容自由且能讓所有人編輯的世界地圖(wiki:http://wiki.openstreetmap.org/wiki/Main_Page)。尤其值得稱道的是,osm資料開源,可以自由下載使用。
OSM資料
OpenStreetMap包括空間資料以及屬性資料。其中空間資料主要包括三種:Nodes、Ways和Relations,這三種原始資料構成了整個地圖畫面。其中,Nodes定義了空間中點的位置;Ways定義了線或區域, Relations(可選的)定義了元素間的關係。屬性資料Tags用於描述上述向量資料基元。
OSM資料介面
資料相關的介面說明:https://wiki.openstreetmap.org/wiki/API_v0.6
way資料
way當前資料:https://api.openstreetmap.org/api/0.6/way/
way編號
例子:https://api.openstreetmap.org/api/0.6/way/100134055
way歷史資料:http://api.openstreetmap.org/api/0.6/way/way編號/history
例子:http://api.openstreetmap.org/api/0.6/way/100134055/history
node資料
node當前資料:https://api.openstreetmap.org/api/0.6/node/node編號
例子:https://api.openstreetmap.org/api/0.6/node/299717608
node歷史資料:https://api.openstreetmap.org/api/0.6/node/node編號/history
例子:https://api.openstreetmap.org/api/0.6/node/299717608/history
OSM資料相關資訊統計
資料統計頁面:https://taginfo.openstreetmap.org/reports/database_statistics
截止2018年10月份,資料量統計。節點資料4.8億,ways資料5.3億,relations資料為625萬,屬性資料tag,唯一的的標籤名字為72293條,標籤的值為9845萬。資料量很大,而且資料增長的很快。
頁面https://planet.openstreetmap.org/支援整個osm資料的下載,時間範圍範圍最近一週,包含完整資料集,修改資料集,
統計資訊相關介面
介面說明地址:https://taginfo.openstreetmap.org/taginfo/apidoc