Git Product home page Git Product logo

city-script's Introduction

city-script

Collection of scripts that can be loaded into city-roads.

I'm working on adding more scripts, and you are more than welcome to contribute your ideas and scripts here.

Find Paths

Allows you to draw thousands of shortest paths in any city between two random points, or between one fixed point and thousands random points.

find paths demo

If you have long distance loved ones you can make a perfect gift, drawing "all roads lead to you" city

Read documentation here

Color by elevation

This script reads elevation data from MapBox and allows you to color roads based on their level above the sea.

20m above the sea in Seattle

Read documentation here

Roads orientation

This script renders a histogram of roads length-directions. You can click on bars to highlight matching roads:

road orientations

Read documentation here

Sampling nodes

This script samples N nodes from the graph, and assigns nearest neighbors to the sampled nodes using color. Nodes are sampled based on either longest shortest distance between all previously sampled nodes or with probably proportional to the shortest distance.

sample nodes

Read documentation here

More scripts

I hope to add more scripts. If you have requests - please do not hesitate to open issue here, or ping me on twitter.

If you are a software engineer and would like to build the scripts too - you are more than welcome to explore the source code.

I'm slowly updating documentation for the most major modules used by the city-roads, and if you don't want to wait or need some ideas how to do X (where X is your own passion/idea) - please ping me. I love data visualizations and would be glad to help.

Support

Your support is more than welcomed! More than anything it sends me a strong signal that I'm doing something useful, that the time is not wasted, and someone finds this valuable. Please be my sponsor if you love this work.

city-script's People

Contributors

anvaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

city-script's Issues

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.