var plan_key = ''; var meet_loc_url = '/boston/meet-location'; // handy images var img_zipmarker, img_youarehere, img_nomatch, img_expanded, img_unknown; img_youarehere = "/images/zipmarker-youarehere.png"; img_nomatch = "/images/zipmarker-reserved.png"; img_expanded = "/images/zipmarker-viewing.png"; img_zipmarker = "/images/zipmarker.png"; img_unknown = "/images/zipmarker-unknown.png"; img_shadow = "/images/zipshadow.png"; // create a data structure for all the locations var locs = [ [5039574,'100+Cambridge+St',42.36011230791804,-71.06174442680845],[96027,'100+Clarendon+Garage',42.3480650051,-71.0744909748],[91280347,'100+High+St',42.35418336693473,-71.05547189712524],[3141846,'100+Memorial+Drive',42.36047051539995,-71.08593306029978],[95859,'11+Bay+State+Rd',42.34987760899038,-71.09331488183085],[65377170,'110+Babcock',42.34705916208744,-71.12158298492432],[10875104,'131+Dartmouth+Street',42.346841589904315,-71.07574763528557],[137048507,'1330+Boylston',42.3442401802968,-71.09797954559326],[165107084,'140+North+Beacon+St',42.35508721499992,-71.14567995071411],[124802272,'150+Cambridgepark+Drive',42.394848,-71.145995],[115828924,'1571+Beacon+St',42.33956142239985,-71.13286972045898],[14131569,'17+Beacon+St',42.37490195040678,-71.10192144850852],[27454556,'185+Beacon+St',42.35397900000002,-71.076292],[176006043,'20+Radcliffe+Rd',42.35098015158823,-71.13473653793335],[91278590,'225+Franklin+St',42.355816626767364,-71.05424880981445],[158669006,'235+Cypress+St',42.32557065272191,-71.12306356430054],[96036,'235+West+Newton+St',42.344406,-71.080307],[196733252,'29+Mass+Ave%2fPublic+Alley+908',42.35045683851824,-71.08967542648315],[6960238,'33+Arch+St+',42.35612040189178,-71.05861593587682],[109248369,'33+Concord+Ave',42.38008852319249,-71.12632513046265],[160377287,'40+Harvard+Ave%2fModel+Hardware',42.35489693227697,-71.13218307495117],[187723064,'45+Magazine+St',42.36288831058794,-71.10714197158813],[26996052,'500+Harrison',42.34241499999998,-71.06523799999992],[47775787,'506+Beacon+',42.350791,-71.089837],[19015423,'520+Beacon+Street',42.35070617517392,-71.09116846617749],[187720599,'541+Cambridge+St',42.35297821596058,-71.13967180252075],[162593799,'585+Commercial+St',42.36753362486808,-71.0580039024353],[101117995,'600+Memorial+Dr',42.353660080534574,-71.10671281814575],[75776153,'75+State+St',42.358924460281685,-71.05560064315796],[480098,'88+Beacon+St',42.376769724514766,-71.10485404729843],[1439792,'929+Mass+Ave',42.368452308438236,-71.10888771313847],[95778,'Agassiz%2fNorth+Hall',42.38129315418793,-71.11941576004028],[19457335,'Albany+St%2fBU+Medical',42.33521119281634,-71.07053001235099],[96150,'Alewife+T',42.3959138669,-71.1423857345],[1096024,'Alewife%2fCambridgePark',42.394581,-71.1448205],[33958015,'All+Saints+Church',42.28592700000001,-71.06298499999997],[28239989,'Arborpoint',42.40352712491678,-71.07995510101318],[98330166,'Archstone+Boston+Common',42.351871,-71.06268],[107771475,'Archstone+North+Quincy',42.27359356851227,-71.03135347366333],[95541017,'Archstone+NorthPoint',42.36989578604455,-71.07411861419678],[95213867,'Archstone+Watertown+Square',42.36345908443492,-71.18672847747803],[165099717,'Arlington+Center%2fMystic+St',42.415900569784846,-71.15196704864502],[46005856,'Ball+Square',42.39892804907018,-71.10989391803741],[190175618,'Beacon+St+Star+Market',42.38316345651407,-71.11194849014282],[115827417,'Beacon+St%2fAmory+St',42.344295688893816,-71.11363291740417],[181587492,'Beacon+St%2fConcord+Ave',42.37501613916832,-71.10220670700073],[70548627,'Beacon+St%2fSt+Paul',42.343367895907384,-71.11697494983673],[1851496,'Beacon%2fClarendon',42.35407299999998,-71.07570599999983],[36645181,'Beacon%2fMass+Ave',42.351248,-71.08805],[187733114,'Beale+St%2fDorchester+Ave+',42.28284942200542,-71.06463432312012],[6083193,'Belvidere+St%2fPrudential+Ctr+Garage',42.34606400854889,-71.08263731002808],[125483962,'Bent+St%2fFifth+St',42.36732752605568,-71.0844612121582],[181585710,'Bishop+Allen+Dr%2fDouglass+St',42.365044540136175,-71.1001467704773],[55272735,'Boston+Ave%2fMystic+Valley+Pkwy',42.416704521597815,-71.12906634807587],[16721072,'Boston+College%2fLake+St',42.34047732530039,-71.16646715122076],[88262852,'Boston+Common+Garage',42.35475421985666,-71.06813192367554],[10875595,'Boston+Harbor+Garage',42.358156,-71.051353],[984840,'Braddock+Park',42.344039,-71.078003],[88267323,'Brainerd+Rd%2fFiske+Terrace',42.348585562200206,-71.1304235458374],[4268350,'Brigham+Cir%2fCalumet+St',42.3334387965,-71.1049184392],[9658734,'Brigham+Cir%2fSt+Albans',42.333733,-71.1071],[22651490,'Brighton+Ave',42.353061467264325,-71.12642705440521],[19970676,'Broadway%2fEllery',42.37304561065506,-71.10948193959626],[175955190,'Broadway%2fEllsworth+Ave',42.372162743101676,-71.10748529434204],[26645965,'Broadway%2fMt+Vernon+',42.386303999999996,-71.07849199999998],[156426817,'Broadway%2fPearson+Rd',42.400833477982786,-71.11448049545288],[25171877,'Brookline+Ave%2fRiverway',42.332965,-71.11313999999997],[96006,'Brookline+Village+T',42.333021,-71.1167775],[737380,'Brookline+Village%2fKent',42.33370851986117,-71.11626148223877],[20692600,'BU+East%2fGranby+St',42.34978,-71.103599],[163091559,'BU%2f766+Comm+Ave',42.349981095582905,-71.1086654663086],[18740077,'Cambridge+Center+East',42.363300536664205,-71.08757257461548],[1915590,'Cambridge+St+Gas',42.360883515458816,-71.06849638946862],[156428695,'Cambridge+St%2fColumbia+St',42.373129741846434,-71.09407424926758],[95757,'Cambridge+St%2fDana',42.373134,-71.107836],[88263445,'Cambridgeside+Galleria',42.367008,-71.07604],[187725180,'Camp+St%2fSeven+Pines+Ave',42.39918554284503,-71.12984418869019],[95928,'Cedar+St%2fBike+Path',42.393829454746154,-71.11098289489746],[81343210,'Center+Plaza',42.36046,-71.0605],[25614168,'Central+Sq',42.36549199999999,-71.10507],[199218712,'Centre+St%2fArborway',42.3090854702368,-71.11982345581055],[30155840,'Centre+St%2fHancock',42.36977599999998,-71.10807700000001],[22260169,'Centre+St%2fJP+Oil',42.31719515381187,-71.11355903420731],[54569407,'Centre+St%2fPaul+Gore+%232',42.320799,-71.109753],[54570550,'Centre+St%2fPaul+Gore+%233',42.320799,-71.109753],[87249392,'Centre+St%2fPaul+Gore+%236',42.320765,-71.109752],[5418941,'Charles+Hotel',42.37233527098139,-71.12194703483154],[95997,'Charles+River+Park',42.36297602506039,-71.06409918158967],[32427623,'Chester+St',42.35307336029873,-71.12853527069092],[150540185,'Children%27s+Hospital+Boston',42.33803876847325,-71.10456705093384],[12626279,'Children%27s+Museum+',42.3510620714,-71.049753058],[6917255,'Clarendon%2fTremont',42.344351197441824,-71.07283115386963],[6591148,'Cleveland+Cir%2fSutherland+Rd',42.3393173252,-71.1486029236],[96015,'Cleveland+Circle+T',42.336423136338475,-71.14835790464946],[27536914,'Columbus%2f210+W+Canton',42.344902,-71.07717900000004],[1766175,'Columbus%2f214+W+Canton',42.34512831196797,-71.07753038406372],[161005119,'Columbus%2f216+W+Canton',42.345080733803655,-71.0775089263916],[95964,'Comm+Av%2fGordon+St',42.34971999999997,-71.13891899999993],[3428226,'Comm+Av%2fGriggs',42.3484431655,-71.1338687341],[95787,'Comm+Av%2fShaws+Mkt',42.351285571338444,-71.12393114815151],[162609513,'Comm+Ave%2fMt+Hood+Rd',42.34197221571155,-71.14402770996094],[22652086,'Comm+Ave%2fStrathmore',42.339280985548655,-71.1526350747724],[46591219,'Comm+Ave%2fWashington+St',42.345445498809944,-71.14505767822266],[54809085,'Concord+Av%2fHuron',42.382559,-71.131263],[26824224,'Conway+Park',42.38290100000002,-71.10801000000005],[95820,'Coolidge+Cnr%2fCentre+St',42.34226,-71.123274],[6606675,'Coolidge+Cnr%2fHarvard+St',42.338894664805004,-71.12122303477952],[8726714,'Coolidge+Cnr%2fMarriott',42.34110764609609,-71.12175578953477],[7613283,'Coolidge+Cnr%2fVernon+St',42.33894930631836,-71.12308084623376],[90754821,'Coolidge+Cnr%2fWinchester+St',42.34259075962106,-71.12469434738159],[171203729,'Crescent+Ave%2fDorchester+Ave',42.318526502578564,-71.0562014579773],[46593640,'Dartmouth+Street+Garage',42.346628,-71.075675],[95940,'Davis+Sq%2fHolland+St',42.39788617885574,-71.12420082092285],[96123,'Davis+Sq%2fRite+Aid',42.39604800823525,-71.11958742141724],[36561100,'Dorchester+Ave%2fBanton+St',42.28835386676681,-71.0639637708664],[16270762,'Dorchester+Tire',42.31065188922097,-71.05744714341752],[31953229,'East+Arlington',42.402795000000005,-71.13897000000003],[70814083,'East+Second+%2f+O+St',42.33730518506171,-71.0285210609436],[196698895,'Elmer+St',42.365678711213775,-71.11445903778076],[1836168,'Elmwood+St%2fBike+Path',42.398166,-71.1284],[115830213,'Englewood+Ave+T',42.337134675259264,-71.14537954330444],[150534643,'Englewood+Ave%2fLanark+Rd',42.33776912799773,-71.14628076553345],[5869053,'Episcopal+Divinity+School',42.37689042220032,-71.12480605395656],[183774850,'Exeter+St%2fPrudential+Ctr+Garage',42.3484428354488,-71.07935428619385],[4863459,'First+Street+Garage',42.3692699689,-71.0778503052],[891860,'Forest+Hills+T',42.30024611115346,-71.1138367652893],[124877416,'Fowler+St%2fMemorial+Dr',42.35532506759343,-71.09871983528137],[115835598,'Fuller+St+Town+Lot+',42.344922139662515,-71.12709760665894],[149710350,'Fuller+St%2fHamilton+Rd',42.351027725287636,-71.1248230934143],[17840226,'Gainsborough+St',42.342425,-71.089019],[6901459,'Garden+St%2fFernald+Dr',42.3831780265,-71.1261966294],[96132,'Government+Ctr+Garage',42.36244357209273,-71.05897480397785],[96117,'Green+St+Garage',42.36454,-71.103805],[96033,'Green+St%2fPleasant+St',42.3656155,-71.105887],[95539097,'Hancock+Village',42.29706395550092,-71.15793228149414],[154331682,'Harbor+Point',42.31873276142521,-71.04276895523071],[9316940,'Harriet+Tubman+House',42.340954,-71.08131],[89238376,'Harvard+Ave',42.336071952581925,-71.12329959869385],[162611386,'Harvard+Ave%2fBower+St',42.42038355872977,-71.13359928131104],[95865,'Harvard+Busines+School+-+Spangler+Centre',42.3645595,-71.12311250000013],[95937,'Harvard+Sq+Hotel',42.37249564598936,-71.12207651138306],[112269331,'Harvard+St%2fColumbia+St',42.36705801120375,-71.09748601913452],[20477359,'Harvard+St%2fFuller',42.345366202249494,-71.12748384475708],[28043312,'Harvard+St%2fLongwood',42.341305000000006,-71.12050599999996],[95853,'Harvest+Co-op',42.365526,-71.102316],[73267008,'Highland+Ave+Gulf',42.39485554548319,-71.11827313899994],[97700254,'Highland+Ave%2fCedar+St',42.392419047823104,-71.11257076263428],[93218667,'Highland+Ave%2fCentral+St',42.38845706106506,-71.10270023345947],[49357567,'Highland%2fHancock',42.39292616407393,-71.11529588699341],[26645388,'Hood+Office+Park',42.38052300000001,-71.072005],[42279678,'Huntington+Ave%2fCumberland',42.34408753140228,-71.0825514793396],[7229934,'Hynes%2fDalton+St',42.347110703475096,-71.08559846878052],[23384410,'India+St',42.35787970392654,-71.05222793551256],[1086501,'Inman+Sq+East',42.3747585353,-71.0944478819],[95730,'Inman+Sq%2fSpringfield',42.374147,-71.100248],[5027757,'Inman+St%2fHarvard',42.368907733,-71.103491458],[45859123,'James+Court',42.337668,-71.072222],[9762236,'JFK%2fUMass+T',42.32000203175366,-71.052006483078],[115830860,'John+St%2fBabcock+St',42.343780250036126,-71.12233400344849],[136519695,'JP+Monument+',42.30957739092655,-71.1151671409607],[20691984,'Kelton+St%2fCorey+Rd',42.34691666535121,-71.13570797925098],[95724,'Kendall+Cinema',42.367676308265196,-71.08993291854858],[8727419,'Kendall+Sq%2fGenzyme+',42.36363348652054,-71.0828948020935],[95988,'Kendall%2fMIT+T',42.36227789393032,-71.08638167381287],[95898,'Kendall%2fTech+Sq',42.364435,-71.091595],[105369674,'Kinnaird+St%2fWestern+Ave',42.36532991791331,-71.10883712768554],[10182660,'Lewis+Wharf',42.36375996847843,-71.05085842595004],[95880,'Longwood%2fRiverway',42.33971,-71.108387],[25250035,'Magoun+Square+',42.39679400000003,-71.104728],[44512666,'Malden+Center+T',42.42653922580456,-71.07494741678238],[37870556,'Marlborough%2fArlington',42.354104081396585,-71.0723751783371],[25025831,'Marlborough%2fGloucester',42.35153599999999,-71.08490800000001],[36560652,'Marlborough%2fMass+Ave',42.349799,-71.090365],[27536239,'Mass+Av%2fArlington',42.385940000000026,-71.11985900000005],[1114156,'Mass+Av%2fGarfield+St',42.38406,-71.1192115],[887221,'Mass+Av%2fMIT',42.357969134963625,-71.09580159187317],[95802,'Mass+Av%2fPorter+North',42.39119900000001,-71.12202199999993],[45908281,'Mass+Ave%2fAllen+St',42.41072017991696,-71.14815294742584],[42050048,'Mass+Ave%2fHarrison',42.33489421281488,-71.07559382915497],[98495942,'Mass+Ave%2fLangdon+St',42.38099199860576,-71.12020969390869],[169746108,'Mass+Ave%2fLee+St',42.36751777113728,-71.10780715942383],[45864301,'Mass+Ave%2fNewbury',42.34871243015163,-71.08688592910767],[112919368,'Mass+Eye+and+Ear+',42.36160405047349,-71.07113599777222],[80061893,'Mead+St',42.361715036951736,-71.13166809082031],[15836345,'Memorial+Dr%2fRiver+St',42.36155811921617,-71.11526522306514],[156370974,'Memorial+Drive+Mobil',42.36135036635846,-71.11574649810791],[95931,'MGH%2fFruit+St+Garage',42.362263,-71.069039],[18836399,'Millennium+Place%2fRitz+Carlton',42.35231220156067,-71.06403350830078],[95985,'Minihanes%2fBrighton+Ctr',42.3491,-71.156372],[231571778,'MIT%2fEastgate+',42.361453425653714,-71.08388185501098],[11897623,'MIT%2fSloan+School',42.36123937923603,-71.08401596546173],[196707953,'Monmouth+St%2fChurch+of+Our+Savior',42.34419260146034,-71.10933065414429],[29255314,'Mt+Auburn%2fBanks+St',42.36999200000002,-71.114172],[42770646,'Mt+Auburn%2fHomer+Ave',42.376129,-71.148198],[56929551,'Mt+Auburn%2fTufts+Health+',42.37222615331157,-71.1558187007904],[93208196,'Museum+of+Fine+Arts',42.33914904060205,-71.09643459320068],[1835925,'Necco+Place',42.34873608065392,-71.05123850146198],[99831006,'Newbury+College',42.331693980245795,-71.14325523376465],[47805030,'North+End+Garage',42.36748,-71.057804],[5395263,'North+Harvard+St%2fWestern+Ave',42.363792033451034,-71.12969398498535],[57755683,'North+Quincy+T',42.276943614149324,-71.0306453704834],[95973,'North+Stn%2fLangone%27s',42.36771123291329,-71.0574973698233],[49271476,'Oak+Grove+T',42.43615859635352,-71.07115745544434],[140708526,'Oak+Grove+Village',42.43932579596499,-71.06789588928223],[52213769,'Oak+Square',42.34991766291947,-71.16498649120331],[112434135,'One+Financial+Center+',42.352185340874804,-71.05628728866577],[59912153,'One+Nassau',42.34871243015163,-71.06326103210449],[93748485,'Orleans+St%2fGove+St',42.370276260075414,-71.0361385345459],[13933458,'Park+Dr%2fJersey',42.342479739367434,-71.09619855880737],[6785838,'Park+Sq%2fMotor+Mart+Garage',42.3510848261,-71.0680502291],[12309893,'Peabody+Terrace',42.366965855548685,-71.1149416758247],[132937672,'Pemberton+Farms',42.3935283592999,-71.12546682357788],[20280070,'PI+Alley+Garage',42.357671,-71.05822],[1259648,'Pleasant+Pl',42.363448,-71.1082145],[51781636,'Pleasant+St%2fEvelyn+Place',42.427697429468246,-71.0749688744545],[488558,'Porter+Exchange',42.386671,-71.118666],[2713713,'Post+Office+Sq',42.35747277934743,-71.05634306785358],[93895248,'Queensberry+St%2fPark+Dr',42.341992,-71.100165],[57756637,'Quincy+Adams+T',42.23237820832407,-71.00751399993896],[61551219,'Quincy+Center+T',42.25252071647361,-71.0059905052185],[22384260,'Quint+Ave%2fRadcliffe+Rd',42.35060649583952,-71.1337793375556],[110562134,'Ransom+Rd',42.34249559941566,-71.14567995071411],[20481372,'Regent+Circle%2fBeacon+St+',42.33765809923057,-71.14091634750366],[20211532,'Richdale+Ave',42.38918876275839,-71.1269672238715],[49271126,'Riverside+T',42.33661124693124,-71.25311851501465],[47812489,'Roslindale+Village',42.28732603652801,-71.13147497177124],[9931207,'Roxbury+Community+College',42.3262079941,-71.097174033],[96054,'Sargent%27s+Wharf',42.3640895,-71.050221],[42051284,'Savin+Hill+T',42.31066833035244,-71.05379283428192],[50272338,'Shepard+St',42.380476,-71.124349],[761641,'Sidney+St%2fPacific+St+MIT',42.360139,-71.102079],[95799,'Sidney+St%2fStar+Mkt+',42.361725,-71.100258],[95913,'Simmons',42.33884768296255,-71.10145568847656],[16398311,'Soldier%27s+Field+Park+-+One+Western+Ave+',42.36432316275288,-71.12042427062988],[6278774,'Somerville+Ave%2fBeacon',42.3869420362,-71.1162107986],[96060,'South+Stn%2fLincoln+St',42.351405,-71.058489],[3105293,'Spring+St',42.36893383677472,-71.08081563564971],[21250748,'St+Gerard',42.393276630976644,-71.12840156359721],[53671493,'St+Marys%2fMonmouth',42.344811123525695,-71.10594034194946],[56542162,'St+Paul%2fAlton+Pl',42.33889526584375,-71.11834287643433],[88921039,'St+Paul%2fStearns+Rd',42.339688308562785,-71.11817121505737],[20685413,'St+Paul%2fThatcher',42.3487867787492,-71.11573503441534],[45096524,'State+Street+Financial+Center',42.3528354991833,-71.05835795402527],[105366880,'Summer+St%2fSchool+St',42.38466916790397,-71.1004900932312],[45864579,'Sutherland+Rd%2fSelkirk',42.33951780522221,-71.14887714385986],[117021374,'Sycamore+St',42.392308115597054,-71.09896659851074],[56417518,'Symphony+Garage',42.34374853058377,-71.08798027038574],[2047196,'Thatcher+St',42.3482545,-71.117371],[113835360,'The+Arsenal+on+the+Charles%2fCentral+Garage',42.36292002038214,-71.16552829742432],[198357292,'The+Arsenal+on+the+Charles%2fHBSP',42.362745616316005,-71.16846799850464],[207719430,'The+Brewery%2fJP+',42.31462332311609,-71.10448122024536],[53025095,'The+Distillery',42.337875,-71.042724],[166690890,'Third+Square+Apartments+',42.36494941392239,-71.0831093788147],[95545384,'Third+St%2fRogers+St',42.36656653996759,-71.08216524124146],[22108238,'Thompson+Square',42.37546791499093,-71.06366872787476],[10898138,'Tremont%2fBurney+St',42.3319347681,-71.0995330049],[38931024,'Tremont%2fSt+Alphonsus',42.3319676124451,-71.10176146030426],[35143620,'Tremont%2fWest+Newton',42.34217839769086,-71.07702612876892],[31316627,'Trilogy+Garage',42.344433999999985,-71.10035399999988],[187713011,'Tufts+St%2fMass+Ave',42.409072504463865,-71.14595890045166],[2807306,'Tufts%2fBlakeley+Hall',42.4083447075,-71.1229637331],[29164100,'Tufts%2fJackson+Gym',42.40491300000001,-71.11988300000002],[15162046,'Tufts%2fMiller+Hall',42.40858291500473,-71.12154941215717],[3450662,'Tufts%2fWest+Hall',42.40823754670005,-71.12046785579993],[12121729,'UMass+Boston',42.316115983923005,-71.03973887798126],[96114,'Union+Sq%2fBarristers+Hall',42.379945,-71.095605],[167743477,'US+Petroleum%2fComm+Ave',42.339799333745304,-71.16003513336182],[21812002,'Vail+Ct%2fBishop+Allen+Dr',42.36726411090043,-71.103515625],[686638,'Valentine+St',42.36061499999999,-71.10661700000004],[199242956,'Vancouver+St%2fWard+St',42.335865750579124,-71.09761476516724],[93211010,'Victoria+St%2fBroadway',42.405442,-71.131192],[1820764,'Walden+St',42.386992,-71.129112],[95838,'Washington+Sq%2fFairbanks',42.339789999999994,-71.12970699999995],[742377,'Washington+Sq%2fWash%2e+St',42.339631,-71.1362085],[12574573,'Washington+St+%2f+Corey+Rd',42.342281,-71.140158],[19542346,'Washington+St%2fEast+Springfield',42.33665389106772,-71.07633744663579],[102311991,'Washington+St%2fPleasant+St',42.42755884212276,-71.0710072517395],[20540862,'Washington+St%2fSalisbury',42.3405983253134,-71.13658960197738],[5427294,'Watertown+Sq%2fPleasant+St',42.36594823198324,-71.18765115737915],[123322424,'West+Broadway%2fF+St',42.337069,-71.048115],[199215703,'West+Cedar+St%2fCambridge+St',42.360890561289295,-71.06984853744507],[80910470,'West+End+Garage',42.36441036265691,-71.06817483901978],[95895,'Westgate%2fMIT',42.35556291928673,-71.10280752182007],[16270266,'Whittier+Place',42.36569144031101,-71.06722450258047],[174882621,'Wilson+Park%2fComm+Ave',42.340750970125484,-71.14628076553345],[163090059,'Wollaston+T',42.26670239347998,-71.01989507675171],[49271012,'Woodland+T',42.33228090002313,-71.24127388000488],[25614493,'Worcester+St%2fShawmut+Ave',42.338115,-71.076592],[31132283,'World+Trade+Center+East',42.348989000000024,-71.04104900000002]]; // create a data structure for all the location groups var loc_grps = [ [2019900, 42.34885528945209989655172413793103448276, -71.14056207619466793103448275862068965517, 15],[82770604, 42.370276260075414, -71.0361385345459, 15],[96166, 42.34997333904488033333333333333333333333, -71.08222954367356222222222222222222222222, 15],[96168, 42.36149900501066736363636363636363636364, -71.06612450930342454545454545454545454545, 15],[96184, 42.34056303495464021428571428571428571429, -71.09969806512604071428571428571428571429, 15],[96183, 42.35459200617146923529411764705882352941, -71.05546731786895764705882352941176470588, 15],[10898288, 42.3333879855248448, -71.1021855339143, 15],[96170, 42.364268740426615, -71.05610146047202, 15],[96167, 42.3430708160130727, -71.074899261593262, 15],[96176, 42.34088755008363507894736842105263157895, -71.12513699581209552631578947368421052632, 15],[96177, 42.36682810182241638235294117647058823529, -71.10854512058345235294117647058823529412, 15],[96182, 42.36538015017727609523809523809523809524, -71.08739748426445714285714285714285714286, 15],[96175, 42.39134784622527424, -71.1311347377268372, 15],[96178, 42.37542239168878466666666666666666666667, -71.05727075414022, 15],[1451951, 42.30575864311400988888888888888888888889, -71.05483764955035555555555555555555555556, 15],[96187, 42.317900844334477, -71.110168664951322, 15],[51657931, 42.4314559779428152, -71.07199537754059, 15],[2838953, 42.41009905349273642857142857142857142857, -71.11821210449388714285714285714285714286, 15],[49591212, 42.32660835693892, -71.2046979569336075, 15],[3519821, 42.2604277001878508, -71.01907968521118, 15],[49424181, 42.28732603652801, -71.13147497177124, 15],[96172, 42.38985825517454711538461538461538461538, -71.10987673023396961538461538461538461538, 15],[96180, 42.342478053143126, -71.045817512481116, 15],[1876993, 42.36723801773797916666666666666666666667, -71.16873210526275666666666666666666666667, 15]]; // even though we have vehicle_id, it is not relevant at this stage since it will just be used for // counting up how many vehicles match said criteria. we will leave it out of the array. // make, model, location, amenity list var vehicles = [ [4264850,4264865,27536239,[49167247,'']],[94562,5107542,20211532,['']],[4264850,4264865,55272735,[49167247,'']],[94563,33798998,42051284,['']],[94563,33798998,737380,['']],[4264850,4264866,10182660,[49167247,'']],[4264850,4264866,95895,[49167247,'']],[4264850,4264865,95787,[49167247,'']],[4264850,4264865,5869053,[49167247,'']],[4264850,4264866,95799,[49167247,'']],[94562,5107542,46005856,['']],[4264850,4264865,20280070,[49167247,'']],[4264850,4264865,47812489,[49167247,'']],[4264850,4264865,96117,[49167247,'']],[4264850,4264866,70814083,[49167247,'']],[4264850,4264866,20691984,[49167247,'']],[4264850,4264866,49357567,[49167247,'']],[4264850,4264866,3105293,[49167247,'']],[4264850,4264865,42770646,[49167247,'']],[4264850,4264866,12574573,[49167247,'']],[4264850,4264865,10875104,[49167247,'']],[4264850,4264866,17840226,[49167247,'']],[94563,33798998,95940,['']],[94563,33798998,18740077,['']],[94563,33798998,17840226,['']],[3140121,22855272,37870556,[49167247,'']],[4264850,4264865,196733252,[49167247,'']],[94562,5107542,53025095,['']],[94562,5107542,16721072,['']],[94562,5107542,51781636,['']],[94563,23642479,162611386,['']],[4264850,4264865,26645388,[49167247,'']],[4264850,4264866,4863459,[49167247,'']],[94563,33798998,42050048,['']],[4264850,4264865,16270266,[49167247,'']],[4264850,4264865,53025095,[49167247,'']],[94564,742432,18740077,['']],[2968515,1014543,45864579,[485650,'']],[94563,33798998,12574573,['']],[94563,33798998,80061893,['']],[2968515,1014543,27536239,[485650,'']],[2968515,1014543,95973,['']],[2968515,1014543,3428226,[485650,'']],[4264850,4264866,95859,[49167247,'']],[4264850,4264866,88262852,[49167247,'']],[4264850,4264866,10898138,[49167247,'']],[94563,33798998,1835925,['']],[94563,33798998,70814083,['']],[94564,742432,46591219,['']],[94564,742432,3105293,['']],[94564,742432,1114156,['']],[94564,742432,20685413,['']],[4264850,4264866,9658734,[49167247,'']],[94563,23642479,17840226,[49167247,'']],[5240856,5240857,20280070,['']],[5240856,5240857,1835925,['']],[2968515,1014543,1439792,[485650,49167247,'']],[2968515,1014543,46005856,[485650,'']],[94564,742432,31953229,['']],[94564,742432,22108238,['']],[94563,33798998,95799,['']],[94563,94567,23384410,[49167247,'']],[32061749,32062060,19542346,[49167247,'']],[94564,742432,56929551,['']],[4264850,4264866,32427623,[49167247,'']],[3140121,32144640,96027,[49167247,'']],[2968515,1014543,162593799,[485650,'']],[94563,94567,42279678,[49167247,'']],[94563,94567,165099717,[49167247,'']],[94564,3398752,17840226,[49167247,'']],[94564,3398752,187733114,[49167247,'']],[32061749,32062060,162593799,['']],[32061749,32062060,891860,[49167247,'']],[5240856,5240857,1915590,['']],[2968515,1014543,9316940,[485650,'']],[2968515,1014543,742377,[485650,'']],[94563,33798998,45859123,['']],[94563,33798998,163090059,['']],[32061749,32062060,136519695,[49167247,'']],[32061749,32062060,36560652,[49167247,'']],[32061749,32062060,55272735,[49167247,'']],[94563,23642479,6917255,['']],[94563,23642479,47775787,['']],[29744489,29744656,20692600,['']],[29744489,29744656,14131569,['']],[5240856,5240857,95799,[485650,'']],[5240856,5240857,22651490,['']],[2190563,6869299,96054,[49167247,'']],[2190563,6869299,25614168,[49167247,'']],[2190563,6869299,20211532,['']],[32061749,32062060,96117,[49167247,'']],[32061749,32062060,70548627,[49167247,'']],[32061749,32062060,17840226,[49167247,'']],[32061749,32062060,89238376,[49167247,'']],[32061749,32062060,31316627,[49167247,'']],[94564,742432,20280070,['']],[94564,742432,166690890,['']],[94564,742432,187720599,['']],[2190563,6869299,3141846,[49167247,'']],[2190563,6869299,112269331,[49167247,'']],[2190563,6869299,95985,[49167247,'']],[2190563,6869299,31132283,[49167247,'']],[2190563,6869299,156426817,[49167247,'']],[94563,23642479,93895248,[49167247,'']],[94563,23642479,96054,[49167247,'']],[5240856,5240857,196707953,['']],[5240856,5240857,18740077,['']],[29744489,29744656,22652086,['']],[29744489,29744656,96060,['']],[29744489,29744656,54570550,['']],[29744489,29744656,10875595,['']],[94564,742432,887221,['']],[94564,742432,187723064,['']],[94564,742432,47775787,['']],[94564,742432,96027,['']],[29744489,29744656,54569407,['']],[29744489,29744656,5418941,['']],[29744489,29744656,96114,['']],[29744489,29744656,95838,['']],[29744489,29744656,9762236,['']],[29744489,29744656,115827417,['']],[29744489,29744656,21812002,['']],[29744489,29744656,18836399,['']],[94562,5107542,30155840,['']],[94564,50774520,10182660,[49167247,'']],[94564,50774520,65377170,[49167247,'']],[94564,50774520,25025831,[49167247,'']],[94563,94567,56929551,[49167247,'']],[2190563,6869299,56542162,[49167247,'']],[2190563,6869299,19457335,[49167247,'']],[2190563,6869299,56929551,[49167247,'']],[3140121,32144640,18836399,[49167247,'']],[94564,742432,95787,['']],[94564,742432,1766175,['']],[94564,742432,96006,['']],[94563,94567,9316940,[49167247,'']],[94563,94567,95757,[49167247,'']],[94564,3398752,96132,[49167247,'']],[94564,3398752,8727419,[49167247,'']],[94563,23642479,25025831,[49167247,'']],[94563,23642479,23384410,[49167247,'']],[2968515,9878842,45864301,[485650,'']],[5240856,5240857,181585710,[485650,'']],[5240856,5240857,20477359,['']],[29744489,29744656,125483962,['']],[29744489,29744656,33958015,['']],[29744489,29744656,47812489,['']],[29744489,29744656,47812489,['']],[29744489,29744656,1836168,['']],[29744489,29744656,97700254,['']],[29744489,29744656,45859123,['']],[29744489,29744656,5039574,['']],[29744489,29744656,112269331,['']],[29744489,29744656,984840,['']],[29744489,29744656,101117995,['']],[29744489,29744656,95724,['']],[29744489,29744656,93218667,['']],[29744489,29744656,87249392,['']],[29744489,29744656,9658734,['']],[2968515,9878842,46593640,[485650,'']],[3140121,32144640,88262852,[485650,49167247,'']],[3140121,32144640,6785838,[485650,49167247,'']],[5240856,5240857,30155840,[485650,'']],[94565,18942988,95928,[485650,'']],[94565,18942988,22652086,[485650,'']],[94565,18942988,9658734,[485650,'']],[94565,18942988,112434135,[485650,'']],[94565,18942988,45864579,[485650,'']],[94565,18942988,96132,[485650,'']],[94565,18942988,5039574,[485650,'']],[94565,18942988,75776153,[485650,'']],[94565,18942988,12121729,[485650,'']],[94565,18942988,156426817,[485650,'']],[94565,18942988,6083193,[485650,'']],[94565,18942988,25614168,[485650,'']],[94565,18942988,5418941,[485650,'']],[94565,18942988,26996052,[485650,'']],[94565,18942988,31132283,[485650,'']],[94565,18942988,7229934,[485650,'']],[94565,18942988,18740077,[485650,'']],[94565,18942988,53671493,[485650,'']],[94565,18942988,46593640,[485650,'']],[94565,18942988,88267323,[485650,'']],[94565,18942988,80910470,[485650,'']],[94565,18942988,761641,[485650,'']],[94565,18942988,27536239,[485650,'']],[94565,18942988,17840226,[485650,'']],[32061749,32062060,105369674,['']],[94563,94567,1915590,[49167247,'']],[94563,94567,96027,[49167247,'']],[94563,94567,96006,['']],[94563,94567,1114156,[49167247,'']],[94564,50774520,49357567,[49167247,'']],[94564,50774520,171203729,[49167247,'']],[94564,50774520,38931024,[49167247,'']],[2968515,1014543,6083193,[485650,'']],[94563,23642479,88262852,['']],[94563,23642479,198357292,[49167247,'']],[2968515,1014543,95799,[485650,49167247,'']],[2968515,1014543,96123,[485650,'']],[5240856,5240857,2713713,['']],[5240856,5240857,96027,[485650,'']],[5240856,5240857,6083193,[485650,'']],[5240856,5240857,91280347,['']],[5240856,5240857,45859123,['']],[5240856,5240857,27536239,[485650,'']],[3140121,32144640,96132,[49167247,'']],[3140121,32144640,6917255,[49167247,'']],[94564,742432,22260169,[49167247,'']],[94564,742432,96015,['']],[94564,742432,21812002,['']],[94564,742432,46593640,['']],[94564,742432,160377287,['']],[94564,742432,187713011,['']],[94564,742432,26996052,['']],[94564,742432,47805030,['']],[94564,742432,18740077,['']],[94564,742432,6278774,['']],[94564,742432,5418941,['']],[94564,742432,150540185,['']],[94564,742432,57755683,['']],[94564,742432,10875104,['']],[2190563,6869299,136519695,['']],[2190563,6869299,75776153,[49167247,'']],[2190563,6869299,42050048,[49167247,'']],[94564,742432,96036,['']],[94564,742432,56417518,['']],[94563,94567,36560652,[49167247,'']],[94563,94567,9931207,[49167247,'']],[94563,94567,1096024,[49167247,'']],[94563,94567,25250035,[49167247,'']],[94563,94567,95545384,[49167247,'']],[94563,94567,5418941,[49167247,'']],[94563,94567,199218712,[49167247,'']],[94563,94567,10875104,[49167247,'']],[94563,94567,199215703,[49167247,'']],[29744489,29744656,25614168,['']],[29744489,29744656,95997,['']],[29744489,29744656,88263445,['']],[29744489,29744656,95853,['']],[29744489,29744656,95964,['']],[29744489,29744656,199218712,['']],[29744489,29744656,10898138,['']],[29744489,29744656,45908281,['']],[5240856,5240857,45096524,['']],[5240856,5240857,1836168,[485650,'']],[5240856,5240857,5418941,['']],[5240856,5240857,81343210,[485650,'']],[5240856,5240857,20540862,['']],[29744489,29744656,95928,['']],[29744489,29744656,5427294,['']],[29744489,29744656,480098,['']],[32061749,32062060,56417518,[49167247,'']],[32061749,32062060,110562134,[49167247,'']],[32061749,32062060,46593640,[49167247,'']],[32061749,32062060,13933458,[49167247,'']],[32061749,32062060,95985,[49167247,'']],[2190563,6869299,96033,[49167247,'']],[2190563,6869299,10182660,[49167247,'']],[2190563,6869299,90754821,[49167247,'']],[2190563,6869299,95973,[49167247,'']],[2190563,6869299,42279678,[49167247,'']],[94563,23642479,156428695,[49167247,'']],[2968515,1014543,6785838,[485650,'']],[2968515,1014543,47805030,['']],[94564,50774520,1114156,[49167247,'']],[2190563,6869299,737380,[49167247,'']],[94562,5107542,124877416,['']],[94562,5107542,175955190,['']],[2190563,6869299,27536239,[49167247,'']],[2190563,6869299,13933458,[49167247,'']],[2190563,6869299,6591148,[49167247,'']],[2190563,6869299,96150,[49167247,'']],[2190563,6869299,7229934,[49167247,'']],[94564,2870368,22260169,['']],[94564,50774520,45859123,[49167247,'']],[94563,23642479,46593640,[49167247,'']],[94563,23642479,96060,[49167247,'']],[94563,23642479,54809085,[49167247,'']],[94563,23642479,91278590,['']],[94563,94567,22651490,[49167247,'']],[94563,94567,95838,[49167247,'']],[94564,2870368,12574573,['']],[94564,2870368,25614168,['']],[94564,2870368,20692600,['']],[94563,94567,46005856,[49167247,'']],[94563,94567,95913,[49167247,'']],[94563,94567,18836399,[49167247,'']],[94563,94567,96054,[49167247,'']],[94564,742432,102311991,['']],[94564,742432,98330166,[49167247,'']],[94564,742432,95880,[49167247,'']],[94564,742432,1836168,['']],[94564,742432,2047196,[49167247,'']],[94564,742432,96132,[49167247,'']],[94564,742432,19542346,[49167247,'']],[94564,742432,31316627,[49167247,'']],[94564,3398752,22260169,[49167247,'']],[94564,3398752,5418941,[49167247,'']],[3140121,32144640,10875104,[49167247,'']],[3140121,32144640,23384410,['']],[3140121,32144640,112434135,[485650,49167247,'']],[3140121,32144640,56417518,[49167247,'']],[3140121,32144640,9316940,[485650,49167247,'']],[3140121,32144640,20481372,[49167247,'']],[94564,3398752,176006043,[49167247,'']],[94564,3398752,8726714,[49167247,'']],[2190563,6869299,25171877,[49167247,'']],[2190563,6869299,95545384,[49167247,'']],[4264850,4264865,12574573,[49167247,'']],[4264850,4264865,47775787,[49167247,'']],[4264850,4264865,115827417,[49167247,'']],[4264850,4264865,150534643,[49167247,'']],[29744489,54807456,95997,['']],[94564,742432,36645181,['']],[4264850,4264865,167743477,[49167247,'']],[94564,3398752,45864301,[49167247,'']],[94564,3398752,105366880,[49167247,'']],[94564,3398752,15836345,[49167247,'']],[94564,3398752,2807306,[49167247,'']],[94564,3398752,96060,[49167247,'']],[94562,5107542,6606675,['']],[2968515,1014543,25025831,[485650,'']],[2968515,1014543,20685413,['']],[2968515,1014543,27454556,[485650,'']],[2968515,1014543,45859123,['']],[2968515,1014543,95802,['']],[94562,5107542,199218712,['']],[94562,5107542,5039574,['']],[5240856,5240857,56542162,[49167247,'']],[4264850,55604681,109248369,[49167247,'']],[94563,94567,59912153,[49167247,'']],[94563,94567,23384410,[49167247,'']],[94563,94567,16270266,[49167247,'']],[94563,94567,6785838,['']],[94563,94567,112269331,[49167247,'']],[94564,3398752,6083193,[49167247,'']],[4264850,4264865,33958015,[49167247,'']],[4264850,4264865,891860,[49167247,'']],[4264850,4264865,5039574,[49167247,'']],[4264850,55604681,95799,[49167247,'']],[4264850,55604681,6591148,[49167247,'']],[4264850,55604681,57756637,[49167247,'']],[4264850,55604681,49271126,[49167247,'']],[29744489,54807456,73267008,[49167247,'']],[94562,5107542,1915590,['']],[94562,5107542,6083193,['']],[94562,5107542,27536914,['']],[94563,94567,22260169,[49167247,'']],[94563,94567,5427294,[49167247,'']],[94563,94567,136519695,[49167247,'']],[94563,94567,27536914,[49167247,'']],[94563,94567,110562134,[49167247,'']],[94564,3398752,95799,[49167247,'']],[94564,3398752,5027757,[49167247,'']],[94564,3398752,187725180,[49167247,'']],[94563,94567,181587492,[49167247,'']],[94562,5107542,91278590,['']],[94563,23642479,3428226,[49167247,'']],[29744489,54807456,1915590,[49167247,'']],[29744489,54807456,5418941,[49167247,'']],[29744489,54807456,91278590,[49167247,'']],[94564,3398752,16398311,[49167247,'']],[94562,5107542,95997,['']],[94562,5107542,190175618,['']],[94564,3398752,1259648,[49167247,'']],[94564,3398752,46593640,['']],[94562,5107542,162593799,['']],[94563,64790058,45859123,[49167247,'']],[94563,94567,102311991,[49167247,'']],[94563,94567,6917255,[49167247,'']],[29744489,54807456,46593640,[49167247,'']],[2190563,6869299,23384410,[49167247,'']],[2190563,6869299,54809085,[49167247,'']],[94563,94567,26645965,[49167247,'']],[94564,742432,42051284,[49167247,'']],[94565,24497839,95802,['']],[3140121,32144640,6083193,[49167247,'']],[94564,2870368,88262852,['']],[94564,2870368,199242956,['']],[94564,2870368,95799,['']],[94564,2870368,73267008,['']],[2190563,9876627,96060,[49167247,'']],[2190563,9876627,12574573,[49167247,'']],[2190563,9876627,88263445,[49167247,'']],[2190563,6869299,13933458,[49167247,'']],[2190563,6869299,19970676,[49167247,'']],[2190563,6869299,93748485,[49167247,'']],[2190563,6869299,742377,[49167247,'']],[2190563,6869299,88267323,[49167247,'']],[2190563,6869299,17840226,[49167247,'']],[2190563,6869299,6960238,[49167247,'']],[94563,64790058,480098,[49167247,'']],[94563,64790058,95799,[49167247,'']],[94563,64790058,22260169,[49167247,'']],[94563,64790058,162593799,[49167247,'']],[94563,64790058,3141846,[49167247,'']],[5240856,5240857,9316940,[49167247,'']],[5240856,5240857,163091559,[49167247,'']],[4264850,4264865,25614168,[49167247,'']],[5240856,5240857,88262852,[49167247,'']],[5240856,5240857,115830213,[49167247,'']],[94563,64790058,33958015,[49167247,'']],[94563,64790058,88262852,[49167247,'']],[94563,64790058,37870556,[49167247,'']],[94563,94567,95988,[49167247,'']],[94563,94567,20691984,[49167247,'']],[94563,94567,156370974,[49167247,'']],[94563,94567,28239989,[49167247,'']],[94563,94567,175955190,[49167247,'']],[94563,94567,105369674,[49167247,'']],[94563,94567,150534643,[49167247,'']],[94563,94567,1820764,[49167247,'']],[4264850,4264865,25614493,[49167247,'']],[4264850,4264865,199218712,[49167247,'']],[4264850,4264865,93748485,[49167247,'']],[4264850,4264865,137048507,[49167247,'']],[4264850,4264865,93895248,[49167247,'']],[4264850,4264865,23384410,[49167247,'']],[4264850,4264865,5418941,[49167247,'']],[4264850,4264865,89238376,[49167247,'']],[4264850,4264865,10898138,[49167247,'']],[4264850,4264865,93218667,[49167247,'']],[5240856,5240857,101117995,[49167247,'']],[3140121,32144640,95997,['']],[2190563,6869299,109248369,[49167247,'']],[2190563,6869299,181585710,[49167247,'']],[2190563,6869299,80910470,[49167247,'']],[2190563,6869299,53025095,[49167247,'']],[2190563,6869299,199215703,[49167247,'']],[94563,64790058,36561100,[49167247,'']],[94563,64790058,95541017,[49167247,'']],[94563,94567,109248369,[49167247,'']],[94563,94567,891860,[49167247,'']],[94563,94567,46593640,[49167247,'']],[5240856,5240857,88263445,[49167247,'']],[5240856,5240857,18836399,[49167247,'']],[5240856,5240857,6917255,[49167247,'']],[5240856,5240857,35143620,[49167247,'']],[94563,64790058,31132283,[49167247,'']],[94563,64790058,196698895,[49167247,'']],[94563,64790058,18836399,[49167247,'']],[94563,64790058,47812489,[49167247,'']],[5240856,5240857,98330166,['']],[5240856,5240857,12574573,[49167247,'']],[3140121,32144640,98330166,[49167247,'']],[2968515,1014543,156370974,['']],[2968515,1014543,25614168,['']],[2190563,6869299,95859,[49167247,'']],[2190563,6869299,115830860,[49167247,'']],[2190563,6869299,761641,[49167247,'']],[2190563,6869299,28239989,[49167247,'']],[94564,742432,162593799,['']],[94564,742432,27536239,[49167247,'']],[94564,742432,93895248,[49167247,'']],[94564,742432,183774850,['']],[94564,742432,45864579,[49167247,'']],[94564,742432,20540862,[49167247,'']],[94564,742432,162609513,[49167247,'']],[94564,742432,181587492,[49167247,'']],[94564,742432,95799,[49167247,'']],[4264850,55604681,6083193,[49167247,'']],[4264850,55604681,115828924,[49167247,'']],[4264850,55604681,73267008,[49167247,'']],[4264850,55604681,1915590,[49167247,'']],[4264850,55604681,47805030,[49167247,'']],[5240856,5240857,59912153,[49167247,'']],[5240856,5240857,23384410,['']],[5240856,5240857,65377170,[49167247,'']],[5240856,5240857,6960238,[49167247,'']],[5240856,5240857,19542346,[49167247,'']],[5240856,5240857,31953229,['']],[5240856,5240857,6083193,[49167247,'']],[5240856,5240857,5039574,[49167247,'']],[5240856,5240857,17840226,[49167247,'']],[5240856,5240857,31132283,[49167247,'']],[94563,94567,88921039,[49167247,'']],[94563,94567,14131569,[49167247,'']],[94563,94567,18740077,[49167247,'']],[94563,94567,124877416,[49167247,'']],[94563,94567,42051284,[49167247,'']],[94563,94567,183774850,[49167247,'']],[94563,94567,96114,[49167247,'']],[94563,94567,6960238,[49167247,'']],[94563,94567,132937672,[49167247,'']],[94563,94567,20280070,[49167247,'']],[94563,94567,1835925,[49167247,'']],[94563,94567,196698895,[49167247,'']],[94563,94567,162609513,[49167247,'']],[94563,64790058,18740077,[49167247,'']],[94563,64790058,88263445,[49167247,'']],[94563,64790058,6278774,[49167247,'']],[94563,64790058,57755683,[49167247,'']],[94563,64790058,45864301,[49167247,'']],[2190563,6869299,22260169,[49167247,'']],[2190563,6869299,187713011,[49167247,'']],[2190563,6869299,90754821,[49167247,'']],[2190563,6869299,176006043,[49167247,'']],[2190563,6869299,20691984,[49167247,'']],[2190563,6869299,97700254,[49167247,'']],[2190563,6869299,1836168,[49167247,'']],[2190563,6869299,150540185,[49167247,'']],[2190563,6869299,46591219,[49167247,'']],[5240856,5240857,1096024,['']],[5240856,5240857,12626279,['']],[5240856,5240857,22260169,[49167247,'']],[4264850,55604681,7613283,[49167247,'']],[94564,742432,105366880,[49167247,'']],[94564,742432,93211010,[49167247,'']],[94564,742432,90754821,[49167247,'']],[94564,742432,19015423,['']],[94564,742432,4268350,[49167247,'']],[94563,94567,88267323,[49167247,'']],[94563,94567,57755683,[49167247,'']],[94563,94567,95931,[49167247,'']],[94563,94567,95213867,[49167247,'']],[94563,94567,93895248,[49167247,'']],[94563,64790058,109248369,[49167247,'']],[94563,64790058,4863459,[49167247,'']],[94563,64790058,99831006,[49167247,'']],[94563,64790058,17840226,[49167247,'']],[94563,64790058,207719430,[49167247,'']],[3140121,32144640,10182660,['']],[2968515,1014543,107771475,['']],[2968515,1014543,1851496,['']],[2968515,1014543,56417518,['']],[2968515,1014543,88262852,['']],[2968515,1014543,49271476,['']],[2190563,6869299,26824224,[49167247,'']],[2190563,6869299,96123,[49167247,'']],[2190563,6869299,5039574,[49167247,'']],[2190563,6869299,6917255,[49167247,'']],[2190563,6869299,95940,[49167247,'']],[2190563,6869299,91278590,[49167247,'']],[2190563,6869299,73267008,[49167247,'']],[2190563,6869299,49271012,[49167247,'']],[32061749,68438186,1820764,['']],[32061749,68438186,115828924,['']],[32061749,68438186,737380,['']],[32061749,68438186,162593799,['']],[94564,742432,112919368,[49167247,'']],[94564,742432,25614168,[49167247,'']],[94564,742432,95213867,[49167247,'']],[94564,742432,88262852,[49167247,'']],[94564,742432,45859123,[49167247,'']],[94564,742432,123322424,[49167247,'']],[94564,742432,22651490,[49167247,'']],[94564,742432,91280347,[49167247,'']],[94564,742432,112434135,[49167247,'']],[94564,742432,14131569,[49167247,'']],[4264850,4264865,12574573,[49167247,'']],[4264850,4264865,112919368,[49167247,'']],[4264850,4264865,22652086,[49167247,'']],[4264850,4264865,20481372,[49167247,'']],[4264850,4264865,158669006,[49167247,'']],[94564,2870368,90754821,['']],[94564,2870368,160377287,['']],[94563,64790058,20477359,[49167247,'']],[94563,64790058,8726714,[49167247,'']],[94563,64790058,61551219,[49167247,'']],[94563,64790058,93218667,[49167247,'']],[94563,64790058,137048507,[49167247,'']],[94563,64790058,2713713,[49167247,'']],[3140121,32144640,115835598,[49167247,'']],[5240856,5240857,16270266,[49167247,'']],[5240856,5240857,96054,[49167247,'']],[5240856,5240857,25171877,[49167247,'']],[2968515,1014543,98495942,['']],[94564,2870368,5418941,['']],[94564,2870368,13933458,[49167247,'']],[94564,2870368,95799,['']],[94564,3398752,12626279,[49167247,'']],[2968515,1014543,96060,['']],[94564,742432,16270762,[49167247,'']],[94564,742432,231571778,[49167247,'']],[94564,742432,9316940,[49167247,'']],[94564,742432,12121729,[49167247,'']],[94564,742432,44512666,[49167247,'']],[94564,742432,42279678,[49167247,'']],[94564,742432,140708526,[49167247,'']],[94564,742432,132937672,[49167247,'']],[94564,742432,46005856,[49167247,'']],[94564,742432,163091559,[49167247,'']],[5240856,5240857,10875104,[49167247,'']],[94563,64790058,149710350,[49167247,'']],[94563,64790058,22384260,[49167247,'']],[94563,64790058,23384410,[49167247,'']],[94563,64790058,124802272,[49167247,'']],[94563,64790058,123322424,[49167247,'']],[94564,742432,105369674,[49167247,'']],[94564,742432,19970676,[49167247,'']],[94564,742432,21250748,[49167247,'']],[94564,742432,51781636,['']],[94564,3398752,95865,[49167247,'']],[94563,64790058,57756637,[49167247,'']],[94563,64790058,22652086,[49167247,'']],[94563,64790058,93208196,[49167247,'']],[94563,64790058,96132,[49167247,'']],[94563,64790058,5418941,[49167247,'']],[32061749,68438186,28043312,['']],[32061749,68438186,5418941,['']],[32061749,68438186,18740077,['']],[32061749,68438186,6606675,['']],[32061749,68438186,96132,['']],[32061749,68438186,8727419,['']],[32061749,68438186,21812002,['']],[32061749,68438186,149710350,['']],[32061749,68438186,80910470,['']],[32061749,68438186,45908281,['']],[2968515,1014543,6917255,[49167247,'']],[94563,64790058,12574573,[49167247,'']],[94563,64790058,154331682,[49167247,'']],[94563,64790058,5039574,[49167247,'']],[94563,64790058,10875595,[49167247,'']],[94563,64790058,6083193,[49167247,'']],[94564,3398752,95820,[49167247,'']],[94564,3398752,6901459,[49167247,'']],[3140121,32144640,80910470,[49167247,'']],[94563,45910234,61551219,[49167247,'']],[94563,45910234,1114156,[49167247,'']],[94563,45910234,158669006,[49167247,'']],[94563,45910234,175955190,[49167247,'']],[94563,45910234,23384410,[49167247,'']],[94563,45910234,95937,[49167247,'']],[2190563,6869299,42770646,[49167247,'']],[2190563,6869299,9658734,[49167247,'']],[2190563,6869299,95799,[49167247,'']],[2190563,6869299,150534643,[49167247,'']],[2190563,6869299,105366880,[49167247,'']],[2190563,6869299,162593799,[49167247,'']],[2190563,6869299,32427623,[49167247,'']],[2190563,6869299,23384410,[49167247,'']],[2190563,6869299,46593640,[49167247,'']],[2190563,6869299,107771475,[49167247,'']],[2190563,6869299,17840226,[49167247,'']],[2190563,6869299,96114,[49167247,'']],[2190563,6869299,1086501,[49167247,'']],[2190563,6869299,95539097,[49167247,'']],[29744489,155320179,88262852,[49167247,'']],[29744489,155321731,6083193,[49167247,'']],[94563,45910234,81343210,[49167247,'']],[94563,45910234,6083193,[49167247,'']],[94563,45910234,95730,[49167247,'']],[94563,45910234,22260169,[49167247,'']],[94563,45910234,95928,[49167247,'']],[94563,45910234,29255314,[49167247,'']],[94563,45910234,156428695,[49167247,'']],[94563,45910234,96117,[49167247,'']],[94563,45910234,137048507,[49167247,'']],[94563,45910234,10182660,[49167247,'']],[94563,45910234,93211010,[49167247,'']],[94563,45910234,123322424,[49167247,'']],[94563,45910234,488558,[49167247,'']],[94563,45910234,95880,[49167247,'']],[94563,45910234,96027,[49167247,'']],[94564,3398752,161005119,[49167247,'']],[94564,3398752,89238376,[49167247,'']],[94564,3398752,117021374,['']],[2190563,6869299,7613283,[49167247,'']],[94564,3398752,199242956,[49167247,'']],[94564,3398752,51781636,[49167247,'']],[94564,3398752,165099717,[49167247,'']],[94564,3398752,742377,[49167247,'']],[94564,3398752,18836399,[49167247,'']],[94564,3398752,25614168,[49167247,'']],[94564,3398752,25250035,[49167247,'']],[94564,3398752,95997,[49167247,'']],[94564,3398752,15162046,[49167247,'']],[94564,3398752,19457335,[49167247,'']],[94563,64790058,16270762,[49167247,'']],[94563,64790058,6917255,[49167247,'']],[94563,64790058,14131569,[49167247,'']],[94563,64790058,181585710,[49167247,'']],[94563,64790058,73267008,[49167247,'']],[94563,45910234,20691984,[49167247,'']],[94563,45910234,50272338,[49167247,'']],[94563,45910234,95799,[49167247,'']],[94563,45910234,162593799,[49167247,'']],[94563,163026706,12309893,[49167247,'']],[29744489,155321731,190175618,[49167247,'']],[29744489,155321731,16270762,[49167247,'']],[29744489,155321731,1915590,[49167247,'']],[29744489,155321731,162593799,[49167247,'']],[29744489,155321731,140708526,[49167247,'']],[29744489,155321731,25614168,[49167247,'']],[29744489,155321731,95799,[49167247,'']],[29744489,155321731,167743477,[49167247,'']],[29744489,155321731,93211010,[49167247,'']],[29744489,155320179,95799,[49167247,'']],[29744489,155320179,167743477,[49167247,'']],[29744489,155320179,199218712,[49167247,'']],[29744489,155320179,169746108,[49167247,'']],[29744489,155320179,95541017,[49167247,'']],[29744489,155320179,166690890,[49167247,'']],[29744489,155320179,95865,[49167247,'']],[29744489,155320179,174882621,[49167247,'']],[2190563,6869299,19015423,[49167247,'']],[2190563,6869299,6083193,[49167247,'']],[2190563,6869299,154331682,[49167247,'']],[2190563,6869299,51781636,[49167247,'']],[2190563,6869299,3428226,['']],[2190563,6869299,70548627,[49167247,'']],[2190563,6869299,163090059,[49167247,'']],[2190563,6869299,169746108,[49167247,'']],[2190563,6869299,169746108,[49167247,'']],[2190563,6869299,4863459,[49167247,'']],[2190563,6869299,93748485,[49167247,'']],[2190563,6869299,28043312,[49167247,'']],[2190563,6869299,95928,[49167247,'']],[2190563,6869299,10898138,[49167247,'']],[2190563,6869299,52213769,[49167247,'']],[2190563,6869299,96117,[49167247,'']],[2190563,6869299,166690890,[49167247,'']],[2190563,6869299,117021374,['']],[2190563,6869299,61551219,[49167247,'']],[2190563,6869299,80061893,[49167247,'']],[94563,45910234,56417518,[49167247,'']],[94563,45910234,88262852,[49167247,'']],[94563,45910234,29164100,[49167247,'']],[94563,45910234,109248369,[49167247,'']],[94563,45910234,10875104,[49167247,'']],[94563,45910234,45864579,[49167247,'']],[94563,45910234,20692600,[49167247,'']],[94563,45910234,17840226,[49167247,'']],[94563,45910234,171203729,[49167247,'']],[94563,163026706,3450662,[49167247,'']],[94564,3398752,10875104,[49167247,'']],[94564,3398752,95778,[49167247,'']],[94564,3398752,95931,['']],[94564,3398752,27536239,['']],[94564,3398752,12309893,[49167247,'']],[4264850,4264865,96060,[49167247,'']],[2190563,6869299,65377170,[49167247,'']],[2190563,6869299,105369674,[49167247,'']],[2190563,6869299,20692600,[49167247,'']],[2190563,6869299,196707953,['']],[2190563,6869299,93208196,[49167247,'']],[2190563,6869299,113835360,[49167247,'']],[2190563,6869299,181585710,[49167247,'']],[2190563,6869299,207719430,[49167247,'']],[2190563,6869299,686638,[49167247,'']],[2190563,6869299,9658734,[49167247,'']],[2190563,6869299,6785838,[49167247,'']],[2190563,6869299,53671493,[49167247,'']],[2190563,6869299,115830213,[49167247,'']],[2190563,6869299,1820764,[49167247,'']],[2190563,6869299,19542346,[49167247,'']],[2190563,6869299,20280070,[49167247,'']],[2190563,6869299,174882621,[49167247,'']],[2190563,6869299,165107084,[49167247,'']],[2190563,6869299,36561100,[49167247,'']],[2190563,6869299,45864301,[49167247,'']],[94563,94567,73267008,['']],[94563,45910234,5395263,[49167247,'']],[94563,45910234,160377287,[49167247,'']],[94563,45910234,19970676,[49167247,'']],[94563,45910234,45859123,[49167247,'']],[94563,45910234,16270762,[49167247,'']],[2190563,6869299,95724,[49167247,'']],[2190563,6869299,95541017,[49167247,'']],[2190563,6869299,44512666,[49167247,'']],[2190563,6869299,187733114,[49167247,'']],[2190563,6869299,190175618,[49167247,'']],[2190563,6869299,5418941,[49167247,'']],[2190563,6869299,187725180,[49167247,'']],[2190563,6869299,12574573,[49167247,'']],[2190563,6869299,136519695,[49167247,'']],[2190563,6869299,187720599,[49167247,'']],[2190563,6869299,11897623,[49167247,'']],[2190563,6869299,158669006,[49167247,'']],[2190563,6869299,156428695,[49167247,'']],[2190563,6869299,49271476,[49167247,'']],[2190563,6869299,49271126,[49167247,'']],[2190563,6869299,162611386,[49167247,'']],[2190563,6869299,16721072,[49167247,'']],[2190563,6869299,45096524,[49167247,'']],[2190563,6869299,187723064,[49167247,'']],[2190563,6869299,42050048,[49167247,'']],[94564,3398752,95898,[49167247,'']],[94564,3398752,88921039,[49167247,'']],[94564,3398752,162593799,[49167247,'']],[94563,94567,53025095,[49167247,'']],[94563,94567,125483962,[49167247,'']],[94563,94567,5039574,[49167247,'']],[94563,94567,98495942,[49167247,'']],[94563,94567,13933458,[49167247,'']],[94563,94567,7613283,[49167247,'']],[94563,94567,6083193,[49167247,'']],[94563,94567,96150,[49167247,'']],[94563,94567,53671493,[49167247,'']],[94563,94567,165107084,[49167247,'']],[94564,2870368,17840226,[49167247,'']],[94564,2870368,10875104,[49167247,'']],[94564,2870368,6083193,[49167247,'']],[94563,163026706,30155840,[49167247,'']],[94563,163026706,196733252,[49167247,'']] ]; // local array of makes and models so we can tell which is which var mks_mos = [[3140121,1],[22855272,0],[32144640,0],[2968515,1],[1014543,0],[9878842,0],[94562,1],[5107542,0],[94563,1],[94567,0],[45910234,0],[64790058,0],[33798998,0],[23642479,0],[163026706,0],[2190563,1],[6869299,0],[9876627,0],[29744489,1],[54807456,0],[155320179,0],[155321731,0],[29744656,0],[4264850,1],[4264866,0],[4264865,0],[55604681,0],[32061749,1],[68438186,0],[32062060,0],[94564,1],[742432,0],[3398752,0],[2870368,0],[50774520,0],[94565,1],[18942988,0],[24497839,0],[5240856,1],[5240857,0]]; // get a local set of ids for the amenities (we dont really need the description, unless // we want to get really fancy and have the form adjust itself based on selections made // (only show relevant body styles / amenities / neighborhoods based on the chosen make/model) var amenities = [49167247,485650]; // get a local set of ids for the styles so we can easily figure out what styles are needed var styles = [8577467,8577468,142802904,8586495,8577471,8577470,8577472,8577473]; // get a local mapping of locations to location groups. this allows us to trim accordion // results by neighborhood. var lgmap = [[95859,96166],[96027,96166],[1851496,96166],[6083193,96166],[6785838,96166],[7229934,96166],[10875104,96166],[19015423,96166],[25025831,96166],[27454556,96166],[36560652,96166],[36645181,96166],[37870556,96166],[45864301,96166],[46593640,96166],[47775787,96166],[183774850,96166],[196733252,96166],[96027,96167],[96036,96167],[984840,96167],[1766175,96167],[6785838,96167],[6917255,96167],[9316940,96167],[10875104,96167],[19457335,96167],[19542346,96167],[25614493,96167],[26996052,96167],[27536914,96167],[35143620,96167],[42050048,96167],[42279678,96167],[45859123,96167],[46593640,96167],[59912153,96167],[161005119,96167],[95931,96168],[95997,96168],[96132,96168],[1915590,96168],[5039574,96168],[16270266,96168],[80910470,96168],[81343210,96168],[88262852,96168],[112919368,96168],[199215703,96168],[95973,96170],[95997,96170],[96054,96170],[96132,96170],[10182660,96170],[10875595,96170],[47805030,96170],[162593799,96170],[95730,96172],[95802,96172],[95928,96172],[95940,96172],[96114,96172],[96123,96172],[480098,96172],[1086501,96172],[1836168,96172],[6278774,96172],[14131569,96172],[25250035,96172],[26645965,96172],[26824224,96172],[46005856,96172],[49357567,96172],[55272735,96172],[73267008,96172],[93211010,96172],[93218667,96172],[97700254,96172],[105366880,96172],[117021374,96172],[156426817,96172],[181587492,96172],[190175618,96172],[95778,96175],[95802,96175],[96150,96175],[488558,96175],[1096024,96175],[1114156,96175],[1820764,96175],[1836168,96175],[6278774,96175],[6901459,96175],[20211532,96175],[21250748,96175],[27536239,96175],[31953229,96175],[42770646,96175],[45908281,96175],[50272338,96175],[54809085,96175],[98495942,96175],[109248369,96175],[124802272,96175],[132937672,96175],[165099717,96175],[187713011,96175],[187725180,96175],[95787,96176],[95820,96176],[95838,96176],[95880,96176],[96006,96176],[96015,96176],[737380,96176],[742377,96176],[2047196,96176],[6591148,96176],[6606675,96176],[7613283,96176],[57755683,3519821],[57756637,3519821],[61551219,3519821],[107771475,3519821],[163090059,3519821],[4268350,10898288],[9658734,10898288],[10898138,10898288],[38931024,10898288],[199242956,10898288],[95880,96187],[891860,96187],[9931207,96187],[22260169,96187],[54569407,96187],[54570550,96187],[87249392,96187],[136519695,96187],[199218712,96187],[207719430,96187],[47812489,49424181],[16721072,49591212],[49271012,49591212],[49271126,49591212],[95539097,49591212],[44512666,51657931],[49271476,51657931],[51781636,51657931],[102311991,51657931],[140708526,51657931],[9762236,1451951],[12121729,1451951],[16270762,1451951],[33958015,1451951],[36561100,1451951],[42051284,1451951],[154331682,1451951],[171203729,1451951],[187733114,1451951],[5427294,1876993],[42770646,1876993],[56929551,1876993],[95213867,1876993],[113835360,1876993],[198357292,1876993],[95787,2019900],[95865,2019900],[95964,2019900],[95985,2019900],[96015,2019900],[3428226,2019900],[5395263,2019900],[6591148,2019900],[12574573,2019900],[16398311,2019900],[16721072,2019900],[20691984,2019900],[22384260,2019900],[22651490,2019900],[22652086,2019900],[32427623,2019900],[45864579,2019900],[46591219,2019900],[52213769,2019900],[80061893,2019900],[88267323,2019900],[110562134,2019900],[160377287,2019900],[162609513,2019900],[165107084,2019900],[167743477,2019900],[174882621,2019900],[176006043,2019900],[187720599,2019900],[2807306,2838953],[3450662,2838953],[15162046,2838953],[28239989,2838953],[29164100,2838953],[55272735,2838953],[162611386,2838953],[8726714,96176],[12574573,96176],[20477359,96176],[20481372,96176],[20540862,96176],[20685413,96176],[25171877,96176],[28043312,96176],[53671493,96176],[56542162,96176],[65377170,96176],[70548627,96176],[88921039,96176],[89238376,96176],[90754821,96176],[99831006,96176],[115827417,96176],[115828924,96176],[115830213,96176],[115830860,96176],[115835598,96176],[149710350,96176],[150534643,96176],[158669006,96176],[163091559,96176],[196707953,96176],[95730,96177],[95757,96177],[95799,96177],[95853,96177],[95865,96177],[95895,96177],[95898,96177],[95937,96177],[96033,96177],[96117,96177],[686638,96177],[761641,96177],[1259648,96177],[1439792,96177],[5027757,96177],[5418941,96177],[5869053,96177],[6901459,96177],[12309893,96177],[15836345,96177],[19970676,96177],[21812002,96177],[25614168,96177],[29255314,96177],[30155840,96177],[105369674,96177],[112269331,96177],[124877416,96177],[156370974,96177],[169746108,96177],[175955190,96177],[181585710,96177],[187723064,96177],[196698895,96177],[22108238,96178],[26645388,96178],[93748485,96178],[96060,96180],[1835925,96180],[53025095,96180],[70814083,96180],[123322424,96180],[95724,96182],[95730,96182],[95898,96182],[95988,96182],[887221,96182],[1086501,96182],[3105293,96182],[3141846,96182],[4863459,96182],[8727419,96182],[11897623,96182],[18740077,96182],[88263445,96182],[95541017,96182],[95545384,96182],[101117995,96182],[125483962,96182],[156428695,96182],[166690890,96182],[231571778,96182],[96060,96183],[96132,96183],[1835925,96183],[2713713,96183],[6960238,96183],[10875595,96183],[12626279,96183],[18836399,96183],[20280070,96183],[23384410,96183],[31132283,96183],[45096524,96183],[75776153,96183],[91278590,96183],[91280347,96183],[98330166,96183],[112434135,96183],[95880,96184],[95913,96184],[4268350,96184],[9658734,96184],[13933458,96184],[17840226,96184],[20692600,96184],[31316627,96184],[56417518,96184],[93208196,96184],[93895248,96184],[137048507,96184],[150540185,96184],[199242956,96184],[93748485,82770604]]; // get a local mapping of models to styles. this allows us to trim accordion results by style var stylemap = [[94567,8577471],[742432,8577473],[1014543,8577468],[2870368,8577472],[3398752,8586495],[4264865,8577473],[4264866,142802904],[5107542,8577470],[5240857,8577471],[6869299,8577471],[9876627,142802904],[9878842,8577467],[9878842,8577468],[18942988,8577471],[22855272,8577471],[24497839,142802904],[32062060,8577470],[32062060,8577473],[32144640,8577471],[33798998,8577470],[45910234,8577471],[45910234,8586495],[50774520,8577468],[54807456,8577471],[64790058,8577470],[155320179,8577471],[155320179,8586495],[155321731,8577471],[163026706,8586495],[163026706,142802904]]; // globals for finding your local address in the search box var closestaddr = new Object(); var firstaddr = new Object(); var addrstr; // TODO: right now, this just returns the coords for one address, // we should expand this to support multiple address geocoding function refreshCarsByAddress() { var addr = document.getElementById('gmaps-address').value; addrstr = addr; var new_addr; if (addr.match(/[ ]*/) != null && addr != "enter some or all of an address") { geocode(addrstr, function (p) { // see if this address is closer to the current fleet of a modified address is closer if (p) { firstaddr.lat = p.lat(); firstaddr.lng = p.lng(); } else { // this is kinda lame, but at least it is in the ocean firstaddr.lat = 0; firstaddr.lng = 0; } geocode(addrstr + ', Massachusetts', function (s) { var old_dist, new_dist, e; if (!s && (firstaddr.lat == 0 && firstaddr.lng == 0)) { closestaddr.lat = 0; closestaddr.lng = 0; } else if (!s) { closestaddr.lat = firstaddr.lat; closestaddr.lng = firstaddr.lng; } else if (firstaddr.lat == 0 && firstaddr.lng == 0) { closestaddr.lat = s.lat(); closestaddr.lng = s.lng(); } else { old_dist = Math.sqrt(Math.pow(firstaddr.lat - 42.35659154, 2) + Math.pow(firstaddr.lng - -71.10195647, 2)); new_dist = Math.sqrt(Math.pow(s.lat() - 42.35659154, 2) + Math.pow(s.lng() - -71.10195647, 2)); if (old_dist >= new_dist) { closestaddr.lat = s.lat(); closestaddr.lng = s.lng(); } else { closestaddr.lat = firstaddr.lat; closestaddr.lng = firstaddr.lng; } } if (!(closestaddr.lat == 0 && closestaddr.lng == 0)) { find_loc.in_progress = 1; find_loc.retry = 1; place_home(closestaddr.lat, closestaddr.lng); recenter(eval(find_loc.map), closestaddr.lat, closestaddr.lng, 16, 0); e = document.getElementById('location_group_id'); if (e) { e.selectedIndex = 0; } $('#new-type-filter').hide(); find_loc.in_progress = 0; refreshAccordion(find_loc); } else { alert("sorry, we couldn't find that address"); } }); }); } }