Skip to content

Instantly share code, notes, and snippets.

View morganherlocker's full-sized avatar
☠️
computing

Morgan Herlocker morganherlocker

☠️
computing
View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
Speed limit,Street Type,Cnn,From Street,Street name,Objectid,To Street,latitude,longitude
0.0,ST,12160001.0,HOWARD ST,STEUART,1.0,END: 200-249 BLOCK,37.7918157176199,-122.391414391278
0.0,AVE,3380002.0,BURNETT NORTH AVE,BURNETT,2.0,GARDENSIDE DR,37.7559687112087,-122.444352021152
0.0,AVE,3380001.0,TWIN PEAKS BLVD,BURNETT,3.0,BURNETT NORTH AVE,37.7564828576652,-122.445717745424
0.0,ST,7797002.0,03RD ST,KEITH,4.0,BAY SHORE BLVD,37.7189123851496,-122.398804155042
0.0,ST,7797001.0,LE CONTE AVE,KEITH,5.0,03RD ST,37.7191905390652,-122.398567045833
0.0,ST,233202.0,LE CONTE AVE,03RD,6.0,KEITH ST,37.7185585831051,-122.39809232897
0.0,AVE,5117000.0,START: 1700-1798 BLOCK,EGBERT,7.0,NEWHALL ST,37.7265550704082,-122.398298222597
0.0,AVE,20004000.0,BURNETT AVE,BURNETT NORTH,8.0,IRON ALY,37.7566571571684,-122.444730211915
0.0,WAY,14012000.0,START: 0-99 BLOCK,ARGENT,9.0,END: 0-99 BLOCK,37.7527986838241,-122.44331086519
var savePixels = require('save-pixels')
var zeros = require('zeros')
var d3 = require('d3')
var chance = new require('chance')()
var pic = zeros([512,512,3])
var nx = pic.shape[0]
var ny = pic.shape[1]
var nz = pic.shape[2]
var palette = []
## `match`
Matches given coordinates to the road network
### Parameters
* `loc` **`[String]`** Location of the point. (optional, default `52.542648,13.393252`)
* `t` **`[String]`** Timestamp of the preceding point. (optional, default `1424684612`)
* `geometry` **`[Boolean]`** Return route geometry. (optional, default `true`)
* `classify` **`[Boolean]`** Return a confidence value for this matching. (optional, default `false`)

match

Matches given coordinates to the road network

Parameters

  • loc [String] Location of the point. (optional, default 52.542648,13.393252)
  • t [String] Timestamp of the preceding point. (optional, default 1424684612)
  • geometry [Boolean] Return route geometry. (optional, default true)
  • classify [Boolean] Return a confidence value for this matching. (optional, default false)

``

Matches given coordinates to the road network

Parameters

  • loc [String] Location of the point. (optional, default 52.542648,13.393252)
  • t [String] Timestamp of the preceding point. (optional, default 1424684612)
  • geometry [Boolean] Return route geometry. (optional, default true)
  • classify [Boolean] Return a confidence value for this matching. (optional, default false)
## ``
Matches given coordinates to the road network
### Parameters
* `loc` **`[String]`** Location of the point. (optional, default `52.542648,13.393252`)
* `t` **`[String]`** Timestamp of the preceding point. (optional, default `1424684612`)
* `geometry` **`[Boolean]`** Return route geometry. (optional, default `true`)
* `classify` **`[Boolean]`** Return a confidence value for this matching. (optional, default `false`)

``

Matches given coordinates to the road network

Parameters

  • loc [String] Location of the point. (optional, default 52.542648,13.393252)
  • t [String] Timestamp of the preceding point. (optional, default 1424684612)
  • geometry [Boolean] Return route geometry. (optional, default true)
  • classify [Boolean] Return a confidence value for this matching. (optional, default false)

``

Matches given coordinates to the road network

Parameters

  • loc [String] Location of the point. (optional, default 52.542648,13.393252)
  • t [String] Timestamp of the preceding point. (optional, default 1424684612)
  • geometry [Boolean] Return route geometry. (optional, default true)
  • classify [Boolean] Return a confidence value for this matching. (optional, default false)
var line = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-83.13431739807127,
40.59414233212419
],
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.