Giter VIP home page Giter VIP logo

Comments (5)

Robinlovelace avatar Robinlovelace commented on July 21, 2024

Add to the list of use cases:

get_greenspace # proportion of land in route buffer that is green space
get_fastprox # length of 'fast' roads (e.g. speed => 60 kph) in close proximity to the route  - could be proportion
get_busstops # how many bus stops along the route?

from stplanr.

mpadge avatar mpadge commented on July 21, 2024

If you've already got the route, three out of four (get_osmavspeed, get_fastprox, and get_busstops) would be trivial. get_greenspace would be easy in principle, but would require some fiddly decisions regarding how to define and measure green and non-green. Steps:

  1. Let me know if you're envisioning these being used on pre-existing routes; and
  2. If so, I reckon we could incorporate the 3/4 fairly easily.

from stplanr.

Robinlovelace avatar Robinlovelace commented on July 21, 2024

Thanks for the fast response. It depends if the 'route' is from OSM directly or another source (e.g. national cartographic agency, which may not have that field) - I think the only tricky part is downloading OSM data in the precise buffer surrounding the route - that could have quite a complex shape, e.g.

data("routes_fast")
b = buff_geo(routes_fast, width = 100)
plot(b)

screenshot from 2016-10-19 15-05-35

from stplanr.

Robinlovelace avatar Robinlovelace commented on July 21, 2024

In that case you may as well download the bounding box, but what about cases where you have a long, windy route?

from stplanr.

Robinlovelace avatar Robinlovelace commented on July 21, 2024

Closing for now as this has gone stale. Many approaches including geofabric, osmdata (for small road networks) and Googles road speeds API: https://developers.google.com/maps/documentation/roads/speed-limits

from stplanr.

Related Issues (20)

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.