Labrador Posted September 24, 2007 Report Share Posted September 24, 2007 (edited) es vēlējos uzzināt tādu skriptu par distances mērīšanu.. (google meklēju neko labu neatradu).. tātad piemēram divi text boxi vai izvēlne starp vienu un pilsētu un otru.. un tad lejā tur uzrāda to distanci kilometros... <select name="select"> <option>Pilseta 1</option> </select> <select name="select2"> <option>Pilseta 2</option> </select> attālums: {pilseetu 1 un 2 attalums } Edited October 5, 2007 by Labrador Link to comment Share on other sites More sharing options...
andrisp Posted September 24, 2007 Report Share Posted September 24, 2007 Tev dati vispār ir par attālumiem ? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 24, 2007 Report Share Posted September 24, 2007 viss atkarigs kaadas mervieniibas tu tos datus vadiisi.... pareizi buutu : geografiskaas kordinaatees ... (tajas kas ir parverstas prieksh plaknes...) un taalak jau ir matimatiskie aprekjini ... vispar prieksh sadam lietaam ekssistee GIS .... tikai ... tas ir maksas produkts un nebuut ne leets.... (jebkuraa gadijumaa tev buus vajadzigas pilsetu kordinaates....) Link to comment Share on other sites More sharing options...
Labrador Posted September 24, 2007 Author Report Share Posted September 24, 2007 nu man vajag attalumu starp vienas pilseetas un otras kilometros Link to comment Share on other sites More sharing options...
Labrador Posted September 24, 2007 Author Report Share Posted September 24, 2007 Tev dati vispār ir par attālumiem ? kameer naw Link to comment Share on other sites More sharing options...
andrisp Posted September 24, 2007 Report Share Posted September 24, 2007 Ko nozīmē "kameer naw" ? Vienkāršākais veids (bet darbietilpīgs) būtu izveidot šādu tabulu: id | city1 | city2 | km Un tad ar rociņām pārakstīt datus no kaut kāda autoceļveža vai nez kurienes vēl. Ja tev būs 30 pilsētas, tad ierakstu skaits būs ~30*30 jeb 900. Tādu lērumu var arī nojūgties pārakstot. :) Link to comment Share on other sites More sharing options...
Labrador Posted September 24, 2007 Author Report Share Posted September 24, 2007 tak savaadaaki veidi naw?? Link to comment Share on other sites More sharing options...
andrisp Posted September 24, 2007 Report Share Posted September 24, 2007 Ir. rand(0,300). Link to comment Share on other sites More sharing options...
Labrador Posted September 24, 2007 Author Report Share Posted September 24, 2007 Ir. rand(0,300). nu un ko tas noziimee?? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 24, 2007 Report Share Posted September 24, 2007 (edited) tak savaadaaki veidi naw?? GIS .... erti un eleganti .... Pietam preciizi .... pat varesi ielikt starppunktus ..... --- Tu vispar pats saproti ko velies? Padomaa kaa izrekjinat atalumu no punkta A liidz punktam B ... ja kordinates nav dotas , ta vispar nav nekaads atskaites punkts? Ir kaadi risinajumi? Un kaa to pashu izdariit ja ir zinamas kordinates (dekarta) .... tad tas kljust par pamatskola geometrijas uzdevumu.... ------------- andrisp --> njaa sis tiesham ir pats vienkarsakais risinajums ;) Edited September 24, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
Labrador Posted September 24, 2007 Author Report Share Posted September 24, 2007 kur taadu lietu dabuut?? Link to comment Share on other sites More sharing options...
Delfins Posted September 24, 2007 Report Share Posted September 24, 2007 Vispirms ir jānodefinē ko grib dabūt - geogrāfisko vai maršruta. Es no Pārdaugavas caur Salaspili varu uz Juglu aizbraukt (un tā tiešām daži dara). Link to comment Share on other sites More sharing options...
Labrador Posted September 24, 2007 Author Report Share Posted September 24, 2007 (edited) nekaadas caurbraukshanas man nevajag... vajag piemeram Riga - Jelgava -- un apakshaa ar textu raada 47 Kilometri.. tieshaam newinens newar saprast manis teikto?? Edited September 24, 2007 by Labrador Link to comment Share on other sites More sharing options...
andrisp Posted September 24, 2007 Report Share Posted September 24, 2007 Labrador, man šķiet, ka tu vienīgais nesaproti, ko te runā. ;) Link to comment Share on other sites More sharing options...
Labrador Posted September 24, 2007 Author Report Share Posted September 24, 2007 Labrador, man šķiet, ka tu vienīgais nesaproti, ko te runā. ;) juus te man gribat iesmeereet kautkaadas koordinaatas man tos newajag.. man wajag attaalumu starp vienas pilseetas un otras!!!! Link to comment Share on other sites More sharing options...
Recommended Posts