Notebook - Welcome to Notebook

Contact/Report Bugs
You can contact me at: bkenwright@xbdev.net












Beijing bus route map About Data The first and second numbers in the data are 10000 times the latitude and longitude of the first point and the following numbers are the interpolation between the subsequent points and the first point For example the 10000 times the latitude and longitude of the first point is 1164383 401471 and the third and fourth The numbers 11 and 13 are the difference between the longitude and latitude of the second point and the longitude and latitude of the first point respectively document body style height 600px let url https notebook xbdev net var resources lines bus json 1164383 401471 11 13 1 49 26 14 99 170 4 36 87 2 16 141 2 15 47 6 168 9 2 22 74 4 138 10 12 152 9 55 17 111 13 176 20 38 1 57 31 54 28 85 5 126 13 62 1 34 84 1 3 218 15 6 78 2 4 52 70 1 7 142 99 2 21 5 229 150 16 23 0 180 168 1 4 257 82 0 33 22 78 20 1164311 399594 8 1 33 0 56 1 29 3 30 27 8 5 21 14 3 2 1 1 4 3 13 13 21 19 9 9 16 9 93 6 8 50 100 1 1 0 171 3 1 0 0 1 0 8 0 15 1 8 0 28 0 4 1 11 0 19 0 12 2 22 1 26 1 25 0 25 1 24 0 4 2 25 0 1 0 7 1 28 2 25 17 30 0 1 0 2 2 55 44 1 0 32 1 0 48 3 11 0 12 34 0 7 24 9 0 12 1 12 0 1 7 0 8 0 8 0 41 1 1 10 0 4 1 5 0 6 0 3 2 21 1 12 0 8 0 2 2 0 31 6 6 0 51 2 0 1 70 0 7 13 7 5 30 22 1 1 1163521 398776 16 1 55 2 47 1 0 1 0 0 0 4 0 8 0 1 1 7 0 11 1 16 0 4 0 15 1 45 0 1 1 16 1 54 0 29 0 1 0 2 0 1 0 2 0 4 0 37 1 7 0 7 0 18 107 0 2 0 30 0 129 2 56 2 36 1 22 1 53 1 47 2 7 0 8 0 8 0 41 1 2 1 17 0 4 0 10 0 33 1 7 0 18 0 1 32 0 2 37 0 1 0 1163823 399822 54 2 1 26 2 29 1 1 47 0 2 0 12 5 1 25 1 10 0 8 0 1 1 26 1 11 1 20 1 31 1 0 72 2 57 13 0 18 1 5 0 6 0 1 0 8 0 15 1 8 0 28 0 4 1 11 0 19 0 12 2 22 1 26 1 25 0 25 1 24 0 4 2 25 0 1 1 0 13 0 56 1 14 1 65 1 3 0 19 0 52 0 23 1 3 3 60 4 86 1 8 0 12 0 41 0 46 0 5 0 19 1 0 50 0 13 0 5 0 7 1 13 1 13 0 1 1 41 1 4 1 7 1 10 0 3 0 2 1 39 0 10 2 15 1 16 0 6 1 17 0 1 1164057 399753 18 34 6 33 49 2 82 2 48 1 2 45 2 105 65 1 2 19 27 17 6 74 0 22 141 2 59 0 59 1 77 0 1 75 279 1 0 41 2 119 1 21 30 1 let pass await fetch url let text await pass text let json JSON parse text process json function process data let hStep 300 data length 1 let busLines concat apply data map function busLine idx let prevPt let points for let i 0 i busLine length i 2 let pt busLine i busLine i 1 if i 0 pt prevPt 0 pt 0 prevPt 1 pt 1 prevPt pt points push pt 0 1e4 pt 1 1e4 return coords points lineStyle Math round hStep idx get min max let min 10000 10000 let max 10000 10000 for let i 0 i busLines length i let points busLines i coords for let k 0 k points length k min 0 Math min min 0 points k 0 min 1 Math min min 1 points k 1 max 0 Math max max 0 points k 0 max 1 Math max max 1 points k 1 console log busLines draw busLines min max function draw busLines min max console log min min console log max max var canvas document createElement canvas canvas width 500 canvas height 500 document body appendChild canvas var theContext canvas getContext 2d theContext strokeRect 0 0 500 500 let scalex 300 let scaley 300 var offsetx min 0 1 012 max 0 min 0 0 5 var offsety min 1 1 035 max 1 min 1 0 5 for let i 0 i busLines length i let points busLines i coords theContext beginPath theContext strokeStyle busLines i lineStyle theContext moveTo points 0 0 offsetx scalex points 0 1 offsety scaley for let k 1 k points length k theContext lineTo points k 0 offsetx scalex points k 1 offsety scaley theContext stroke console log ready

7 6 74 0 22 141 2 59 0 59 1 77 0 1 75 279 1 0 41 2 119 1 21 30 1 let pass await fetch url let text await pass text let json JSON parse text process json function process data let hStep 300 data length 1 let busLines concat apply data map function busLine idx let prevPt let points for let i 0 i busLine length i 2 let pt busLine i busLine i 1 if i 0 pt prevPt 0 pt 0 prevPt 1 pt 1 prevPt pt points push pt 0 1e4 pt 1 1e4 return coords points lineStyle Math round hStep idx get min max let min 10000 10000 let max 10000 10000 for let i 0 i busLines length i let points busLines i coords for let k 0 k points length k min 0 Math min min 0 points k 0 min 1 Math min min 1 points k 1 max 0 Math max max 0 points k 0 max 1 Math max max 1 points k 1 console log busLines draw busLines min max function draw busLines min max console log min min console log max max var canvas document createElement canvas canvas width 500 canvas height 500 document body appendChild canvas var theContext canvas getContext 2d theContext strokeRect 0 0 500 500 let scalex 300 let scaley 300 var offsetx min 0 1 012 max 0 min 0 0 5 var offsety min 1 1 035 max 1 min 1 0 5 for let i 0 i busLines length i let points busLines i coords theContext beginPath theContext strokeStyle busLines i lineStyle theContext moveTo points 0 0 offsetx scalex points 0 1 offsety scaley for let k 1 k points length k theContext lineTo points k 0 offsetx scalex points k 1 offsety scaley theContext stroke console log ready

2dracecargame
3dplot
a4print
about
acecustomkeywords
acecustomkeywords2
acejs
acejs2
acejs3
aessecurity
angularjs
animbackgroundimage
aseformat
assert
asteroidsjs
backgrounds01
backgrounds02
backgrounds03
barnsleyfern
base26
base64
bib
binary
bodypix
bouncy
box2dweb
breakoutjs
browserversion
buslanes
busybutton
bvhreader
calendar
candycrush
candycrush2
canvas
canvas2
canvas3
canvasmandelbrot
canvasmandelbrot2
canvasnumbers
canvaszoom
capsule
car2dsimulationphysics
changingimages
chaosgame
chaosrandom
chaosrandomhisto
chaosrandomhisto2
chatgptusingopenai
chatgptusingopenai2
chatgptusingopenai3
checkboxtoggle
chinesetiles
classes
classfeatures
clipboardbutton
clonenode
codedropdown
codemirror
codemirror2
collada
colorpick
columnresizer
contextmenu
convnet
cookiebanner
countdown
countdown2
countdown3
crop
css3dbarchart
css3dbarchart2
css3dbook
css3dscene
csscube
csscube2
csscube3
csscubevideos
cssfilelist
csshas
csspulse
cssresizeaspect
cssspin
csszooming
csvtoarray
curleffect
customcheckbox
d3datamap
d3js
d3js10
d3js11
d3js2
d3js3
d3js4
d3js5
d3js6
d3js7
d3js8
d3js9
d3jsanimatedgrid
d3jsarctransition
d3jsarctransition2
d3jsaxis
d3jsaxischanging
d3jsbars
d3jsbrushing
d3jsbuslanes
d3jsbuslanes2
d3jscalendar
d3jscheat
d3jsclock
d3jscloudmap
d3jscogs
d3jscolors
d3jscovid
d3jscovid2
d3jscovid3
d3jsdashboard
d3jsdashboard2
d3jsdashboard3
d3jsdatakeyfunction
d3jsdensity
d3jsdragresizing
d3jsdragresizing2
d3jseach
d3jsease
d3jsevents
d3jsflower
d3jsforcegroups
d3jsforces
d3jsforces2
d3jsfractaltree
d3jsgeo
d3jsgroupbars
d3jsgroups
d3jsheatmap
d3jshex
d3jshierarchies
d3jshierarchies2
d3jshistogram
d3jshistogram2
d3jshistogram3
d3jshistogram4
d3jsinterpolate
d3jsjoin
d3jskmean
d3jskmean2
d3jsline
d3jsline2
d3jsline3
d3jsline4
d3jslinetransition
d3jslinetransition0
d3jslinetransition2
d3jsmaplocations
d3jsmaps
d3jsmaps2
d3jsmaps3
d3jsmisc
d3jsmisc2
d3jsmodule
d3jsmodulecolor
d3jsmultistyles
d3jsnobel
d3jsoverlappinggraphs
d3jspanel
d3jspie
d3jspieinterpolate
d3jssankey
d3jssankey2
d3jsscatter
d3jsshapes
d3jsslider
d3jsspending
d3jsspending2
d3jsspiralplot
d3jsspirograph
d3jssquare
d3jsstack
d3jsstackedbar
d3jsstackedbar2
d3jssunburst
d3jssunmoon
d3jssvglines
d3jssymbols
d3jstimelines
d3jsuk
d3jsvoronoi
d3scatterplot
d3timeline
d3timeline2
datalist
datamuse
date
dblclickhighlight
deviceorientation
dictionaryapi
dockermenu
doodlepad
downloadgif
dragdroplistitems
dragrotateresizediv
dragrotateresizediv2
dragrotateresizediv3
dragrotateresizediv4
dragrotateresizefontsize
dragselectbrush
drawlinesdiv
dropdown
dualquaternionimages
dynamicgrid
easefunctions
easeinterpolate3dplots
echart
echart2
echart3
encapsulation
epubviewer
errorstack
excalidraw
excalidraw2
excalidraw3
excalidraw5
expandable
faker
fetchplus
fileupload
fixedtopbar
fluiddynamics
fluiddynamics2
fluiddynamics3
fluidsmokedynamics
fluidsmokedynamics2
fonts
fonts2
footerbar
fractalmaze
fractalmaze2
fractalnoiseimage
fractals
fractals2
fractaltree
freesvg
fresnel
froggerjs
gantt
gifgiphyapi
gifhex
gltffromscratch
gradients
griditems
griditems2
griditems3
griditems4
gridworms
heat
hexview
hexview2
highlight
icons
icons2
iframes
ik
imagetracertosvg
imgur
inputfile
invadersjs
ipynb
ipynb2
ipynb3
ipynb4
isbn13
isbn2
jpghex
jquery
jquery2
jqueryui
jqueryui2
jsdraganddrop
jsfire
jslint
jsobfuscate
jsraytracer
jstree
jstree2
jszip
jszipimages
jszipread
keyframes
l2dwidget
lda
leftmenu
less
less2
lineargradientimage
linenumbers
loadimagefromfile
makepdf
maps
markdown
markdown2
markdown3
markdownalerts
markdownalerts2
markdownbookmarks
markovimage
markovpixelblocks
mathjax
matrices
matsandvects
mazegamejs
md2tex
metrotiles
metrowindows
milestones
minkowski2dboxes
misc
misc2
modules
myipdetails
mymodplotly
neataptic
networkstructures
networkstructures2
neural_network_drawshape
neural_network_plot_in_vs_out
neuralnetworkarrays
neuralnetworkblocks
neuralnetworksinewave
neuralnetworksnolibs
neuralnetworkvisualization
number
obj
objtojson
openaiimages
opencv
opencv2
opencv3
opencv4
opencv5
outline
p2
p5fractalleaf
p5fractalshape
p5js
p5js2
p5js3
p5jsanimatedcover
p5mengercube
p5snowflakes
palindrome
panel
parallax
paste
paste2
pasteimgfromurl
pdfjs
pdfjs2
pdfkit
pdfkit2
pdfkit3
pdfkit4
pdfkit5
pdfkit6
pdfmake
pdfmake2
pdfmake3
pdfmake4
pdfmake5
pdfmake6
perlin
perlin2
perlin3
perspective
pexels
pixelgridpattern
playground
plotly
plotlynoise
plotlyranddist
plyloader
plyloader2
pngtxtencoder
pongjs
pptxgenjs
prettycode
prism
prn
problems
progress
pseudorandom
px2svg
python
quotes
racergame
random
randomcalcpie
randomgenerator
randomprofilepatterns
randomsinhistogram
randomstring
rating
rayambient
raymonte
raymonteprogressive
raymonteprogressive2
raymontewarmstart
reexpcross
reexpcross2
regex
regexbib
regexpfixbib
regexpmultiline
repeatwordsregexp
resizabletable
resizabletable2
revealjs
revealjs2
revealjsmulti
ritalanguage
ritalanguage2
ritalanguage3
rotateimg
rough
rsapublicprivatekeys
rss
rss2
sankey
scrappingsvg
scrolltext
scrolltext2
scrollwidth
sdf2dcanvas
sdfboxinboxtwist
sdfchessbishop
sdfchessking
sdfchessknight
sdfchesspawn
sdfchessqueen
sdfchessrook
sdfhollowbox
setintervalexception
shareurl
shuffle
sidecomment
similarity
simplehighlighter
simpleplatformgamejs
sinecanvas
sliderpopout
slides
smileys
snowfall
snowman
sound
soundsignal
sphererayintersection
springs
sqljs
steganography
stereogram
stringmatching
sudoku
sudoku2
sudoku3
svg
svgchaos
svgdragresize
svgdragresize2
svgdragresize3
svgdragrotate
svgdrawing
svglines
svglines2
svglines3
svglines4
svglines5
svglinesmandelbrot
svgpathsdragrotate
svgpathsdragrotateresize
svgpie
svgpie2
svgpie3
svgpiepath
svgpiepath2
svgrandomfaces
symbols
synaptic
synaptic2
synonyms
tablerotatecells
tablerotatecells2
tablerotatecells3
tablerotatecells3b
tablerotatecells4
tables
tablezebra
tabularjs
tabularjs2
tabulatordownload
tagcanvas
tensorflowgan
tensorflowjs
tensorflowjsbasic
tensorflowjscnn
tensorflowjssinewave
tensorflowjssound
tensorflowmobilenet
tetrahedronfractal
tetrahedronfractalfolding
tetris
textarea
textareaauto
textareadiv
textareadiv2
textmaskimage
theirorthere
thesaurus
threejs
threejs2
threejs3
threejs4
threejsgltf
threejstokyo
tiles
toaster
tooltip
transition
transitionexpandabledropdown
treeview
treeview2
tricks
tshirt
tshirt2
tshirt3
turningpages
unsplash
urlblob
urlblob2
userdefinepoints
vector
videos
videos2
visualsort
vue
w2ui
w2uientertextdialog
webcam
webgl
webgl2
webgl3
webgl4
webgl5
webglbasic1
webglbasic2
webglcube
webglfov
webglfrustum
webgljson
webglleaves
webgllighting
webglorthographic
webglpoints1
webglpoints2
webglpoints3
webglsquare
webgltexture1
webgltexture2
webgltexture3
webgltransforms
webgltriangle
webgpu
webgpu10
webgpu11
webgpu12
webgpu13
webgpu14
webgpu15
webgpu16
webgpu17
webgpu2
webgpu3
webgpu4
webgpu5
webgpu6
webgpu7
webgpu8
webgpu9
webgpubars
webgpubuffers
webgpubuffers2
webgpucellnoise
webgpuclouds
webgpuclydescope
webgpucompute
webgpucubemap
webgpucubemap2
webgpudeferred
webgpudepth
webgpudof
webgpudrops
webgpuetha
webgpufire
webgpufractalcubes
webgpuglassrain
webgpugltf
webgpugltf2
webgpugrass
webgpugrid
webgpukernel
webgpukleinian
webgpulabupdates
webgpulighting
webgpumandelbrot
webgpumeta3d
webgpumetaballs
webgpumouse
webgpunoise
webgpunormalmapping
webgpuobj
webgpuparallax
webgpuparallax2
webgpuparallax3
webgpuparallaxshadow
webgpuparallaxshadow2
webgpupixel
webgpuquad
webgpuray1
webgpuraytracing
webgpuraytracing2
webgpushadowmaps
webgpushadowmaps2
webgpusierpinski2d
webgpusierpinski3d
webgpusinusoid
webgpussao
webgpustadiumobj
webgpuswirl
webgputestpipe3
webgputoon
webgputopology
webgputt
webgpuvolcloud
webgpuwater
webgpuwireframe
webgpuwireframe2
webpcanvas
webworkers
webxr
webxr2
wiggly
wikipedia