Giter Site home page Giter Site logo

osm's Introduction

地图数据筛选

原始地图数据来源 https://overpass-api.de/api/map?bbox=108.914,34.205,109.005,34.285

way.py 筛选地图数据,只保留highway

ptdraw.py 将way上的点扩充,每10m一个采样点,并绘制出来

地图数据可以使用ArcGis预览

mapreduce

原始数据模型

字段 type
司机ID String
订单ID String
时间戳 String
经度 String
纬度 String

第一轮MapReduce

目的

得到车辆的坐标,时间,速度,方向

key   : (time,lon,lat)
value : (speed,direction) 

第二轮MapReduce

目的

将车辆信息匹配到道路节点上,并按照时间段记录拥堵程度

map

将车辆匹配到最近的道路节点上,并按照时间段(10min)记录拥堵程度(拥堵系数之和)

如果距离最近的点超过10m,则舍弃这个点

key   : nodeID
value : (timeID,v) 

reduce

key   : (nodeID,time)
value : v

osm's People

Contributors

marcusmogg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.