The Following User Says Thank You to g0dzilla For This Useful Post: | ||
![]() |
2009-12-18
, 22:55
|
Posts: 883 |
Thanked: 980 times |
Joined on Jul 2007
@ Bern, Switzerland
|
#132
|
![]() |
2009-12-19
, 04:50
|
Posts: 86 |
Thanked: 10 times |
Joined on Nov 2009
|
#133
|
![]() |
2009-12-19
, 12:44
|
Posts: 78 |
Thanked: 36 times |
Joined on Nov 2009
@ Moscow
|
#134
|
var location1, location2 geocoder.getLocations(document.getElementById("address1").value, function (response) { if (!response || response.Status.code != 200) { alert("Sorry, we were unable to geocode the first address"); } else { location1 = {lat: response.Placemark[0].Point.coordinates[1], lon: response.Placemark[0].Point.coordinates[0], address: response.Placemark[0].address}; geocoder.getLocations(document.getElementById("address2").value, function (response) { if (!response || response.Status.code != 200) { alert("Sorry, we were unable to geocode the second address"); } else { location2 = {lat: response.Placemark[0].Point.coordinates[1], lon: response.Placemark[0].Point.coordinates[0], address: response.Placemark[0].address}; gdir.load('from: ' + location1.address + ' to: ' + location2.address); } }); } });
<input id="address1" name="address" size="14" type="textbox" value="Москва" class="fromto" onkeydown="if(event.keyCode==13){showAddress(16);}" onFocus="document.getElementById('address1').select();"> <input id="address2" name="to" size="14" type="text" value="Подольск" class="fromto" onkeydown="if(event.keyCode==13){setDirections()}" onFocus="document.getElementById('address2').select();">
![]() |
2009-12-19
, 14:37
|
Posts: 287 |
Thanked: 165 times |
Joined on Oct 2009
@ The Netherlands
|
#135
|
![]() |
2009-12-19
, 15:11
|
Posts: 968 |
Thanked: 974 times |
Joined on Nov 2008
@ Ohio
|
#136
|
hi everyone,
I am trying to run NAVIT program on my N900. so far its running fine. the interface is ok. Now I need to point the navit.xml file to my external memory where i have placed the map data file. I am new to xml and linux. have tried it but still no success. got the idea of from a website. any one can search it by putting "Navit for internet tablet".
![]() |
2009-12-20
, 22:36
|
Posts: 883 |
Thanked: 980 times |
Joined on Jul 2007
@ Bern, Switzerland
|
#137
|
and this piece of code for a correct determination of the route. For Russia and Moscow have not worked well
Code:<input id="address1" name="address" size="14" type="textbox" value="Москва" class="fromto" onkeydown="if(event.keyCode==13){showAddress(16);}" onFocus="document.getElementById('address1').select();"> <input id="address2" name="to" size="14" type="text" value="Подольск" class="fromto" onkeydown="if(event.keyCode==13){setDirections()}" onFocus="document.getElementById('address2').select();">
The Following User Says Thank You to twaelti For This Useful Post: | ||
![]() |
2009-12-20
, 22:40
|
Posts: 883 |
Thanked: 980 times |
Joined on Jul 2007
@ Bern, Switzerland
|
#138
|
![]() |
2009-12-21
, 00:23
|
Posts: 529 |
Thanked: 46 times |
Joined on Sep 2007
|
#139
|
![]() |
2009-12-21
, 00:30
|
Posts: 529 |
Thanked: 46 times |
Joined on Sep 2007
|
#140
|
![]() |
Tags |
google maps, microb, n900 |
|
Tomorrow I will set the field by, and send their changes to the code, where you have a mistake. Thank you for your understanding