<commit_before>package geo_test

import (
	"encoding/json"
	"testing"

	geo "."
)

func BenchmarkPathDistanceFrom(b *testing.B) {
	basePath := testPath1()
	otherPath := testPath2()

	points := otherPath.Length()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		basePath.DistanceFrom(otherPath.GetAt(i % points))
	}
}

func BenchmarkPathSquaredDistanceFrom(b *testing.B) {
	basePath := testPath1()
	otherPath := testPath2()

	points := otherPath.Length()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		basePath.SquaredDistanceFrom(otherPath.GetAt(i % points))
	}
}

func BenchmarkPathMeasure(b *testing.B) {
	basePath := testPath1()
	otherPath := testPath2()

	points := otherPath.Length()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		basePath.Measure(otherPath.GetAt(i % points))
	}
}

func BenchmarkPathResampleToMorePoints(b *testing.B) {
	path := testPath1()
	totalPoints := int(float64(path.Length()) * 1.616)

	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		path.Resample(totalPoints)
	}
}

func BenchmarkPathResampleToLessPoints(b *testing.B) {
	path := testPath1()
	totalPoints := int(float64(path.Length()) / 1.616)

	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		path.Resample(totalPoints)
	}
}

func testPath1() *geo.Path {
	var data [][2]float64
	err := json.Unmarshal([]byte(`[[37.844221,-121.949564],[37.84419,-121.949493],[37.844166,-121.949419],[37.844141,-121.949346],[37.844118,-121.949277],[37.844091,-121.949209],[37.844061,-121.949145],[37.844032,-121.949083],[37.844004,-121.94902],[37.843976,-121.948959],[37.843946,-121.948897],[37.843917,-121.948836],[37.843883,-121.948775],[37.843849,-121.948722],[37.843817,-121.948664],[37.843784,-121.948611],[37.843748,-121.948559],[37.843714,-121.948506],[37.843678,-121.948451],[37.843638,-121.948396],[37.843603,-121.948342],[37.843567,-121.948284],[37.843535,-121.948223],[37.843504,-121.948161],[37.84347,-121.948102],[37.843441,-121.948042],[37.843419,-121.94798],[37.843396,-121.947924],[37.84336,-121.947881],[37.843313,-121.947863],[37.843263,-121.947867],[37.843224,-121.947895],[37.84319,-121.947936],[37.843159,-121.947979],[37.843126,-121.948024],[37.843097,-121.948072],[37.843067,-121.948122],[37.843038,-121.948173],[37.843006,-121.94822],[37.842968,-121.948258],[37.842925,-121.948297],[37.842875,-121.948324],[37.842819,-121.948334],[37.842758,-121.948328],[37.842698,-121.948298],[37.842636,-121.948259],[37.842566,-121.948214],[37.842499,-121.948172],[37.842439,-121.948133],[37.842391,-121.948082],[37.842356,-121.948021],[37.842341,-121.947954],[37.842336,-121.94788],[37.842345,-121.947797],[37.842362,-121.947718],[37.842383,-121.947647],[37.84241,-121.947576],[37.842442,-121.947505],[37.842474,-121.947438],[37.842509,-121.947372],[37.842545,-121.947308],[37.842582,-121.947243],[37.842621,-121.947178],[37.842665,-121.947118],[37.842712,-121.947062],[37.842764,-121.947012],[37.842815,-121.946964],[37.842861,-121.946919],[37.842905,-121.94687],[37.842949,-121.946818],[37.842993,-121.946766],[37.843034,-121.94671],[37.843072,-121.946652],[37.843111,-121.946592],[37.843147,-121.94653],[37.843179,-121.946467],[37.843209,-121.946406],[37.843241,-121.946353],[37.843277,-121.946304],[37.843313,-121.94625],[37.843351,-121.946198],[37.843385,-121.946146],[37.843422,-121.946089],[37.843451,-121.946032],[37.843459,-121.945973],[37.843457,-121.945911],[37.84344,-121.945848],[37.843391,-121.945815],[37.843326,-121.945783],[37.843271,-121.945754],[37.843224,-121.945719],[37.843181,-121.94567],[37.843139,-121.945622],[37.843103,-121.945561],[37.843068,-121.945506],[37.843035,-121.945455],[37.843005,-121.945407],[37.842972,-121.945359],[37.842938,-121.945315],[37.842904,-121.945271],[37.842871,-121.945224],[37.842837,-121.945179],[37.842806,-121.945135],[37.842771,-121.945089],[37.842733,-121.945039],[37.842694,-121.944988],[37.842659,-121.944931],[37.842628,-121.944876],[37.842595,-121.944826],[37.842562,-121.944777],[37.842529,-121.944722],[37.842496,-121.944663],[37.842468,-121.944604],[37.842437,-121.944536],[37.842403,-121.944469],[37.842366,-121.944404],[37.842334,-121.94434],[37.842306,-121.94428],[37.842278,-121.94422],[37.842249,-121.94416],[37.842215,-121.944101],[37.842177,-121.944038],[37.842141,-121.943981],[37.842107,-121.943927],[37.842074,-121.94387],[37.842045,-121.943812],[37.842024,-121.943751],[37.842025,-121.943675],[37.842038,-121.943592],[37.842061,-121.943517],[37.842092,-121.943447],[37.84213,-121.943386],[37.84217,-121.943321],[37.842216,-121.943252],[37.842263,-121.94318],[37.842315,-121.943109],[37.842371,-121.94304],[37.842432,-121.942972],[37.842494,-121.942902],[37.842557,-121.942826],[37.842616,-121.94275],[37.842672,-121.942677],[37.842729,-121.942599],[37.842779,-121.942517],[37.842824,-121.942434],[37.842872,-121.942357],[37.842924,-121.94228],[37.842975,-121.942208],[37.843024,-121.942139],[37.843074,-121.942077],[37.843127,-121.942022],[37.843185,-121.941961],[37.84324,-121.941892],[37.843292,-121.941813],[37.843342,-121.941735],[37.843388,-121.941659],[37.843436,-121.941592],[37.843474,-121.941527],[37.843513,-121.941465],[37.843543,-121.941406],[37.84353,-121.941343],[37.84349,-121.941308],[37.843423,-121.941303],[37.843351,-121.941309],[37.843279,-121.941308],[37.843208,-121.94129],[37.843146,-121.941248],[37.843094,-121.941188],[37.843038,-121.941128],[37.843002,-121.941044],[37.842978,-121.940955],[37.842967,-121.94086],[37.842956,-121.940766],[37.842946,-121.940665],[37.842966,-121.940573],[37.842996,-121.940491],[37.843046,-121.940423],[37.84311,-121.940377],[37.843167,-121.940321],[37.843215,-121.940252],[37.843249,-121.940177],[37.843249,-121.940102],[37.843222,-121.940057],[37.843174,-121.940053],[37.843112,-121.940079],[37.843056,-121.940104],[37.842996,-121.940131],[37.842936,-121.940169],[37.84288,-121.940202],[37.842825,-121.940229],[37.842766,-121.940264],[37.842713,-121.940304],[37.842654,-121.94035],[37.842593,-121.940392],[37.842538,-121.940437],[37.842487,-121.940482],[37.842441,-121.940525],[37.842386,-121.940561],[37.842334,-121.940589],[37.842273,-121.940609],[37.842212,-121.940613],[37.842153,-121.940607],[37.842093,-121.940593],[37.842031,-121.94057],[37.841976,-121.940535],[37.841921,-121.940499],[37.841869,-121.940465],[37.841824,-121.940427],[37.841782,-121.940387],[37.841742,-121.940346],[37.8417,-121.940305],[37.841653,-121.940263],[37.841605,-121.940216],[37.841559,-121.940167],[37.841515,-121.940103],[37.841481,-121.940032],[37.841444,-121.939965],[37.841416,-121.939891],[37.841393,-121.939818],[37.841378,-121.939736],[37.841366,-121.939653],[37.841355,-121.939571],[37.84134,-121.939489],[37.841324,-121.939412],[37.841305,-121.939338],[37.841289,-121.939269],[37.841273,-121.939203],[37.841249,-121.939144],[37.841223,-121.939087],[37.841168,-121.938969],[37.841158,-121.93894],[37.841145,-121.938902],[37.841123,-121.93883],[37.841102,-121.938752],[37.841086,-121.938669],[37.841077,-121.938581],[37.841081,-121.938488],[37.841089,-121.938399],[37.841099,-121.938317],[37.841109,-121.938237],[37.841121,-121.938157],[37.841144,-121.93808],[37.84117,-121.938007],[37.841199,-121.93794],[37.841232,-121.937876],[37.84127,-121.937816],[37.841308,-121.93776],[37.841352,-121.937705],[37.841398,-121.937652],[37.841442,-121.937602],[37.841489,-121.93755],[37.84154,-121.937501],[37.841595,-121.937456],[37.841654,-121.937414],[37.841712,-121.937375],[37.84177,-121.937339],[37.841829,-121.937303],[37.841885,-121.937268],[37.841942,-121.93724],[37.841999,-121.937206],[37.842059,-121.937177],[37.842119,-121.937158],[37.842178,-121.937142],[37.84224,-121.937128],[37.8423,-121.937117],[37.842361,-121.937107],[37.842421,-121.937096],[37.84248,-121.937077],[37.842539,-121.937057],[37.842594,-121.937034],[37.842644,-121.937009],[37.842697,-121.936986],[37.842751,-121.936965],[37.842803,-121.93695],[37.842861,-121.936942],[37.842919,-121.93694],[37.842976,-121.93694],[37.843019,-121.93694],[37.843065,-121.936943],[37.843117,-121.936944],[37.843173,-121.936939],[37.843231,-121.936938],[37.843287,-121.936941],[37.843347,-121.936949],[37.843407,-121.936957],[37.843465,-121.93697],[37.843518,-121.936996],[37.843573,-121.93702],[37.843629,-121.937045],[37.843682,-121.937069],[37.843736,-121.937084],[37.843795,-121.937084],[37.843848,-121.93708],[37.843905,-121.937071],[37.843961,-121.937061],[37.844014,-121.937053],[37.844067,-121.937043],[37.844117,-121.937033],[37.844167,-121.937023],[37.844217,-121.937011],[37.844264,-121.936996],[37.844308,-121.936972],[37.844341,-121.936941],[37.844361,-121.936901],[37.84437,-121.936856],[37.844368,-121.936806],[37.844355,-121.936759],[37.844332,-121.936713],[37.844297,-121.93666],[37.844258,-121.936604],[37.844219,-121.936554],[37.844173,-121.9365],[37.844132,-121.936446],[37.844087,-121.936394],[37.844039,-121.936344],[37.843994,-121.936295],[37.843956,-121.936242],[37.843909,-121.936196],[37.843865,-121.936147],[37.84382,-121.9361],[37.84377,-121.936059],[37.843728,-121.936014],[37.843696,-121.935956],[37.843669,-121.935899],[37.843645,-121.935842],[37.843635,-121.935781],[37.843626,-121.935719],[37.843622,-121.935648],[37.843619,-121.935573],[37.843625,-121.935493],[37.843637,-121.935407],[37.843641,-121.935325],[37.843645,-121.935243],[37.843645,-121.935163],[37.843641,-121.935081],[37.843638,-121.934999],[37.843634,-121.93492],[37.843634,-121.93484],[37.843632,-121.934764],[37.84363,-121.93469],[37.843629,-121.934615],[37.843626,-121.934538],[37.843625,-121.934459],[37.843623,-121.934379],[37.843624,-121.9343],[37.843629,-121.934221],[37.843644,-121.934145],[37.843666,-121.934078],[37.843699,-121.934022],[37.843739,-121.933972],[37.84378,-121.933929],[37.843821,-121.933892],[37.84386,-121.933853],[37.843895,-121.933811],[37.843928,-121.933768],[37.843955,-121.93373],[37.843981,-121.933689],[37.844008,-121.933649],[37.844031,-121.933603],[37.844049,-121.933551],[37.844057,-121.933498],[37.844053,-121.933441],[37.844036,-121.933387],[37.844008,-121.933345],[37.843977,-121.933305],[37.843937,-121.933263],[37.843895,-121.933217],[37.843852,-121.933178],[37.843806,-121.93314],[37.843761,-121.933106],[37.843711,-121.933081],[37.843667,-121.933065],[37.843622,-121.933058],[37.843572,-121.933059],[37.843519,-121.933064],[37.843463,-121.933066],[37.843403,-121.933062],[37.843343,-121.933043],[37.84328,-121.933017],[37.843218,-121.932992],[37.843163,-121.932967],[37.843111,-121.932942],[37.843063,-121.932915],[37.843014,-121.932893],[37.842964,-121.932865],[37.842911,-121.932843],[37.842858,-121.932826],[37.842803,-121.932811],[37.842751,-121.932795],[37.842701,-121.932776],[37.842654,-121.932751],[37.84261,-121.932721],[37.842567,-121.932686],[37.842527,-121.932648],[37.84249,-121.932605],[37.842452,-121.932559],[37.842416,-121.932507],[37.842386,-121.932452],[37.842359,-121.932396],[37.842326,-121.932341],[37.842285,-121.932294],[37.842243,-121.932252],[37.842199,-121.932218],[37.842152,-121.932197],[37.842099,-121.932182],[37.842048,-121.932166],[37.841997,-121.932161],[37.841945,-121.932156],[37.841896,-121.932149],[37.841847,-121.932133],[37.841799,-121.932113],[37.84175,-121.932096],[37.841703,-121.932081],[37.841657,-121.932061],[37.841606,-121.932042],[37.84156,-121.932024],[37.841518,-121.932001],[37.841485,-121.93197],[37.841464,-121.931921],[37.841456,-121.931857],[37.841472,-121.931784],[37.841489,-121.931721],[37.841511,-121.931658],[37.841548,-121.931604],[37.841597,-121.93156],[37.841651,-121.931523],[37.841708,-121.931489],[37.841767,-121.931466],[37.841825,-121.931444],[37.841888,-121.931416],[37.841949,-121.931376],[37.842007,-121.931327],[37.842055,-121.93126],[37.842095,-121.931183],[37.842126,-121.931101],[37.842147,-121.931012],[37.842161,-121.930926],[37.842173,-121.930843],[37.842182,-121.930762],[37.842191,-121.93068],[37.842198,-121.930595],[37.842205,-121.930512],[37.842214,-121.930432],[37.842217,-121.930354],[37.842215,-121.930274],[37.842213,-121.930196],[37.842208,-121.930123],[37.842204,-121.930052],[37.8422,-121.929982],[37.8422,-121.929912],[37.84221,-121.929845],[37.842222,-121.92978],[37.842232,-121.92971],[37.842238,-121.929638],[37.842237,-121.929567],[37.842227,-121.929499],[37.842204,-121.929431],[37.842176,-121.929366],[37.842142,-121.929302],[37.842103,-121.929241],[37.842061,-121.929181],[37.842021,-121.929123],[37.841977,-121.929068],[37.841934,-121.929013],[37.841896,-121.928955],[37.841866,-121.928888],[37.841842,-121.928813],[37.841829,-121.92874],[37.841841,-121.928657],[37.841862,-121.928576],[37.841885,-121.928497],[37.841905,-121.928419],[37.841927,-121.928337],[37.841944,-121.928253],[37.841963,-121.928172],[37.841982,-121.928091],[37.842003,-121.928012],[37.842023,-121.927938],[37.842051,-121.92787],[37.84209,-121.927811],[37.84214,-121.927764],[37.842193,-121.927722],[37.842246,-121.927681],[37.842289,-121.927633],[37.842333,-121.927576],[37.842373,-121.927516],[37.842406,-121.927455],[37.84243,-121.927392],[37.842442,-121.927324],[37.842448,-121.927256],[37.842454,-121.927183],[37.842457,-121.927107],[37.842462,-121.927032],[37.842465,-121.926956],[37.842471,-121.926879],[37.842483,-121.926806],[37.842508,-121.926744],[37.842549,-121.926707],[37.842592,-121.92668],[37.842639,-121.926656],[37.842677,-121.92662],[37.842715,-121.92658],[37.842745,-121.926528],[37.84277,-121.926469],[37.842779,-121.926403],[37.84278,-121.926341],[37.842774,-121.926279],[37.842757,-121.926215],[37.842736,-121.926155],[37.842711,-121.926097],[37.842684,-121.926041],[37.842653,-121.925986],[37.842614,-121.92594],[37.842569,-121.925902],[37.842518,-121.925872],[37.842469,-121.92585],[37.842417,-121.92583],[37.842361,-121.925811],[37.842305,-121.925793],[37.842248,-121.925767],[37.842187,-121.92574],[37.842131,-121.925706],[37.842077,-121.925667],[37.842027,-121.925619],[37.841979,-121.925567],[37.841929,-121.925514],[37.841878,-121.925467],[37.841827,-121.925423],[37.841776,-121.925384],[37.841729,-121.925341],[37.841681,-121.925296],[37.841635,-121.925251],[37.841588,-121.925206],[37.84154,-121.925161],[37.841492,-121.925114],[37.841444,-121.925072],[37.841396,-121.925028],[37.841345,-121.924988],[37.841294,-121.924946],[37.841242,-121.924904],[37.84119,-121.92486],[37.841131,-121.924817],[37.841077,-121.924763],[37.841031,-121.924702],[37.840996,-121.92463],[37.840977,-121.924551],[37.840977,-121.924458],[37.840975,-121.924367],[37.840975,-121.924275],[37.840969,-121.924186],[37.840958,-121.924098],[37.840948,-121.924013],[37.840934,-121.92393],[37.84092,-121.923847],[37.8409,-121.923765],[37.840874,-121.923686],[37.840848,-121.923609],[37.840824,-121.923529],[37.840801,-121.923444],[37.840779,-121.923358],[37.840757,-121.923267],[37.840736,-121.923173],[37.840715,-121.923076],[37.840698,-121.922975],[37.840692,-121.922872],[37.840696,-121.922769],[37.840702,-121.922667],[37.840714,-121.922563],[37.84072,-121.922466],[37.840731,-121.92237],[37.840747,-121.922274],[37.840765,-121.922179],[37.840786,-121.922084],[37.840818,-121.921987],[37.84086,-121.921902],[37.840913,-121.921823],[37.840975,-121.921753],[37.84104,-121.921682],[37.841096,-121.921602],[37.841152,-121.921527],[37.841211,-121.921457],[37.841271,-121.921398],[37.841339,-121.921358],[37.841415,-121.921334],[37.841487,-121.921317],[37.841565,-121.921329],[37.841642,-121.921361],[37.841715,-121.921401],[37.841788,-121.921441],[37.841863,-121.921485],[37.841936,-121.921523],[37.842006,-121.921561],[37.842079,-121.921599],[37.842154,-121.921637],[37.842232,-121.921673],[37.842309,-121.921705],[37.842382,-121.921731],[37.842451,-121.921743],[37.842508,-121.921715],[37.84257,-121.921671],[37.842612,-121.9216],[37.842623,-121.921503],[37.842617,-121.921386],[37.842613,-121.921269],[37.842611,-121.921158],[37.842616,-121.921048],[37.842623,-121.920932],[37.84265,-121.920817],[37.842673,-121.920713],[37.842708,-121.920613],[37.842762,-121.920528],[37.842825,-121.920462],[37.8429,-121.920414],[37.842986,-121.920399],[37.84307,-121.920412],[37.843143,-121.920456],[37.843201,-121.920529],[37.843255,-121.920608],[37.843301,-121.920691],[37.843348,-121.920777],[37.84339,-121.920868],[37.843429,-121.920962],[37.843465,-121.921058],[37.843495,-121.921156],[37.843519,-121.921245],[37.84355,-121.921331],[37.843572,-121.921417],[37.843598,-121.921499],[37.843628,-121.921583],[37.843657,-121.921673],[37.843685,-121.921759],[37.843714,-121.921839],[37.843744,-121.921917],[37.843782,-121.921999],[37.843824,-121.922078],[37.843869,-121.922153],[37.843923,-121.922225],[37.843985,-121.922302],[37.844048,-121.922386],[37.84411,-121.922471],[37.844163,-121.922556],[37.844217,-121.922651],[37.844266,-121.922753],[37.844303,-121.922854],[37.844331,-121.922957],[37.844349,-121.92307],[37.844371,-121.923179],[37.844384,-121.923283],[37.844404,-121.923385],[37.844425,-121.923491],[37.844447,-121.923592],[37.844466,-121.923691],[37.844478,-121.923788],[37.844499,-121.923886],[37.844527,-121.923985],[37.844546,-121.924081],[37.844575,-121.924178],[37.844614,-121.924271],[37.844652,-121.924356],[37.844686,-121.924437],[37.844718,-121.924519],[37.844752,-121.924598],[37.844785,-121.924679],[37.844827,-121.924758],[37.844864,-121.924846],[37.844897,-121.92494],[37.844922,-121.925045],[37.84494,-121.925153],[37.84494,-121.925262],[37.844933,-121.925371],[37.844931,-121.925483],[37.844937,-121.925596],[37.844956,-121.925709],[37.844975,-121.925819],[37.845008,-121.925935],[37.84503,-121.926044],[37.845053,-121.926149],[37.845079,-121.926245],[37.845107,-121.926336],[37.845135,-121.926428],[37.845153,-121.926513],[37.845184,-121.926599],[37.845221,-121.926686],[37.845257,-121.92677],[37.845301,-121.926856],[37.845343,-121.926932],[37.845389,-121.926992],[37.845446,-121.927039],[37.845524,-121.927061],[37.845624,-121.927052],[37.845681,-121.927007],[37.845734,-121.926945],[37.845793,-121.926888],[37.845855,-121.926839],[37.845931,-121.926814],[37.846014,-121.926816],[37.846093,-121.926827],[37.846169,-121.926835],[37.846242,-121.926848],[37.846316,-121.926854],[37.846385,-121.926865],[37.846453,-121.926886],[37.846522,-121.926915],[37.846587,-121.926955],[37.846646,-121.927017],[37.84669,-121.92711],[37.846724,-121.927214],[37.846763,-121.927323],[37.846812,-121.927436],[37.846881,-121.927558],[37.846956,-121.92768],[37.847025,-121.927809],[37.847089,-121.927944],[37.847142,-121.928091],[37.847173,-121.928238],[37.847193,-121.928388],[37.847206,-121.928544],[37.847225,-121.928698],[37.847248,-121.92884],[37.847294,-121.928968],[37.847351,-121.929078],[37.847433,-121.929181],[37.847516,-121.929275],[37.847596,-121.929383],[37.847666,-121.929502],[37.847722,-121.929628],[37.84776,-121.92977],[37.847799,-121.929907],[37.84785,-121.930041],[37.8479,-121.930166],[37.84795,-121.930294],[37.847996,-121.930424],[37.848041,-121.930555],[37.848089,-121.930689],[37.848136,-121.930821],[37.848178,-121.930954],[37.848225,-121.931092],[37.848276,-121.931225],[37.848334,-121.931357],[37.848392,-121.931491],[37.848451,-121.931626],[37.848518,-121.931758],[37.848589,-121.931882],[37.848668,-121.931994],[37.848747,-121.932099],[37.848827,-121.932205],[37.848903,-121.932312],[37.848983,-121.932414],[37.849063,-121.932505],[37.849153,-121.932588],[37.84925,-121.93266],[37.849347,-121.932734],[37.849449,-121.932801],[37.849563,-121.932858],[37.849666,-121.932897],[37.849763,-121.932909],[37.849857,-121.932904],[37.849952,-121.932895],[37.850059,-121.932878],[37.850179,-121.932854],[37.850301,-121.932846],[37.850422,-121.932844],[37.850534,-121.932859],[37.850647,-121.932862],[37.850757,-121.932852],[37.850862,-121.932802],[37.850955,-121.932705],[37.851037,-121.932573],[37.85109,-121.932454],[37.851122,-121.932328],[37.851143,-121.932206],[37.851149,-121.932087],[37.851146,-121.931985],[37.851134,-121.931908],[37.85109,-121.931864],[37.851014,-121.931838],[37.850897,-121.931801],[37.850783,-121.931721],[37.850682,-121.931629],[37.8506,-121.931516],[37.850558,-121.931414],[37.850554,-121.931299],[37.850568,-121.931191],[37.850611,-121.931104],[37.850687,-121.931032],[37.850758,-121.930961],[37.850824,-121.930894],[37.850893,-121.930835],[37.850965,-121.930786],[37.851041,-121.930739],[37.851106,-121.930679],[37.851153,-121.930597],[37.851187,-121.930515],[37.8512,-121.93043],[37.851203,-121.930341],[37.851187,-121.93026],[37.851147,-121.930206],[37.851072,-121.930169],[37.850992,-121.930148],[37.850908,-121.930152],[37.850834,-121.93016],[37.850757,-121.930179],[37.850675,-121.930208],[37.850586,-121.930241],[37.850499,-121.93025],[37.850425,-121.93023],[37.850366,-121.930188],[37.850325,-121.930122],[37.850306,-121.930042],[37.850313,-121.929961],[37.850346,-121.929896],[37.850383,-121.929832],[37.850447,-121.92978],[37.850509,-121.929737],[37.850575,-121.929707],[37.850645,-121.929688],[37.850716,-121.929667],[37.850791,-121.929652],[37.850867,-121.929636],[37.850948,-121.929614],[37.85102,-121.92958],[37.851075,-121.929531],[37.851139,-121.929481],[37.851196,-121.929429],[37.851251,-121.92938],[37.851306,-121.929321],[37.85136,-121.929261],[37.851411,-121.929204],[37.851459,-121.929138],[37.851501,-121.92907],[37.851539,-121.928999],[37.851572,-121.928928],[37.851604,-121.928857],[37.851636,-121.928786],[37.851667,-121.928714],[37.851703,-121.928639],[37.851734,-121.928565],[37.851765,-121.928495],[37.851791,-121.928427],[37.851812,-121.928356],[37.851822,-121.928291],[37.851813,-121.928231],[37.851792,-121.92818],[37.851754,-121.928136],[37.851712,-121.928097],[37.851667,-121.928053],[37.851624,-121.928016],[37.851581,-121.92797],[37.851541,-121.927915],[37.851505,-121.927854],[37.851485,-121.927773],[37.851476,-121.927688],[37.851486,-121.927601],[37.851513,-121.927517],[37.851545,-121.927439],[37.851579,-121.92736],[37.851611,-121.927279],[37.851636,-121.9272],[37.85166,-121.92712],[37.851672,-121.927041],[37.851669,-121.926963],[37.851662,-121.926893],[37.851646,-121.926831],[37.851624,-121.926774],[37.851589,-121.926722],[37.851551,-121.92667],[37.851505,-121.926617],[37.851459,-121.926562],[37.851417,-121.926505],[37.851395,-121.926431],[37.851396,-121.926353],[37.851427,-121.926284],[37.851472,-121.926224],[37.851524,-121.92617],[37.851576,-121.926116],[37.85163,-121.926062],[37.851685,-121.926007],[37.85174,-121.92595],[37.851796,-121.925889],[37.851847,-121.92583],[37.8519,-121.925775],[37.851952,-121.92573],[37.852008,-121.925704],[37.852074,-121.925696],[37.852143,-121.925718],[37.852206,-121.925769],[37.852263,-121.925844],[37.852303,-121.925937],[37.852333,-121.926032],[37.852362,-121.926136],[37.852392,-121.926245],[37.852422,-121.926353],[37.852453,-121.926466],[37.852485,-121.926579],[37.852513,-121.926696],[37.852542,-121.926812],[37.852571,-121.926927],[37.852607,-121.92704],[37.852647,-121.927148],[37.852682,-121.927259],[37.852716,-121.927368],[37.852742,-121.927478],[37.852772,-121.927587],[37.852801,-121.927697],[37.85283,-121.927808],[37.852855,-121.927912],[37.852875,-121.928013],[37.852886,-121.928111],[37.852892,-121.928209],[37.852893,-121.928309],[37.852895,-121.928408],[37.852904,-121.928504],[37.852907,-121.928599],[37.852906,-121.928689],[37.852903,-121.928777],[37.852902,-121.928867],[37.852899,-121.928954],[37.852901,-121.929043],[37.852909,-121.929135],[37.852922,-121.929227],[37.85295,-121.929318],[37.852986,-121.929397],[37.853034,-121.929466],[37.853089,-121.929536],[37.853137,-121.929614],[37.853186,-121.929693],[37.853232,-121.929784],[37.853267,-121.929877],[37.85329,-121.929978],[37.853312,-121.93008],[37.853334,-121.93018],[37.853362,-121.930278],[37.853398,-121.930371],[37.853435,-121.930461],[37.85348,-121.93054],[37.853535,-121.930604],[37.853591,-121.93066],[37.85365,-121.930718],[37.853724,-121.93077],[37.853795,-121.930815],[37.853862,-121.930861],[37.853926,-121.930911],[37.85399,-121.930959],[37.854051,-121.931011],[37.854112,-121.931061],[37.854173,-121.931104],[37.854236,-121.931148],[37.854295,-121.931187],[37.854351,-121.931223],[37.854409,-121.931269],[37.854471,-121.931322],[37.854528,-121.931374],[37.854581,-121.931434],[37.854632,-121.931497],[37.854683,-121.931562],[37.854733,-121.931625],[37.854779,-121.931685],[37.854826,-121.931741],[37.85488,-121.931804],[37.854935,-121.931884],[37.854993,-121.931964],[37.85505,-121.932039],[37.855105,-121.932113],[37.855164,-121.932189],[37.855214,-121.932263],[37.855268,-121.932329],[37.85531,-121.932389],[37.855353,-121.93247],[37.855399,-121.932568],[37.855435,-121.93265],[37.855463,-121.932729],[37.855489,-121.932809],[37.855505,-121.932884],[37.855514,-121.932969],[37.855521,-121.933055],[37.855529,-121.933145],[37.855534,-121.933234],[37.855545,-121.933328],[37.85556,-121.933423],[37.855576,-121.93351],[37.855593,-121.933583],[37.855613,-121.933652],[37.855643,-121.933715],[37.855672,-121.933776],[37.855705,-121.933832],[37.855739,-121.933877],[37.855776,-121.933927],[37.855812,-121.933975],[37.855847,-121.934028],[37.855878,-121.934082],[37.855911,-121.934138],[37.855945,-121.934201],[37.855982,-121.934266],[37.85602,-121.934332],[37.85606,-121.934392],[37.856104,-121.934439],[37.856155,-121.934473],[37.856214,-121.934502],[37.856271,-121.934527],[37.85633,-121.934545],[37.856393,-121.934557],[37.856455,-121.934567],[37.856519,-121.934581],[37.856586,-121.934594],[37.85665,-121.934615],[37.856716,-121.934652],[37.856787,-121.934699],[37.856849,-121.934764],[37.856907,-121.934833],[37.856961,-121.934908],[37.857009,-121.934994],[37.857055,-121.935084],[37.857104,-121.935177],[37.857148,-121.935265],[37.857186,-121.935355],[37.857232,-121.935449],[37.857278,-121.935536],[37.857332,-121.935606],[37.857402,-121.935663],[37.857488,-121.935694],[37.857579,-121.935703],[37.857673,-121.935692],[37.857769,-121.935675],[37.857867,-121.935657],[37.857962,-121.935643],[37.858064,-121.935628],[37.858168,-121.935619],[37.858277,-121.935599],[37.858388,-121.935578],[37.8585,-121.935559],[37.858611,-121.935533],[37.858718,-121.935502],[37.858819,-121.935472],[37.858911,-121.93544],[37.858991,-121.935399],[37.859055,-121.935352],[37.859111,-121.935302],[37.859164,-121.935248],[37.859216,-121.935196],[37.859267,-121.935148],[37.859318,-121.935097],[37.859365,-121.935048],[37.859414,-121.934998],[37.859461,-121.934942],[37.859506,-121.934888],[37.85955,-121.93484],[37.859593,-121.934794],[37.859637,-121.934752],[37.859685,-121.93471],[37.85973,-121.934669],[37.859775,-121.934627],[37.859821,-121.934587],[37.859868,-121.93455],[37.859915,-121.934511],[37.859962,-121.934476],[37.860012,-121.934441],[37.860062,-121.934405],[37.860112,-121.934379],[37.860166,-121.93435],[37.860226,-121.934322],[37.860284,-121.934297],[37.860338,-121.934272],[37.860394,-121.934251],[37.860448,-121.934226],[37.860502,-121.934204],[37.860558,-121.934184],[37.860618,-121.934159],[37.860676,-121.934131],[37.860731,-121.934098],[37.860788,-121.934064],[37.860843,-121.934029],[37.860899,-121.933996],[37.860957,-121.933962],[37.861014,-121.933925],[37.861071,-121.933884],[37.86113,-121.933847],[37.861194,-121.933808],[37.861253,-121.933774],[37.861308,-121.933739],[37.861367,-121.933701],[37.861421,-121.933663],[37.861473,-121.933622],[37.861524,-121.933583],[37.861575,-121.933543],[37.861629,-121.933502],[37.861681,-121.933459],[37.861735,-121.933416],[37.86179,-121.933371],[37.861847,-121.933326],[37.861905,-121.933284],[37.861961,-121.933242],[37.86202,-121.9332],[37.86208,-121.933161],[37.862137,-121.933123],[37.862197,-121.933087],[37.862257,-121.933048],[37.862313,-121.933007],[37.862369,-121.932969],[37.86243,-121.932932],[37.862485,-121.932893],[37.862537,-121.932849],[37.86259,-121.932807],[37.862641,-121.932767],[37.862695,-121.932731],[37.86275,-121.932705],[37.862807,-121.932684],[37.862866,-121.932668],[37.862921,-121.93267],[37.862978,-121.932685],[37.863035,-121.932703],[37.863097,-121.932727],[37.86316,-121.932754],[37.863223,-121.932783],[37.863288,-121.932806],[37.863352,-121.932832],[37.863414,-121.932864],[37.863478,-121.9329],[37.863538,-121.932939],[37.863595,-121.93298],[37.863654,-121.93302],[37.86371,-121.93306],[37.863769,-121.9331],[37.86383,-121.933131],[37.863883,-121.933149],[37.863934,-121.93315],[37.863982,-121.933137],[37.864029,-121.933107],[37.864074,-121.933061],[37.864106,-121.932999],[37.864122,-121.932928],[37.864146,-121.93286],[37.864171,-121.932789],[37.864195,-121.932728],[37.864225,-121.932672],[37.864263,-121.932628],[37.864303,-121.932593],[37.864343,-121.932575],[37.864384,-121.932577],[37.864414,-121.932608],[37.864435,-121.932653],[37.864448,-121.932703],[37.864463,-121.932761],[37.86448,-121.932829],[37.864506,-121.932894],[37.864538,-121.932951],[37.864586,-121.932995],[37.864637,-121.933028],[37.86469,-121.933054],[37.864742,-121.933077],[37.864789,-121.933103],[37.864836,-121.933132],[37.864878,-121.93316],[37.864913,-121.933191],[37.864951,-121.933221],[37.864991,-121.933242],[37.865029,-121.933242],[37.865065,-121.933219],[37.865103,-121.933184],[37.865137,-121.933138],[37.865168,-121.933083],[37.865204,-121.933036],[37.865238,-121.932983],[37.865274,-121.932915],[37.865303,-121.932852],[37.86533,-121.932788],[37.865358,-121.932727],[37.865385,-121.932665],[37.865408,-121.932597],[37.865439,-121.932528],[37.865471,-121.932463],[37.8655,-121.932405],[37.865536,-121.932339],[37.865571,-121.932274],[37.865601,-121.932213],[37.865634,-121.932159],[37.865659,-121.9321],[37.865682,-121.932041],[37.865706,-121.931984],[37.865731,-121.931927],[37.865756,-121.931875],[37.865789,-121.93183],[37.865838,-121.931801],[37.865883,-121.931782],[37.86593,-121.931782],[37.865974,-121.931797],[37.866024,-121.931824],[37.866075,-121.931852],[37.86613,-121.93188],[37.866181,-121.93191],[37.866232,-121.93193],[37.866285,-121.931954],[37.86634,-121.931974],[37.866391,-121.932006],[37.866437,-121.932038]]`), &data)
	if err != nil {
		panic(err)
	}

	p := geo.NewPathFromYXData(data)
	path := geo.NewPath()

	// this parameter can be used to thin to line to see if worst cases are impacting averages
	skip := 5
	for i := 0; i < p.Length(); i += skip {
		path.Push(p.GetAt(i))
	}

	return path
}

func testPath2() *geo.Path {
	var data [][2]float64
	err := json.Unmarshal([]byte(`[[37.844196,-121.949674],[37.844154,-121.949516],[37.844109,-121.949355],[37.844055,-121.949206],[37.844027,-121.949135],[37.843973,-121.949001],[37.843941,-121.94894],[37.843907,-121.948882],[37.843874,-121.948826],[37.843806,-121.948715],[37.843707,-121.948544],[37.843638,-121.948424],[37.843603,-121.948366],[37.843566,-121.948308],[37.843533,-121.948246],[37.843408,-121.947967],[37.843373,-121.947901],[37.843326,-121.94785],[37.843269,-121.94783],[37.843167,-121.947879],[37.843126,-121.947928],[37.84306,-121.948034],[37.843032,-121.948086],[37.842979,-121.948183],[37.842923,-121.948266],[37.842889,-121.9483],[37.842823,-121.948339],[37.842709,-121.948309],[37.842596,-121.948244],[37.842533,-121.948206],[37.842472,-121.948167],[37.842421,-121.948117],[37.842354,-121.947983],[37.842351,-121.947754],[37.84243,-121.947529],[37.842461,-121.947456],[37.842534,-121.947315],[37.842656,-121.947128],[37.842699,-121.947075],[37.842844,-121.946924],[37.842988,-121.946777],[37.843074,-121.946674],[37.843133,-121.946545],[37.843188,-121.946419],[37.843221,-121.946365],[37.843259,-121.946317],[37.843299,-121.946264],[37.843377,-121.946161],[37.843413,-121.946109],[37.843434,-121.945988],[37.84333,-121.945864],[37.843283,-121.94584],[37.843193,-121.945774],[37.84311,-121.945669],[37.843071,-121.945611],[37.843036,-121.945552],[37.842968,-121.945436],[37.842895,-121.945322],[37.842781,-121.945155],[37.842713,-121.945051],[37.842656,-121.944967],[37.842615,-121.9449],[37.842504,-121.94469],[37.84247,-121.944616],[37.842404,-121.944469],[37.842338,-121.944334],[37.842309,-121.944267],[37.842246,-121.944139],[37.842141,-121.943958],[37.842042,-121.943779],[37.842022,-121.943712],[37.842045,-121.94349],[37.842122,-121.943353],[37.842216,-121.943221],[37.842537,-121.942819],[37.84259,-121.942749],[37.842787,-121.942462],[37.842887,-121.942304],[37.843052,-121.942094],[37.843168,-121.941969],[37.843219,-121.941896],[37.843365,-121.941681],[37.843408,-121.941615],[37.843446,-121.941548],[37.843448,-121.941396],[37.843406,-121.941349],[37.843347,-121.941334],[37.843142,-121.941317],[37.843082,-121.941269],[37.842991,-121.941102],[37.842958,-121.941001],[37.842922,-121.940677],[37.842949,-121.940579],[37.842999,-121.940496],[37.843182,-121.940327],[37.843214,-121.940162],[37.843172,-121.9401],[37.843113,-121.940077],[37.843054,-121.940072],[37.842937,-121.940119],[37.842883,-121.940159],[37.842828,-121.940196],[37.842772,-121.940233],[37.842719,-121.940274],[37.842663,-121.940314],[37.842549,-121.940392],[37.842376,-121.940513],[37.842314,-121.940543],[37.84225,-121.940565],[37.842119,-121.940575],[37.842056,-121.940556],[37.841939,-121.940491],[37.841888,-121.940455],[37.841794,-121.94038],[37.841655,-121.940266],[37.841561,-121.940171],[37.841515,-121.940111],[37.841473,-121.940042],[37.841363,-121.939711],[37.841302,-121.93945],[37.841241,-121.939204],[37.841187,-121.939049],[37.841159,-121.938974],[37.841104,-121.938837],[37.841085,-121.938765],[37.84107,-121.938692],[37.84106,-121.938618],[37.841055,-121.938545],[37.841049,-121.938325],[37.841057,-121.938254],[37.841113,-121.938048],[37.841139,-121.937983],[37.841235,-121.937803],[37.841326,-121.9377],[37.841417,-121.9376],[37.841516,-121.93751],[37.841622,-121.937429],[37.841855,-121.937277],[37.841943,-121.937231],[37.841998,-121.937208],[37.842219,-121.937127],[37.842324,-121.937093],[37.842379,-121.937076],[37.84255,-121.937027],[37.842659,-121.936985],[37.842771,-121.936954],[37.84288,-121.93694],[37.842935,-121.93694],[37.842991,-121.936938],[37.843152,-121.936933],[37.843257,-121.93694],[37.84331,-121.936946],[37.843465,-121.93698],[37.84357,-121.937012],[37.843768,-121.937072],[37.843869,-121.937076],[37.843976,-121.937068],[37.844127,-121.937044],[37.844274,-121.937016],[37.844318,-121.937001],[37.844382,-121.936939],[37.844392,-121.936893],[37.844377,-121.936789],[37.844353,-121.936738],[37.844318,-121.936684],[37.84423,-121.936581],[37.844185,-121.93653],[37.844141,-121.93648],[37.843977,-121.936273],[37.843866,-121.936123],[37.843786,-121.936019],[37.843681,-121.935854],[37.843659,-121.935789],[37.843631,-121.935646],[37.843629,-121.935489],[37.843627,-121.935409],[37.843613,-121.935069],[37.843604,-121.934898],[37.843596,-121.934816],[37.843588,-121.934648],[37.843579,-121.934384],[37.843592,-121.934203],[37.843661,-121.934045],[37.843713,-121.933984],[37.84382,-121.933889],[37.843869,-121.933837],[37.843946,-121.933727],[37.843977,-121.933671],[37.844002,-121.933612],[37.844009,-121.933478],[37.843985,-121.933418],[37.843907,-121.933328],[37.843867,-121.933276],[37.843826,-121.933224],[37.843779,-121.933176],[37.843632,-121.933093],[37.843537,-121.933089],[37.84343,-121.933089],[37.843372,-121.933086],[37.843313,-121.933073],[37.8432,-121.933026],[37.843145,-121.932999],[37.843034,-121.932953],[37.842923,-121.932911],[37.842708,-121.932826],[37.842604,-121.932775],[37.842555,-121.93274],[37.842468,-121.932648],[37.842432,-121.932592],[37.842397,-121.932533],[37.842329,-121.932414],[37.84229,-121.932357],[37.842246,-121.932306],[37.8422,-121.932265],[37.842101,-121.932213],[37.842049,-121.932201],[37.841994,-121.932194],[37.841938,-121.932187],[37.841826,-121.93216],[37.841607,-121.932086],[37.841516,-121.932043],[37.84143,-121.931918],[37.841424,-121.931855],[37.841432,-121.931789],[37.841483,-121.931661],[37.841527,-121.931612],[37.841635,-121.93155],[37.841693,-121.931528],[37.841812,-121.931463],[37.841872,-121.931421],[37.841927,-121.931368],[37.84205,-121.931164],[37.842079,-121.931088],[37.842111,-121.930933],[37.842118,-121.930855],[37.842128,-121.930776],[37.842156,-121.930535],[37.842162,-121.93038],[37.842159,-121.930304],[37.842154,-121.930094],[37.84216,-121.929947],[37.842175,-121.929812],[37.842183,-121.929678],[37.842164,-121.929545],[37.842142,-121.929481],[37.842045,-121.929295],[37.842004,-121.929235],[37.841886,-121.929048],[37.841851,-121.928981],[37.841795,-121.928834],[37.841794,-121.928673],[37.841813,-121.928591],[37.841835,-121.928507],[37.84186,-121.928424],[37.841937,-121.928085],[37.841992,-121.927933],[37.842034,-121.927866],[37.842082,-121.927811],[37.842193,-121.927726],[37.842244,-121.927682],[37.842289,-121.927635],[37.842367,-121.927527],[37.8424,-121.927396],[37.842406,-121.927189],[37.842409,-121.92712],[37.842415,-121.926984],[37.842427,-121.926852],[37.84249,-121.926744],[37.842592,-121.926689],[37.842638,-121.926657],[37.842717,-121.926548],[37.842738,-121.92644],[37.842733,-121.92637],[37.842694,-121.926236],[37.842636,-121.926109],[37.842602,-121.926047],[37.842564,-121.925991],[37.84252,-121.925942],[37.842419,-121.925881],[37.842311,-121.925844],[37.842255,-121.925826],[37.842142,-121.925784],[37.841992,-121.925655],[37.84191,-121.925545],[37.841775,-121.925384],[37.841727,-121.925334],[37.841576,-121.925202],[37.841471,-121.925112],[37.841365,-121.92502],[37.841311,-121.924973],[37.841126,-121.924833],[37.841062,-121.924771],[37.841008,-121.924691],[37.84095,-121.924537],[37.840946,-121.924392],[37.840942,-121.924297],[37.840934,-121.924204],[37.840915,-121.924029],[37.840889,-121.923848],[37.840867,-121.923759],[37.840783,-121.923488],[37.840754,-121.923396],[37.840687,-121.923101],[37.84066,-121.922897],[37.84067,-121.922692],[37.840694,-121.922493],[37.8407,-121.922395],[37.84075,-121.922079],[37.840789,-121.921975],[37.840972,-121.921716],[37.841038,-121.921638],[37.841165,-121.921493],[37.841228,-121.921431],[37.841301,-121.921377],[37.841389,-121.921344],[37.841483,-121.921339],[37.841763,-121.921449],[37.841944,-121.921551],[37.842207,-121.921679],[37.842362,-121.921748],[37.842439,-121.921758],[37.842508,-121.921725],[37.842561,-121.921664],[37.84259,-121.921583],[37.842602,-121.921491],[37.842607,-121.921283],[37.842613,-121.920953],[37.842635,-121.920846],[37.842734,-121.920557],[37.842795,-121.920498],[37.84294,-121.920462],[37.843016,-121.920486],[37.843083,-121.920533],[37.843196,-121.92067],[37.843246,-121.920745],[37.843376,-121.920997],[37.843441,-121.921174],[37.843467,-121.921267],[37.843514,-121.921446],[37.843582,-121.921614],[37.843654,-121.921782],[37.84384,-121.922131],[37.844148,-121.922524],[37.844304,-121.922826],[37.844336,-121.922939],[37.844363,-121.923052],[37.844469,-121.923489],[37.844545,-121.923924],[37.844574,-121.924032],[37.84461,-121.924139],[37.844757,-121.924426],[37.844814,-121.924509],[37.844925,-121.924683],[37.845015,-121.924862],[37.845049,-121.924957],[37.84509,-121.925252],[37.84509,-121.925358],[37.84514,-121.925818],[37.84521,-121.926147],[37.845257,-121.926351],[37.84528,-121.926448],[37.845336,-121.926635],[37.845422,-121.926808],[37.845472,-121.926888],[37.84567,-121.927044],[37.845816,-121.926968],[37.845931,-121.926819],[37.845995,-121.926769],[37.846139,-121.926754],[37.846285,-121.926775],[37.846354,-121.926786],[37.846423,-121.926793],[37.846483,-121.926807],[37.846607,-121.926861],[37.846674,-121.926913],[37.846827,-121.927169],[37.846872,-121.927278],[37.847068,-121.927629],[37.847217,-121.927871],[37.847272,-121.92801],[37.847308,-121.928156],[37.847349,-121.928587],[37.847394,-121.928858],[37.847452,-121.928975],[37.847682,-121.929243],[37.847753,-121.929341],[37.847855,-121.929568],[37.847912,-121.9298],[37.847945,-121.929926],[37.848034,-121.930151],[37.84808,-121.930264],[37.848163,-121.93049],[37.848237,-121.930721],[37.848348,-121.931089],[37.848405,-121.931208],[37.848518,-121.931456],[37.848688,-121.931844],[37.849059,-121.932421],[37.84914,-121.932525],[37.849229,-121.932615],[37.849418,-121.932753],[37.849715,-121.932893],[37.849822,-121.932891],[37.850035,-121.932802],[37.850145,-121.93275],[37.85026,-121.932715],[37.850498,-121.93273],[37.850721,-121.932791],[37.850835,-121.932791],[37.850945,-121.932744],[37.851106,-121.932531],[37.851147,-121.932262],[37.85108,-121.932021],[37.851007,-121.931944],[37.850906,-121.931907],[37.850813,-121.931876],[37.850652,-121.931789],[37.850588,-121.93173],[37.850524,-121.931543],[37.850549,-121.931265],[37.850585,-121.931186],[37.85068,-121.931038],[37.850733,-121.930962],[37.850791,-121.930895],[37.850852,-121.930836],[37.850977,-121.930741],[37.851095,-121.930631],[37.851148,-121.930469],[37.851108,-121.930326],[37.851,-121.930262],[37.850863,-121.930223],[37.850795,-121.930212],[37.850728,-121.930215],[37.85066,-121.930228],[37.850528,-121.930257],[37.850401,-121.930253],[37.850268,-121.930117],[37.850272,-121.929975],[37.850304,-121.929906],[37.8504,-121.929792],[37.850467,-121.929753],[37.850702,-121.929698],[37.850942,-121.929617],[37.851082,-121.929527],[37.851147,-121.929472],[37.851209,-121.929417],[37.851329,-121.929307],[37.851382,-121.929247],[37.851431,-121.929182],[37.851477,-121.929113],[37.85159,-121.928908],[37.851626,-121.92884],[37.8517,-121.928704],[37.851735,-121.928636],[37.851767,-121.928571],[37.85182,-121.92843],[37.851827,-121.928357],[37.851791,-121.92822],[37.851752,-121.928165],[37.851708,-121.928119],[37.851613,-121.928038],[37.851567,-121.927993],[37.851479,-121.927883],[37.851451,-121.927809],[37.851438,-121.927726],[37.85144,-121.92764],[37.851491,-121.927473],[37.851518,-121.927391],[37.851566,-121.927235],[37.851626,-121.927009],[37.85159,-121.92682],[37.851558,-121.926765],[37.851474,-121.926662],[37.851426,-121.926612],[37.851385,-121.926548],[37.851361,-121.926388],[37.851438,-121.926249],[37.851544,-121.926134],[37.851707,-121.925967],[37.851878,-121.925782],[37.851946,-121.925736],[37.852029,-121.925722],[37.852196,-121.925807],[37.8523,-121.926011],[37.852366,-121.926249],[37.852405,-121.926369],[37.852441,-121.926491],[37.852646,-121.927102],[37.852705,-121.927331],[37.852752,-121.927545],[37.852781,-121.927642],[37.852827,-121.927857],[37.852848,-121.928027],[37.85286,-121.928127],[37.852873,-121.928229],[37.852908,-121.928527],[37.852917,-121.928929],[37.85292,-121.929033],[37.852944,-121.929244],[37.853025,-121.92944],[37.853182,-121.929684],[37.853228,-121.929766],[37.853299,-121.929945],[37.853323,-121.930039],[37.853345,-121.930135],[37.853369,-121.930235],[37.853442,-121.930437],[37.853497,-121.930525],[37.853625,-121.930665],[37.853697,-121.930728],[37.85377,-121.930785],[37.853913,-121.930891],[37.854041,-121.93099],[37.854112,-121.931048],[37.85431,-121.931198],[37.854435,-121.931298],[37.854494,-121.931356],[37.854548,-121.931417],[37.854713,-121.931611],[37.854819,-121.931738],[37.85487,-121.931814],[37.855031,-121.932058],[37.855132,-121.932205],[37.855274,-121.932419],[37.855395,-121.932674],[37.855415,-121.932828],[37.855425,-121.933092],[37.85545,-121.933249],[37.855518,-121.933439],[37.855548,-121.9335],[37.855605,-121.933619],[37.85572,-121.933793],[37.855798,-121.933918],[37.855868,-121.934039],[37.855933,-121.934156],[37.856002,-121.934264],[37.856077,-121.934358],[37.856172,-121.934421],[37.85629,-121.934457],[37.856421,-121.934497],[37.856706,-121.934625],[37.856773,-121.934684],[37.856936,-121.934917],[37.856989,-121.935001],[37.857083,-121.935184],[37.857167,-121.935367],[37.857322,-121.935614],[37.857403,-121.935659],[37.857687,-121.935658],[37.857787,-121.935644],[37.858002,-121.935613],[37.858115,-121.935605],[37.858577,-121.935546],[37.858724,-121.93552],[37.858969,-121.935426],[37.859035,-121.935369],[37.859096,-121.935313],[37.859205,-121.935209],[37.859256,-121.935161],[37.859304,-121.935115],[37.85935,-121.935069],[37.859475,-121.934927],[37.859556,-121.934836],[37.859598,-121.934795],[37.859678,-121.934707],[37.859763,-121.934621],[37.859884,-121.934511],[37.859925,-121.934486],[37.860015,-121.934431],[37.860112,-121.934384],[37.86016,-121.934363],[37.860209,-121.934345],[37.860412,-121.934269],[37.860517,-121.934229],[37.860729,-121.934134],[37.860889,-121.934034],[37.861099,-121.933901],[37.861307,-121.933762],[37.861448,-121.933656],[37.861542,-121.93358],[37.861592,-121.933544],[37.861741,-121.933421],[37.861879,-121.933308],[37.861944,-121.933263],[37.86205,-121.933187],[37.862268,-121.933047],[37.862321,-121.933015],[37.862424,-121.932939],[37.862522,-121.932852],[37.862573,-121.932813],[37.862624,-121.932777],[37.862678,-121.932752],[37.862783,-121.932715],[37.862835,-121.932707],[37.862889,-121.932713],[37.863062,-121.932755],[37.863118,-121.932776],[37.863229,-121.932827],[37.863334,-121.932884],[37.86349,-121.932996],[37.863643,-121.933114],[37.863693,-121.933155],[37.863746,-121.93319],[37.863912,-121.933228],[37.863962,-121.933196],[37.864017,-121.933068],[37.864053,-121.93293],[37.864122,-121.932741],[37.864179,-121.932639],[37.864213,-121.932596],[37.864297,-121.932551],[37.864344,-121.932572],[37.864376,-121.932618],[37.864401,-121.932671],[37.864446,-121.932828],[37.864459,-121.932869],[37.864485,-121.932936],[37.864521,-121.932994],[37.86456,-121.933026],[37.864641,-121.93308],[37.864755,-121.933182],[37.864791,-121.93322],[37.864867,-121.933287],[37.864956,-121.933322],[37.865002,-121.933309],[37.865088,-121.93319],[37.865128,-121.93308],[37.865179,-121.932962],[37.865245,-121.932833],[37.865351,-121.932629],[37.865468,-121.932411],[37.865511,-121.932339],[37.865624,-121.932112],[37.865659,-121.932041],[37.865696,-121.931974],[37.865732,-121.931904],[37.865777,-121.931846],[37.865906,-121.93181],[37.866026,-121.931847],[37.866088,-121.931871],[37.866147,-121.931896],[37.866334,-121.93197],[37.866392,-121.932008],[37.866452,-121.93204]]`), &data)
	if err != nil {
		panic(err)
	}<commit_msg>Path encode and decode benchmarks<commit_after>package geo_test

import (
	"encoding/json"
	"testing"

	geo "."
)

func BenchmarkPathDistanceFrom(b *testing.B) {
	basePath := testPath1()
	otherPath := testPath2()

	points := otherPath.Length()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		basePath.DistanceFrom(otherPath.GetAt(i % points))
	}
}

func BenchmarkPathSquaredDistanceFrom(b *testing.B) {
	basePath := testPath1()
	otherPath := testPath2()

	points := otherPath.Length()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		basePath.SquaredDistanceFrom(otherPath.GetAt(i % points))
	}
}

func BenchmarkPathMeasure(b *testing.B) {
	basePath := testPath1()
	otherPath := testPath2()

	points := otherPath.Length()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		basePath.Measure(otherPath.GetAt(i % points))
	}
}

func BenchmarkPathResampleToMorePoints(b *testing.B) {
	path := testPath1()
	totalPoints := int(float64(path.Length()) * 1.616)

	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		path.Resample(totalPoints)
	}
}

func BenchmarkPathResampleToLessPoints(b *testing.B) {
	path := testPath1()
	totalPoints := int(float64(path.Length()) / 1.616)

	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		path.Resample(totalPoints)
	}
}

func BenchmarkPathEncode(b *testing.B) {
	path := testPath1()

	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		path.Encode()
	}
}

func BenchmarkPathDecode(b *testing.B) {
	path := testPath1()
	encoded := path.Encode()

	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		geo.Decode(encoded)
	}
}

func testPath1() *geo.Path {
	var data [][2]float64
	err := json.Unmarshal([]byte(`[[37.844221,-121.949564],[37.84419,-121.949493],[37.844166,-121.949419],[37.844141,-121.949346],[37.844118,-121.949277],[37.844091,-121.949209],[37.844061,-121.949145],[37.844032,-121.949083],[37.844004,-121.94902],[37.843976,-121.948959],[37.843946,-121.948897],[37.843917,-121.948836],[37.843883,-121.948775],[37.843849,-121.948722],[37.843817,-121.948664],[37.843784,-121.948611],[37.843748,-121.948559],[37.843714,-121.948506],[37.843678,-121.948451],[37.843638,-121.948396],[37.843603,-121.948342],[37.843567,-121.948284],[37.843535,-121.948223],[37.843504,-121.948161],[37.84347,-121.948102],[37.843441,-121.948042],[37.843419,-121.94798],[37.843396,-121.947924],[37.84336,-121.947881],[37.843313,-121.947863],[37.843263,-121.947867],[37.843224,-121.947895],[37.84319,-121.947936],[37.843159,-121.947979],[37.843126,-121.948024],[37.843097,-121.948072],[37.843067,-121.948122],[37.843038,-121.948173],[37.843006,-121.94822],[37.842968,-121.948258],[37.842925,-121.948297],[37.842875,-121.948324],[37.842819,-121.948334],[37.842758,-121.948328],[37.842698,-121.948298],[37.842636,-121.948259],[37.842566,-121.948214],[37.842499,-121.948172],[37.842439,-121.948133],[37.842391,-121.948082],[37.842356,-121.948021],[37.842341,-121.947954],[37.842336,-121.94788],[37.842345,-121.947797],[37.842362,-121.947718],[37.842383,-121.947647],[37.84241,-121.947576],[37.842442,-121.947505],[37.842474,-121.947438],[37.842509,-121.947372],[37.842545,-121.947308],[37.842582,-121.947243],[37.842621,-121.947178],[37.842665,-121.947118],[37.842712,-121.947062],[37.842764,-121.947012],[37.842815,-121.946964],[37.842861,-121.946919],[37.842905,-121.94687],[37.842949,-121.946818],[37.842993,-121.946766],[37.843034,-121.94671],[37.843072,-121.946652],[37.843111,-121.946592],[37.843147,-121.94653],[37.843179,-121.946467],[37.843209,-121.946406],[37.843241,-121.946353],[37.843277,-121.946304],[37.843313,-121.94625],[37.843351,-121.946198],[37.843385,-121.946146],[37.843422,-121.946089],[37.843451,-121.946032],[37.843459,-121.945973],[37.843457,-121.945911],[37.84344,-121.945848],[37.843391,-121.945815],[37.843326,-121.945783],[37.843271,-121.945754],[37.843224,-121.945719],[37.843181,-121.94567],[37.843139,-121.945622],[37.843103,-121.945561],[37.843068,-121.945506],[37.843035,-121.945455],[37.843005,-121.945407],[37.842972,-121.945359],[37.842938,-121.945315],[37.842904,-121.945271],[37.842871,-121.945224],[37.842837,-121.945179],[37.842806,-121.945135],[37.842771,-121.945089],[37.842733,-121.945039],[37.842694,-121.944988],[37.842659,-121.944931],[37.842628,-121.944876],[37.842595,-121.944826],[37.842562,-121.944777],[37.842529,-121.944722],[37.842496,-121.944663],[37.842468,-121.944604],[37.842437,-121.944536],[37.842403,-121.944469],[37.842366,-121.944404],[37.842334,-121.94434],[37.842306,-121.94428],[37.842278,-121.94422],[37.842249,-121.94416],[37.842215,-121.944101],[37.842177,-121.944038],[37.842141,-121.943981],[37.842107,-121.943927],[37.842074,-121.94387],[37.842045,-121.943812],[37.842024,-121.943751],[37.842025,-121.943675],[37.842038,-121.943592],[37.842061,-121.943517],[37.842092,-121.943447],[37.84213,-121.943386],[37.84217,-121.943321],[37.842216,-121.943252],[37.842263,-121.94318],[37.842315,-121.943109],[37.842371,-121.94304],[37.842432,-121.942972],[37.842494,-121.942902],[37.842557,-121.942826],[37.842616,-121.94275],[37.842672,-121.942677],[37.842729,-121.942599],[37.842779,-121.942517],[37.842824,-121.942434],[37.842872,-121.942357],[37.842924,-121.94228],[37.842975,-121.942208],[37.843024,-121.942139],[37.843074,-121.942077],[37.843127,-121.942022],[37.843185,-121.941961],[37.84324,-121.941892],[37.843292,-121.941813],[37.843342,-121.941735],[37.843388,-121.941659],[37.843436,-121.941592],[37.843474,-121.941527],[37.843513,-121.941465],[37.843543,-121.941406],[37.84353,-121.941343],[37.84349,-121.941308],[37.843423,-121.941303],[37.843351,-121.941309],[37.843279,-121.941308],[37.843208,-121.94129],[37.843146,-121.941248],[37.843094,-121.941188],[37.843038,-121.941128],[37.843002,-121.941044],[37.842978,-121.940955],[37.842967,-121.94086],[37.842956,-121.940766],[37.842946,-121.940665],[37.842966,-121.940573],[37.842996,-121.940491],[37.843046,-121.940423],[37.84311,-121.940377],[37.843167,-121.940321],[37.843215,-121.940252],[37.843249,-121.940177],[37.843249,-121.940102],[37.843222,-121.940057],[37.843174,-121.940053],[37.843112,-121.940079],[37.843056,-121.940104],[37.842996,-121.940131],[37.842936,-121.940169],[37.84288,-121.940202],[37.842825,-121.940229],[37.842766,-121.940264],[37.842713,-121.940304],[37.842654,-121.94035],[37.842593,-121.940392],[37.842538,-121.940437],[37.842487,-121.940482],[37.842441,-121.940525],[37.842386,-121.940561],[37.842334,-121.940589],[37.842273,-121.940609],[37.842212,-121.940613],[37.842153,-121.940607],[37.842093,-121.940593],[37.842031,-121.94057],[37.841976,-121.940535],[37.841921,-121.940499],[37.841869,-121.940465],[37.841824,-121.940427],[37.841782,-121.940387],[37.841742,-121.940346],[37.8417,-121.940305],[37.841653,-121.940263],[37.841605,-121.940216],[37.841559,-121.940167],[37.841515,-121.940103],[37.841481,-121.940032],[37.841444,-121.939965],[37.841416,-121.939891],[37.841393,-121.939818],[37.841378,-121.939736],[37.841366,-121.939653],[37.841355,-121.939571],[37.84134,-121.939489],[37.841324,-121.939412],[37.841305,-121.939338],[37.841289,-121.939269],[37.841273,-121.939203],[37.841249,-121.939144],[37.841223,-121.939087],[37.841168,-121.938969],[37.841158,-121.93894],[37.841145,-121.938902],[37.841123,-121.93883],[37.841102,-121.938752],[37.841086,-121.938669],[37.841077,-121.938581],[37.841081,-121.938488],[37.841089,-121.938399],[37.841099,-121.938317],[37.841109,-121.938237],[37.841121,-121.938157],[37.841144,-121.93808],[37.84117,-121.938007],[37.841199,-121.93794],[37.841232,-121.937876],[37.84127,-121.937816],[37.841308,-121.93776],[37.841352,-121.937705],[37.841398,-121.937652],[37.841442,-121.937602],[37.841489,-121.93755],[37.84154,-121.937501],[37.841595,-121.937456],[37.841654,-121.937414],[37.841712,-121.937375],[37.84177,-121.937339],[37.841829,-121.937303],[37.841885,-121.937268],[37.841942,-121.93724],[37.841999,-121.937206],[37.842059,-121.937177],[37.842119,-121.937158],[37.842178,-121.937142],[37.84224,-121.937128],[37.8423,-121.937117],[37.842361,-121.937107],[37.842421,-121.937096],[37.84248,-121.937077],[37.842539,-121.937057],[37.842594,-121.937034],[37.842644,-121.937009],[37.842697,-121.936986],[37.842751,-121.936965],[37.842803,-121.93695],[37.842861,-121.936942],[37.842919,-121.93694],[37.842976,-121.93694],[37.843019,-121.93694],[37.843065,-121.936943],[37.843117,-121.936944],[37.843173,-121.936939],[37.843231,-121.936938],[37.843287,-121.936941],[37.843347,-121.936949],[37.843407,-121.936957],[37.843465,-121.93697],[37.843518,-121.936996],[37.843573,-121.93702],[37.843629,-121.937045],[37.843682,-121.937069],[37.843736,-121.937084],[37.843795,-121.937084],[37.843848,-121.93708],[37.843905,-121.937071],[37.843961,-121.937061],[37.844014,-121.937053],[37.844067,-121.937043],[37.844117,-121.937033],[37.844167,-121.937023],[37.844217,-121.937011],[37.844264,-121.936996],[37.844308,-121.936972],[37.844341,-121.936941],[37.844361,-121.936901],[37.84437,-121.936856],[37.844368,-121.936806],[37.844355,-121.936759],[37.844332,-121.936713],[37.844297,-121.93666],[37.844258,-121.936604],[37.844219,-121.936554],[37.844173,-121.9365],[37.844132,-121.936446],[37.844087,-121.936394],[37.844039,-121.936344],[37.843994,-121.936295],[37.843956,-121.936242],[37.843909,-121.936196],[37.843865,-121.936147],[37.84382,-121.9361],[37.84377,-121.936059],[37.843728,-121.936014],[37.843696,-121.935956],[37.843669,-121.935899],[37.843645,-121.935842],[37.843635,-121.935781],[37.843626,-121.935719],[37.843622,-121.935648],[37.843619,-121.935573],[37.843625,-121.935493],[37.843637,-121.935407],[37.843641,-121.935325],[37.843645,-121.935243],[37.843645,-121.935163],[37.843641,-121.935081],[37.843638,-121.934999],[37.843634,-121.93492],[37.843634,-121.93484],[37.843632,-121.934764],[37.84363,-121.93469],[37.843629,-121.934615],[37.843626,-121.934538],[37.843625,-121.934459],[37.843623,-121.934379],[37.843624,-121.9343],[37.843629,-121.934221],[37.843644,-121.934145],[37.843666,-121.934078],[37.843699,-121.934022],[37.843739,-121.933972],[37.84378,-121.933929],[37.843821,-121.933892],[37.84386,-121.933853],[37.843895,-121.933811],[37.843928,-121.933768],[37.843955,-121.93373],[37.843981,-121.933689],[37.844008,-121.933649],[37.844031,-121.933603],[37.844049,-121.933551],[37.844057,-121.933498],[37.844053,-121.933441],[37.844036,-121.933387],[37.844008,-121.933345],[37.843977,-121.933305],[37.843937,-121.933263],[37.843895,-121.933217],[37.843852,-121.933178],[37.843806,-121.93314],[37.843761,-121.933106],[37.843711,-121.933081],[37.843667,-121.933065],[37.843622,-121.933058],[37.843572,-121.933059],[37.843519,-121.933064],[37.843463,-121.933066],[37.843403,-121.933062],[37.843343,-121.933043],[37.84328,-121.933017],[37.843218,-121.932992],[37.843163,-121.932967],[37.843111,-121.932942],[37.843063,-121.932915],[37.843014,-121.932893],[37.842964,-121.932865],[37.842911,-121.932843],[37.842858,-121.932826],[37.842803,-121.932811],[37.842751,-121.932795],[37.842701,-121.932776],[37.842654,-121.932751],[37.84261,-121.932721],[37.842567,-121.932686],[37.842527,-121.932648],[37.84249,-121.932605],[37.842452,-121.932559],[37.842416,-121.932507],[37.842386,-121.932452],[37.842359,-121.932396],[37.842326,-121.932341],[37.842285,-121.932294],[37.842243,-121.932252],[37.842199,-121.932218],[37.842152,-121.932197],[37.842099,-121.932182],[37.842048,-121.932166],[37.841997,-121.932161],[37.841945,-121.932156],[37.841896,-121.932149],[37.841847,-121.932133],[37.841799,-121.932113],[37.84175,-121.932096],[37.841703,-121.932081],[37.841657,-121.932061],[37.841606,-121.932042],[37.84156,-121.932024],[37.841518,-121.932001],[37.841485,-121.93197],[37.841464,-121.931921],[37.841456,-121.931857],[37.841472,-121.931784],[37.841489,-121.931721],[37.841511,-121.931658],[37.841548,-121.931604],[37.841597,-121.93156],[37.841651,-121.931523],[37.841708,-121.931489],[37.841767,-121.931466],[37.841825,-121.931444],[37.841888,-121.931416],[37.841949,-121.931376],[37.842007,-121.931327],[37.842055,-121.93126],[37.842095,-121.931183],[37.842126,-121.931101],[37.842147,-121.931012],[37.842161,-121.930926],[37.842173,-121.930843],[37.842182,-121.930762],[37.842191,-121.93068],[37.842198,-121.930595],[37.842205,-121.930512],[37.842214,-121.930432],[37.842217,-121.930354],[37.842215,-121.930274],[37.842213,-121.930196],[37.842208,-121.930123],[37.842204,-121.930052],[37.8422,-121.929982],[37.8422,-121.929912],[37.84221,-121.929845],[37.842222,-121.92978],[37.842232,-121.92971],[37.842238,-121.929638],[37.842237,-121.929567],[37.842227,-121.929499],[37.842204,-121.929431],[37.842176,-121.929366],[37.842142,-121.929302],[37.842103,-121.929241],[37.842061,-121.929181],[37.842021,-121.929123],[37.841977,-121.929068],[37.841934,-121.929013],[37.841896,-121.928955],[37.841866,-121.928888],[37.841842,-121.928813],[37.841829,-121.92874],[37.841841,-121.928657],[37.841862,-121.928576],[37.841885,-121.928497],[37.841905,-121.928419],[37.841927,-121.928337],[37.841944,-121.928253],[37.841963,-121.928172],[37.841982,-121.928091],[37.842003,-121.928012],[37.842023,-121.927938],[37.842051,-121.92787],[37.84209,-121.927811],[37.84214,-121.927764],[37.842193,-121.927722],[37.842246,-121.927681],[37.842289,-121.927633],[37.842333,-121.927576],[37.842373,-121.927516],[37.842406,-121.927455],[37.84243,-121.927392],[37.842442,-121.927324],[37.842448,-121.927256],[37.842454,-121.927183],[37.842457,-121.927107],[37.842462,-121.927032],[37.842465,-121.926956],[37.842471,-121.926879],[37.842483,-121.926806],[37.842508,-121.926744],[37.842549,-121.926707],[37.842592,-121.92668],[37.842639,-121.926656],[37.842677,-121.92662],[37.842715,-121.92658],[37.842745,-121.926528],[37.84277,-121.926469],[37.842779,-121.926403],[37.84278,-121.926341],[37.842774,-121.926279],[37.842757,-121.926215],[37.842736,-121.926155],[37.842711,-121.926097],[37.842684,-121.926041],[37.842653,-121.925986],[37.842614,-121.92594],[37.842569,-121.925902],[37.842518,-121.925872],[37.842469,-121.92585],[37.842417,-121.92583],[37.842361,-121.925811],[37.842305,-121.925793],[37.842248,-121.925767],[37.842187,-121.92574],[37.842131,-121.925706],[37.842077,-121.925667],[37.842027,-121.925619],[37.841979,-121.925567],[37.841929,-121.925514],[37.841878,-121.925467],[37.841827,-121.925423],[37.841776,-121.925384],[37.841729,-121.925341],[37.841681,-121.925296],[37.841635,-121.925251],[37.841588,-121.925206],[37.84154,-121.925161],[37.841492,-121.925114],[37.841444,-121.925072],[37.841396,-121.925028],[37.841345,-121.924988],[37.841294,-121.924946],[37.841242,-121.924904],[37.84119,-121.92486],[37.841131,-121.924817],[37.841077,-121.924763],[37.841031,-121.924702],[37.840996,-121.92463],[37.840977,-121.924551],[37.840977,-121.924458],[37.840975,-121.924367],[37.840975,-121.924275],[37.840969,-121.924186],[37.840958,-121.924098],[37.840948,-121.924013],[37.840934,-121.92393],[37.84092,-121.923847],[37.8409,-121.923765],[37.840874,-121.923686],[37.840848,-121.923609],[37.840824,-121.923529],[37.840801,-121.923444],[37.840779,-121.923358],[37.840757,-121.923267],[37.840736,-121.923173],[37.840715,-121.923076],[37.840698,-121.922975],[37.840692,-121.922872],[37.840696,-121.922769],[37.840702,-121.922667],[37.840714,-121.922563],[37.84072,-121.922466],[37.840731,-121.92237],[37.840747,-121.922274],[37.840765,-121.922179],[37.840786,-121.922084],[37.840818,-121.921987],[37.84086,-121.921902],[37.840913,-121.921823],[37.840975,-121.921753],[37.84104,-121.921682],[37.841096,-121.921602],[37.841152,-121.921527],[37.841211,-121.921457],[37.841271,-121.921398],[37.841339,-121.921358],[37.841415,-121.921334],[37.841487,-121.921317],[37.841565,-121.921329],[37.841642,-121.921361],[37.841715,-121.921401],[37.841788,-121.921441],[37.841863,-121.921485],[37.841936,-121.921523],[37.842006,-121.921561],[37.842079,-121.921599],[37.842154,-121.921637],[37.842232,-121.921673],[37.842309,-121.921705],[37.842382,-121.921731],[37.842451,-121.921743],[37.842508,-121.921715],[37.84257,-121.921671],[37.842612,-121.9216],[37.842623,-121.921503],[37.842617,-121.921386],[37.842613,-121.921269],[37.842611,-121.921158],[37.842616,-121.921048],[37.842623,-121.920932],[37.84265,-121.920817],[37.842673,-121.920713],[37.842708,-121.920613],[37.842762,-121.920528],[37.842825,-121.920462],[37.8429,-121.920414],[37.842986,-121.920399],[37.84307,-121.920412],[37.843143,-121.920456],[37.843201,-121.920529],[37.843255,-121.920608],[37.843301,-121.920691],[37.843348,-121.920777],[37.84339,-121.920868],[37.843429,-121.920962],[37.843465,-121.921058],[37.843495,-121.921156],[37.843519,-121.921245],[37.84355,-121.921331],[37.843572,-121.921417],[37.843598,-121.921499],[37.843628,-121.921583],[37.843657,-121.921673],[37.843685,-121.921759],[37.843714,-121.921839],[37.843744,-121.921917],[37.843782,-121.921999],[37.843824,-121.922078],[37.843869,-121.922153],[37.843923,-121.922225],[37.843985,-121.922302],[37.844048,-121.922386],[37.84411,-121.922471],[37.844163,-121.922556],[37.844217,-121.922651],[37.844266,-121.922753],[37.844303,-121.922854],[37.844331,-121.922957],[37.844349,-121.92307],[37.844371,-121.923179],[37.844384,-121.923283],[37.844404,-121.923385],[37.844425,-121.923491],[37.844447,-121.923592],[37.844466,-121.923691],[37.844478,-121.923788],[37.844499,-121.923886],[37.844527,-121.923985],[37.844546,-121.924081],[37.844575,-121.924178],[37.844614,-121.924271],[37.844652,-121.924356],[37.844686,-121.924437],[37.844718,-121.924519],[37.844752,-121.924598],[37.844785,-121.924679],[37.844827,-121.924758],[37.844864,-121.924846],[37.844897,-121.92494],[37.844922,-121.925045],[37.84494,-121.925153],[37.84494,-121.925262],[37.844933,-121.925371],[37.844931,-121.925483],[37.844937,-121.925596],[37.844956,-121.925709],[37.844975,-121.925819],[37.845008,-121.925935],[37.84503,-121.926044],[37.845053,-121.926149],[37.845079,-121.926245],[37.845107,-121.926336],[37.845135,-121.926428],[37.845153,-121.926513],[37.845184,-121.926599],[37.845221,-121.926686],[37.845257,-121.92677],[37.845301,-121.926856],[37.845343,-121.926932],[37.845389,-121.926992],[37.845446,-121.927039],[37.845524,-121.927061],[37.845624,-121.927052],[37.845681,-121.927007],[37.845734,-121.926945],[37.845793,-121.926888],[37.845855,-121.926839],[37.845931,-121.926814],[37.846014,-121.926816],[37.846093,-121.926827],[37.846169,-121.926835],[37.846242,-121.926848],[37.846316,-121.926854],[37.846385,-121.926865],[37.846453,-121.926886],[37.846522,-121.926915],[37.846587,-121.926955],[37.846646,-121.927017],[37.84669,-121.92711],[37.846724,-121.927214],[37.846763,-121.927323],[37.846812,-121.927436],[37.846881,-121.927558],[37.846956,-121.92768],[37.847025,-121.927809],[37.847089,-121.927944],[37.847142,-121.928091],[37.847173,-121.928238],[37.847193,-121.928388],[37.847206,-121.928544],[37.847225,-121.928698],[37.847248,-121.92884],[37.847294,-121.928968],[37.847351,-121.929078],[37.847433,-121.929181],[37.847516,-121.929275],[37.847596,-121.929383],[37.847666,-121.929502],[37.847722,-121.929628],[37.84776,-121.92977],[37.847799,-121.929907],[37.84785,-121.930041],[37.8479,-121.930166],[37.84795,-121.930294],[37.847996,-121.930424],[37.848041,-121.930555],[37.848089,-121.930689],[37.848136,-121.930821],[37.848178,-121.930954],[37.848225,-121.931092],[37.848276,-121.931225],[37.848334,-121.931357],[37.848392,-121.931491],[37.848451,-121.931626],[37.848518,-121.931758],[37.848589,-121.931882],[37.848668,-121.931994],[37.848747,-121.932099],[37.848827,-121.932205],[37.848903,-121.932312],[37.848983,-121.932414],[37.849063,-121.932505],[37.849153,-121.932588],[37.84925,-121.93266],[37.849347,-121.932734],[37.849449,-121.932801],[37.849563,-121.932858],[37.849666,-121.932897],[37.849763,-121.932909],[37.849857,-121.932904],[37.849952,-121.932895],[37.850059,-121.932878],[37.850179,-121.932854],[37.850301,-121.932846],[37.850422,-121.932844],[37.850534,-121.932859],[37.850647,-121.932862],[37.850757,-121.932852],[37.850862,-121.932802],[37.850955,-121.932705],[37.851037,-121.932573],[37.85109,-121.932454],[37.851122,-121.932328],[37.851143,-121.932206],[37.851149,-121.932087],[37.851146,-121.931985],[37.851134,-121.931908],[37.85109,-121.931864],[37.851014,-121.931838],[37.850897,-121.931801],[37.850783,-121.931721],[37.850682,-121.931629],[37.8506,-121.931516],[37.850558,-121.931414],[37.850554,-121.931299],[37.850568,-121.931191],[37.850611,-121.931104],[37.850687,-121.931032],[37.850758,-121.930961],[37.850824,-121.930894],[37.850893,-121.930835],[37.850965,-121.930786],[37.851041,-121.930739],[37.851106,-121.930679],[37.851153,-121.930597],[37.851187,-121.930515],[37.8512,-121.93043],[37.851203,-121.930341],[37.851187,-121.93026],[37.851147,-121.930206],[37.851072,-121.930169],[37.850992,-121.930148],[37.850908,-121.930152],[37.850834,-121.93016],[37.850757,-121.930179],[37.850675,-121.930208],[37.850586,-121.930241],[37.850499,-121.93025],[37.850425,-121.93023],[37.850366,-121.930188],[37.850325,-121.930122],[37.850306,-121.930042],[37.850313,-121.929961],[37.850346,-121.929896],[37.850383,-121.929832],[37.850447,-121.92978],[37.850509,-121.929737],[37.850575,-121.929707],[37.850645,-121.929688],[37.850716,-121.929667],[37.850791,-121.929652],[37.850867,-121.929636],[37.850948,-121.929614],[37.85102,-121.92958],[37.851075,-121.929531],[37.851139,-121.929481],[37.851196,-121.929429],[37.851251,-121.92938],[37.851306,-121.929321],[37.85136,-121.929261],[37.851411,-121.929204],[37.851459,-121.929138],[37.851501,-121.92907],[37.851539,-121.928999],[37.851572,-121.928928],[37.851604,-121.928857],[37.851636,-121.928786],[37.851667,-121.928714],[37.851703,-121.928639],[37.851734,-121.928565],[37.851765,-121.928495],[37.851791,-121.928427],[37.851812,-121.928356],[37.851822,-121.928291],[37.851813,-121.928231],[37.851792,-121.92818],[37.851754,-121.928136],[37.851712,-121.928097],[37.851667,-121.928053],[37.851624,-121.928016],[37.851581,-121.92797],[37.851541,-121.927915],[37.851505,-121.927854],[37.851485,-121.927773],[37.851476,-121.927688],[37.851486,-121.927601],[37.851513,-121.927517],[37.851545,-121.927439],[37.851579,-121.92736],[37.851611,-121.927279],[37.851636,-121.9272],[37.85166,-121.92712],[37.851672,-121.927041],[37.851669,-121.926963],[37.851662,-121.926893],[37.851646,-121.926831],[37.851624,-121.926774],[37.851589,-121.926722],[37.851551,-121.92667],[37.851505,-121.926617],[37.851459,-121.926562],[37.851417,-121.926505],[37.851395,-121.926431],[37.851396,-121.926353],[37.851427,-121.926284],[37.851472,-121.926224],[37.851524,-121.92617],[37.851576,-121.926116],[37.85163,-121.926062],[37.851685,-121.926007],[37.85174,-121.92595],[37.851796,-121.925889],[37.851847,-121.92583],[37.8519,-121.925775],[37.851952,-121.92573],[37.852008,-121.925704],[37.852074,-121.925696],[37.852143,-121.925718],[37.852206,-121.925769],[37.852263,-121.925844],[37.852303,-121.925937],[37.852333,-121.926032],[37.852362,-121.926136],[37.852392,-121.926245],[37.852422,-121.926353],[37.852453,-121.926466],[37.852485,-121.926579],[37.852513,-121.926696],[37.852542,-121.926812],[37.852571,-121.926927],[37.852607,-121.92704],[37.852647,-121.927148],[37.852682,-121.927259],[37.852716,-121.927368],[37.852742,-121.927478],[37.852772,-121.927587],[37.852801,-121.927697],[37.85283,-121.927808],[37.852855,-121.927912],[37.852875,-121.928013],[37.852886,-121.928111],[37.852892,-121.928209],[37.852893,-121.928309],[37.852895,-121.928408],[37.852904,-121.928504],[37.852907,-121.928599],[37.852906,-121.928689],[37.852903,-121.928777],[37.852902,-121.928867],[37.852899,-121.928954],[37.852901,-121.929043],[37.852909,-121.929135],[37.852922,-121.929227],[37.85295,-121.929318],[37.852986,-121.929397],[37.853034,-121.929466],[37.853089,-121.929536],[37.853137,-121.929614],[37.853186,-121.929693],[37.853232,-121.929784],[37.853267,-121.929877],[37.85329,-121.929978],[37.853312,-121.93008],[37.853334,-121.93018],[37.853362,-121.930278],[37.853398,-121.930371],[37.853435,-121.930461],[37.85348,-121.93054],[37.853535,-121.930604],[37.853591,-121.93066],[37.85365,-121.930718],[37.853724,-121.93077],[37.853795,-121.930815],[37.853862,-121.930861],[37.853926,-121.930911],[37.85399,-121.930959],[37.854051,-121.931011],[37.854112,-121.931061],[37.854173,-121.931104],[37.854236,-121.931148],[37.854295,-121.931187],[37.854351,-121.931223],[37.854409,-121.931269],[37.854471,-121.931322],[37.854528,-121.931374],[37.854581,-121.931434],[37.854632,-121.931497],[37.854683,-121.931562],[37.854733,-121.931625],[37.854779,-121.931685],[37.854826,-121.931741],[37.85488,-121.931804],[37.854935,-121.931884],[37.854993,-121.931964],[37.85505,-121.932039],[37.855105,-121.932113],[37.855164,-121.932189],[37.855214,-121.932263],[37.855268,-121.932329],[37.85531,-121.932389],[37.855353,-121.93247],[37.855399,-121.932568],[37.855435,-121.93265],[37.855463,-121.932729],[37.855489,-121.932809],[37.855505,-121.932884],[37.855514,-121.932969],[37.855521,-121.933055],[37.855529,-121.933145],[37.855534,-121.933234],[37.855545,-121.933328],[37.85556,-121.933423],[37.855576,-121.93351],[37.855593,-121.933583],[37.855613,-121.933652],[37.855643,-121.933715],[37.855672,-121.933776],[37.855705,-121.933832],[37.855739,-121.933877],[37.855776,-121.933927],[37.855812,-121.933975],[37.855847,-121.934028],[37.855878,-121.934082],[37.855911,-121.934138],[37.855945,-121.934201],[37.855982,-121.934266],[37.85602,-121.934332],[37.85606,-121.934392],[37.856104,-121.934439],[37.856155,-121.934473],[37.856214,-121.934502],[37.856271,-121.934527],[37.85633,-121.934545],[37.856393,-121.934557],[37.856455,-121.934567],[37.856519,-121.934581],[37.856586,-121.934594],[37.85665,-121.934615],[37.856716,-121.934652],[37.856787,-121.934699],[37.856849,-121.934764],[37.856907,-121.934833],[37.856961,-121.934908],[37.857009,-121.934994],[37.857055,-121.935084],[37.857104,-121.935177],[37.857148,-121.935265],[37.857186,-121.935355],[37.857232,-121.935449],[37.857278,-121.935536],[37.857332,-121.935606],[37.857402,-121.935663],[37.857488,-121.935694],[37.857579,-121.935703],[37.857673,-121.935692],[37.857769,-121.935675],[37.857867,-121.935657],[37.857962,-121.935643],[37.858064,-121.935628],[37.858168,-121.935619],[37.858277,-121.935599],[37.858388,-121.935578],[37.8585,-121.935559],[37.858611,-121.935533],[37.858718,-121.935502],[37.858819,-121.935472],[37.858911,-121.93544],[37.858991,-121.935399],[37.859055,-121.935352],[37.859111,-121.935302],[37.859164,-121.935248],[37.859216,-121.935196],[37.859267,-121.935148],[37.859318,-121.935097],[37.859365,-121.935048],[37.859414,-121.934998],[37.859461,-121.934942],[37.859506,-121.934888],[37.85955,-121.93484],[37.859593,-121.934794],[37.859637,-121.934752],[37.859685,-121.93471],[37.85973,-121.934669],[37.859775,-121.934627],[37.859821,-121.934587],[37.859868,-121.93455],[37.859915,-121.934511],[37.859962,-121.934476],[37.860012,-121.934441],[37.860062,-121.934405],[37.860112,-121.934379],[37.860166,-121.93435],[37.860226,-121.934322],[37.860284,-121.934297],[37.860338,-121.934272],[37.860394,-121.934251],[37.860448,-121.934226],[37.860502,-121.934204],[37.860558,-121.934184],[37.860618,-121.934159],[37.860676,-121.934131],[37.860731,-121.934098],[37.860788,-121.934064],[37.860843,-121.934029],[37.860899,-121.933996],[37.860957,-121.933962],[37.861014,-121.933925],[37.861071,-121.933884],[37.86113,-121.933847],[37.861194,-121.933808],[37.861253,-121.933774],[37.861308,-121.933739],[37.861367,-121.933701],[37.861421,-121.933663],[37.861473,-121.933622],[37.861524,-121.933583],[37.861575,-121.933543],[37.861629,-121.933502],[37.861681,-121.933459],[37.861735,-121.933416],[37.86179,-121.933371],[37.861847,-121.933326],[37.861905,-121.933284],[37.861961,-121.933242],[37.86202,-121.9332],[37.86208,-121.933161],[37.862137,-121.933123],[37.862197,-121.933087],[37.862257,-121.933048],[37.862313,-121.933007],[37.862369,-121.932969],[37.86243,-121.932932],[37.862485,-121.932893],[37.862537,-121.932849],[37.86259,-121.932807],[37.862641,-121.932767],[37.862695,-121.932731],[37.86275,-121.932705],[37.862807,-121.932684],[37.862866,-121.932668],[37.862921,-121.93267],[37.862978,-121.932685],[37.863035,-121.932703],[37.863097,-121.932727],[37.86316,-121.932754],[37.863223,-121.932783],[37.863288,-121.932806],[37.863352,-121.932832],[37.863414,-121.932864],[37.863478,-121.9329],[37.863538,-121.932939],[37.863595,-121.93298],[37.863654,-121.93302],[37.86371,-121.93306],[37.863769,-121.9331],[37.86383,-121.933131],[37.863883,-121.933149],[37.863934,-121.93315],[37.863982,-121.933137],[37.864029,-121.933107],[37.864074,-121.933061],[37.864106,-121.932999],[37.864122,-121.932928],[37.864146,-121.93286],[37.864171,-121.932789],[37.864195,-121.932728],[37.864225,-121.932672],[37.864263,-121.932628],[37.864303,-121.932593],[37.864343,-121.932575],[37.864384,-121.932577],[37.864414,-121.932608],[37.864435,-121.932653],[37.864448,-121.932703],[37.864463,-121.932761],[37.86448,-121.932829],[37.864506,-121.932894],[37.864538,-121.932951],[37.864586,-121.932995],[37.864637,-121.933028],[37.86469,-121.933054],[37.864742,-121.933077],[37.864789,-121.933103],[37.864836,-121.933132],[37.864878,-121.93316],[37.864913,-121.933191],[37.864951,-121.933221],[37.864991,-121.933242],[37.865029,-121.933242],[37.865065,-121.933219],[37.865103,-121.933184],[37.865137,-121.933138],[37.865168,-121.933083],[37.865204,-121.933036],[37.865238,-121.932983],[37.865274,-121.932915],[37.865303,-121.932852],[37.86533,-121.932788],[37.865358,-121.932727],[37.865385,-121.932665],[37.865408,-121.932597],[37.865439,-121.932528],[37.865471,-121.932463],[37.8655,-121.932405],[37.865536,-121.932339],[37.865571,-121.932274],[37.865601,-121.932213],[37.865634,-121.932159],[37.865659,-121.9321],[37.865682,-121.932041],[37.865706,-121.931984],[37.865731,-121.931927],[37.865756,-121.931875],[37.865789,-121.93183],[37.865838,-121.931801],[37.865883,-121.931782],[37.86593,-121.931782],[37.865974,-121.931797],[37.866024,-121.931824],[37.866075,-121.931852],[37.86613,-121.93188],[37.866181,-121.93191],[37.866232,-121.93193],[37.866285,-121.931954],[37.86634,-121.931974],[37.866391,-121.932006],[37.866437,-121.932038]]`), &data)
	if err != nil {
		panic(err)
	}

	p := geo.NewPathFromYXData(data)
	path := geo.NewPath()

	// this parameter can be used to thin to line to see if worst cases are impacting averages
	skip := 5
	for i := 0; i < p.Length(); i += skip {
		path.Push(p.GetAt(i))
	}

	return path
}

func testPath2() *geo.Path {
	var data [][2]float64
	err := json.Unmarshal([]byte(`[[37.844196,-121.949674],[37.844154,-121.949516],[37.844109,-121.949355],[37.844055,-121.949206],[37.844027,-121.949135],[37.843973,-121.949001],[37.843941,-121.94894],[37.843907,-121.948882],[37.843874,-121.948826],[37.843806,-121.948715],[37.843707,-121.948544],[37.843638,-121.948424],[37.843603,-121.948366],[37.843566,-121.948308],[37.843533,-121.948246],[37.843408,-121.947967],[37.843373,-121.947901],[37.843326,-121.94785],[37.843269,-121.94783],[37.843167,-121.947879],[37.843126,-121.947928],[37.84306,-121.948034],[37.843032,-121.948086],[37.842979,-121.948183],[37.842923,-121.948266],[37.842889,-121.9483],[37.842823,-121.948339],[37.842709,-121.948309],[37.842596,-121.948244],[37.842533,-121.948206],[37.842472,-121.948167],[37.842421,-121.948117],[37.842354,-121.947983],[37.842351,-121.947754],[37.84243,-121.947529],[37.842461,-121.947456],[37.842534,-121.947315],[37.842656,-121.947128],[37.842699,-121.947075],[37.842844,-121.946924],[37.842988,-121.946777],[37.843074,-121.946674],[37.843133,-121.946545],[37.843188,-121.946419],[37.843221,-121.946365],[37.843259,-121.946317],[37.843299,-121.946264],[37.843377,-121.946161],[37.843413,-121.946109],[37.843434,-121.945988],[37.84333,-121.945864],[37.843283,-121.94584],[37.843193,-121.945774],[37.84311,-121.945669],[37.843071,-121.945611],[37.843036,-121.945552],[37.842968,-121.945436],[37.842895,-121.945322],[37.842781,-121.945155],[37.842713,-121.945051],[37.842656,-121.944967],[37.842615,-121.9449],[37.842504,-121.94469],[37.84247,-121.944616],[37.842404,-121.944469],[37.842338,-121.944334],[37.842309,-121.944267],[37.842246,-121.944139],[37.842141,-121.943958],[37.842042,-121.943779],[37.842022,-121.943712],[37.842045,-121.94349],[37.842122,-121.943353],[37.842216,-121.943221],[37.842537,-121.942819],[37.84259,-121.942749],[37.842787,-121.942462],[37.842887,-121.942304],[37.843052,-121.942094],[37.843168,-121.941969],[37.843219,-121.941896],[37.843365,-121.941681],[37.843408,-121.941615],[37.843446,-121.941548],[37.843448,-121.941396],[37.843406,-121.941349],[37.843347,-121.941334],[37.843142,-121.941317],[37.843082,-121.941269],[37.842991,-121.941102],[37.842958,-121.941001],[37.842922,-121.940677],[37.842949,-121.940579],[37.842999,-121.940496],[37.843182,-121.940327],[37.843214,-121.940162],[37.843172,-121.9401],[37.843113,-121.940077],[37.843054,-121.940072],[37.842937,-121.940119],[37.842883,-121.940159],[37.842828,-121.940196],[37.842772,-121.940233],[37.842719,-121.940274],[37.842663,-121.940314],[37.842549,-121.940392],[37.842376,-121.940513],[37.842314,-121.940543],[37.84225,-121.940565],[37.842119,-121.940575],[37.842056,-121.940556],[37.841939,-121.940491],[37.841888,-121.940455],[37.841794,-121.94038],[37.841655,-121.940266],[37.841561,-121.940171],[37.841515,-121.940111],[37.841473,-121.940042],[37.841363,-121.939711],[37.841302,-121.93945],[37.841241,-121.939204],[37.841187,-121.939049],[37.841159,-121.938974],[37.841104,-121.938837],[37.841085,-121.938765],[37.84107,-121.938692],[37.84106,-121.938618],[37.841055,-121.938545],[37.841049,-121.938325],[37.841057,-121.938254],[37.841113,-121.938048],[37.841139,-121.937983],[37.841235,-121.937803],[37.841326,-121.9377],[37.841417,-121.9376],[37.841516,-121.93751],[37.841622,-121.937429],[37.841855,-121.937277],[37.841943,-121.937231],[37.841998,-121.937208],[37.842219,-121.937127],[37.842324,-121.937093],[37.842379,-121.937076],[37.84255,-121.937027],[37.842659,-121.936985],[37.842771,-121.936954],[37.84288,-121.93694],[37.842935,-121.93694],[37.842991,-121.936938],[37.843152,-121.936933],[37.843257,-121.93694],[37.84331,-121.936946],[37.843465,-121.93698],[37.84357,-121.937012],[37.843768,-121.937072],[37.843869,-121.937076],[37.843976,-121.937068],[37.844127,-121.937044],[37.844274,-121.937016],[37.844318,-121.937001],[37.844382,-121.936939],[37.844392,-121.936893],[37.844377,-121.936789],[37.844353,-121.936738],[37.844318,-121.936684],[37.84423,-121.936581],[37.844185,-121.93653],[37.844141,-121.93648],[37.843977,-121.936273],[37.843866,-121.936123],[37.843786,-121.936019],[37.843681,-121.935854],[37.843659,-121.935789],[37.843631,-121.935646],[37.843629,-121.935489],[37.843627,-121.935409],[37.843613,-121.935069],[37.843604,-121.934898],[37.843596,-121.934816],[37.843588,-121.934648],[37.843579,-121.934384],[37.843592,-121.934203],[37.843661,-121.934045],[37.843713,-121.933984],[37.84382,-121.933889],[37.843869,-121.933837],[37.843946,-121.933727],[37.843977,-121.933671],[37.844002,-121.933612],[37.844009,-121.933478],[37.843985,-121.933418],[37.843907,-121.933328],[37.843867,-121.933276],[37.843826,-121.933224],[37.843779,-121.933176],[37.843632,-121.933093],[37.843537,-121.933089],[37.84343,-121.933089],[37.843372,-121.933086],[37.843313,-121.933073],[37.8432,-121.933026],[37.843145,-121.932999],[37.843034,-121.932953],[37.842923,-121.932911],[37.842708,-121.932826],[37.842604,-121.932775],[37.842555,-121.93274],[37.842468,-121.932648],[37.842432,-121.932592],[37.842397,-121.932533],[37.842329,-121.932414],[37.84229,-121.932357],[37.842246,-121.932306],[37.8422,-121.932265],[37.842101,-121.932213],[37.842049,-121.932201],[37.841994,-121.932194],[37.841938,-121.932187],[37.841826,-121.93216],[37.841607,-121.932086],[37.841516,-121.932043],[37.84143,-121.931918],[37.841424,-121.931855],[37.841432,-121.931789],[37.841483,-121.931661],[37.841527,-121.931612],[37.841635,-121.93155],[37.841693,-121.931528],[37.841812,-121.931463],[37.841872,-121.931421],[37.841927,-121.931368],[37.84205,-121.931164],[37.842079,-121.931088],[37.842111,-121.930933],[37.842118,-121.930855],[37.842128,-121.930776],[37.842156,-121.930535],[37.842162,-121.93038],[37.842159,-121.930304],[37.842154,-121.930094],[37.84216,-121.929947],[37.842175,-121.929812],[37.842183,-121.929678],[37.842164,-121.929545],[37.842142,-121.929481],[37.842045,-121.929295],[37.842004,-121.929235],[37.841886,-121.929048],[37.841851,-121.928981],[37.841795,-121.928834],[37.841794,-121.928673],[37.841813,-121.928591],[37.841835,-121.928507],[37.84186,-121.928424],[37.841937,-121.928085],[37.841992,-121.927933],[37.842034,-121.927866],[37.842082,-121.927811],[37.842193,-121.927726],[37.842244,-121.927682],[37.842289,-121.927635],[37.842367,-121.927527],[37.8424,-121.927396],[37.842406,-121.927189],[37.842409,-121.92712],[37.842415,-121.926984],[37.842427,-121.926852],[37.84249,-121.926744],[37.842592,-121.926689],[37.842638,-121.926657],[37.842717,-121.926548],[37.842738,-121.92644],[37.842733,-121.92637],[37.842694,-121.926236],[37.842636,-121.926109],[37.842602,-121.926047],[37.842564,-121.925991],[37.84252,-121.925942],[37.842419,-121.925881],[37.842311,-121.925844],[37.842255,-121.925826],[37.842142,-121.925784],[37.841992,-121.925655],[37.84191,-121.925545],[37.841775,-121.925384],[37.841727,-121.925334],[37.841576,-121.925202],[37.841471,-121.925112],[37.841365,-121.92502],[37.841311,-121.924973],[37.841126,-121.924833],[37.841062,-121.924771],[37.841008,-121.924691],[37.84095,-121.924537],[37.840946,-121.924392],[37.840942,-121.924297],[37.840934,-121.924204],[37.840915,-121.924029],[37.840889,-121.923848],[37.840867,-121.923759],[37.840783,-121.923488],[37.840754,-121.923396],[37.840687,-121.923101],[37.84066,-121.922897],[37.84067,-121.922692],[37.840694,-121.922493],[37.8407,-121.922395],[37.84075,-121.922079],[37.840789,-121.921975],[37.840972,-121.921716],[37.841038,-121.921638],[37.841165,-121.921493],[37.841228,-121.921431],[37.841301,-121.921377],[37.841389,-121.921344],[37.841483,-121.921339],[37.841763,-121.921449],[37.841944,-121.921551],[37.842207,-121.921679],[37.842362,-121.921748],[37.842439,-121.921758],[37.842508,-121.921725],[37.842561,-121.921664],[37.84259,-121.921583],[37.842602,-121.921491],[37.842607,-121.921283],[37.842613,-121.920953],[37.842635,-121.920846],[37.842734,-121.920557],[37.842795,-121.920498],[37.84294,-121.920462],[37.843016,-121.920486],[37.843083,-121.920533],[37.843196,-121.92067],[37.843246,-121.920745],[37.843376,-121.920997],[37.843441,-121.921174],[37.843467,-121.921267],[37.843514,-121.921446],[37.843582,-121.921614],[37.843654,-121.921782],[37.84384,-121.922131],[37.844148,-121.922524],[37.844304,-121.922826],[37.844336,-121.922939],[37.844363,-121.923052],[37.844469,-121.923489],[37.844545,-121.923924],[37.844574,-121.924032],[37.84461,-121.924139],[37.844757,-121.924426],[37.844814,-121.924509],[37.844925,-121.924683],[37.845015,-121.924862],[37.845049,-121.924957],[37.84509,-121.925252],[37.84509,-121.925358],[37.84514,-121.925818],[37.84521,-121.926147],[37.845257,-121.926351],[37.84528,-121.926448],[37.845336,-121.926635],[37.845422,-121.926808],[37.845472,-121.926888],[37.84567,-121.927044],[37.845816,-121.926968],[37.845931,-121.926819],[37.845995,-121.926769],[37.846139,-121.926754],[37.846285,-121.926775],[37.846354,-121.926786],[37.846423,-121.926793],[37.846483,-121.926807],[37.846607,-121.926861],[37.846674,-121.926913],[37.846827,-121.927169],[37.846872,-121.927278],[37.847068,-121.927629],[37.847217,-121.927871],[37.847272,-121.92801],[37.847308,-121.928156],[37.847349,-121.928587],[37.847394,-121.928858],[37.847452,-121.928975],[37.847682,-121.929243],[37.847753,-121.929341],[37.847855,-121.929568],[37.847912,-121.9298],[37.847945,-121.929926],[37.848034,-121.930151],[37.84808,-121.930264],[37.848163,-121.93049],[37.848237,-121.930721],[37.848348,-121.931089],[37.848405,-121.931208],[37.848518,-121.931456],[37.848688,-121.931844],[37.849059,-121.932421],[37.84914,-121.932525],[37.849229,-121.932615],[37.849418,-121.932753],[37.849715,-121.932893],[37.849822,-121.932891],[37.850035,-121.932802],[37.850145,-121.93275],[37.85026,-121.932715],[37.850498,-121.93273],[37.850721,-121.932791],[37.850835,-121.932791],[37.850945,-121.932744],[37.851106,-121.932531],[37.851147,-121.932262],[37.85108,-121.932021],[37.851007,-121.931944],[37.850906,-121.931907],[37.850813,-121.931876],[37.850652,-121.931789],[37.850588,-121.93173],[37.850524,-121.931543],[37.850549,-121.931265],[37.850585,-121.931186],[37.85068,-121.931038],[37.850733,-121.930962],[37.850791,-121.930895],[37.850852,-121.930836],[37.850977,-121.930741],[37.851095,-121.930631],[37.851148,-121.930469],[37.851108,-121.930326],[37.851,-121.930262],[37.850863,-121.930223],[37.850795,-121.930212],[37.850728,-121.930215],[37.85066,-121.930228],[37.850528,-121.930257],[37.850401,-121.930253],[37.850268,-121.930117],[37.850272,-121.929975],[37.850304,-121.929906],[37.8504,-121.929792],[37.850467,-121.929753],[37.850702,-121.929698],[37.850942,-121.929617],[37.851082,-121.929527],[37.851147,-121.929472],[37.851209,-121.929417],[37.851329,-121.929307],[37.851382,-121.929247],[37.851431,-121.929182],[37.851477,-121.929113],[37.85159,-121.928908],[37.851626,-121.92884],[37.8517,-121.928704],[37.851735,-121.928636],[37.851767,-121.928571],[37.85182,-121.92843],[37.851827,-121.928357],[37.851791,-121.92822],[37.851752,-121.928165],[37.851708,-121.928119],[37.851613,-121.928038],[37.851567,-121.927993],[37.851479,-121.927883],[37.851451,-121.927809],[37.851438,-121.927726],[37.85144,-121.92764],[37.851491,-121.927473],[37.851518,-121.927391],[37.851566,-121.927235],[37.851626,-121.927009],[37.85159,-121.92682],[37.851558,-121.926765],[37.851474,-121.926662],[37.851426,-121.926612],[37.851385,-121.926548],[37.851361,-121.926388],[37.851438,-121.926249],[37.851544,-121.926134],[37.851707,-121.925967],[37.851878,-121.925782],[37.851946,-121.925736],[37.852029,-121.925722],[37.852196,-121.925807],[37.8523,-121.926011],[37.852366,-121.926249],[37.852405,-121.926369],[37.852441,-121.926491],[37.852646,-121.927102],[37.852705,-121.927331],[37.852752,-121.927545],[37.852781,-121.927642],[37.852827,-121.927857],[37.852848,-121.928027],[37.85286,-121.928127],[37.852873,-121.928229],[37.852908,-121.928527],[37.852917,-121.928929],[37.85292,-121.929033],[37.852944,-121.929244],[37.853025,-121.92944],[37.853182,-121.929684],[37.853228,-121.929766],[37.853299,-121.929945],[37.853323,-121.930039],[37.853345,-121.930135],[37.853369,-121.930235],[37.853442,-121.930437],[37.853497,-121.930525],[37.853625,-121.930665],[37.853697,-121.930728],[37.85377,-121.930785],[37.853913,-121.930891],[37.854041,-121.93099],[37.854112,-121.931048],[37.85431,-121.931198],[37.854435,-121.931298],[37.854494,-121.931356],[37.854548,-121.931417],[37.854713,-121.931611],[37.854819,-121.931738],[37.85487,-121.931814],[37.855031,-121.932058],[37.855132,-121.932205],[37.855274,-121.932419],[37.855395,-121.932674],[37.855415,-121.932828],[37.855425,-121.933092],[37.85545,-121.933249],[37.855518,-121.933439],[37.855548,-121.9335],[37.855605,-121.933619],[37.85572,-121.933793],[37.855798,-121.933918],[37.855868,-121.934039],[37.855933,-121.934156],[37.856002,-121.934264],[37.856077,-121.934358],[37.856172,-121.934421],[37.85629,-121.934457],[37.856421,-121.934497],[37.856706,-121.934625],[37.856773,-121.934684],[37.856936,-121.934917],[37.856989,-121.935001],[37.857083,-121.935184],[37.857167,-121.935367],[37.857322,-121.935614],[37.857403,-121.935659],[37.857687,-121.935658],[37.857787,-121.935644],[37.858002,-121.935613],[37.858115,-121.935605],[37.858577,-121.935546],[37.858724,-121.93552],[37.858969,-121.935426],[37.859035,-121.935369],[37.859096,-121.935313],[37.859205,-121.935209],[37.859256,-121.935161],[37.859304,-121.935115],[37.85935,-121.935069],[37.859475,-121.934927],[37.859556,-121.934836],[37.859598,-121.934795],[37.859678,-121.934707],[37.859763,-121.934621],[37.859884,-121.934511],[37.859925,-121.934486],[37.860015,-121.934431],[37.860112,-121.934384],[37.86016,-121.934363],[37.860209,-121.934345],[37.860412,-121.934269],[37.860517,-121.934229],[37.860729,-121.934134],[37.860889,-121.934034],[37.861099,-121.933901],[37.861307,-121.933762],[37.861448,-121.933656],[37.861542,-121.93358],[37.861592,-121.933544],[37.861741,-121.933421],[37.861879,-121.933308],[37.861944,-121.933263],[37.86205,-121.933187],[37.862268,-121.933047],[37.862321,-121.933015],[37.862424,-121.932939],[37.862522,-121.932852],[37.862573,-121.932813],[37.862624,-121.932777],[37.862678,-121.932752],[37.862783,-121.932715],[37.862835,-121.932707],[37.862889,-121.932713],[37.863062,-121.932755],[37.863118,-121.932776],[37.863229,-121.932827],[37.863334,-121.932884],[37.86349,-121.932996],[37.863643,-121.933114],[37.863693,-121.933155],[37.863746,-121.93319],[37.863912,-121.933228],[37.863962,-121.933196],[37.864017,-121.933068],[37.864053,-121.93293],[37.864122,-121.932741],[37.864179,-121.932639],[37.864213,-121.932596],[37.864297,-121.932551],[37.864344,-121.932572],[37.864376,-121.932618],[37.864401,-121.932671],[37.864446,-121.932828],[37.864459,-121.932869],[37.864485,-121.932936],[37.864521,-121.932994],[37.86456,-121.933026],[37.864641,-121.93308],[37.864755,-121.933182],[37.864791,-121.93322],[37.864867,-121.933287],[37.864956,-121.933322],[37.865002,-121.933309],[37.865088,-121.93319],[37.865128,-121.93308],[37.865179,-121.932962],[37.865245,-121.932833],[37.865351,-121.932629],[37.865468,-121.932411],[37.865511,-121.932339],[37.865624,-121.932112],[37.865659,-121.932041],[37.865696,-121.931974],[37.865732,-121.931904],[37.865777,-121.931846],[37.865906,-121.93181],[37.866026,-121.931847],[37.866088,-121.931871],[37.866147,-121.931896],[37.866334,-121.93197],[37.866392,-121.932008],[37.866452,-121.93204]]`), &data)
	if err != nil {
		panic(err)
	}
{'fraction_non_alphanumeric': 0.289300519839442, 'fraction_numerical': 0.677633743502007, 'mean_word_length': 6.73392705682782, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4002157', 'n_tokens_mistral': 81660, 'n_tokens_neox': 44043, 'n_words': 334}