Hi Cartinus,<br><br><br><br>Now i use German.pak which i downloaded from <a href="http://dev.openstreetmap.de/gosmore/">http://dev.openstreetmap.de/gosmore/</a><br>Firstly when i try routing with accessing localhost on browser it doesn't work, becuase of this code i think:<br>
<br><b>/*switch ($layer) {
<br>case 'cn':
<br>    $gosmore = '/normal';
<br>    $style = 'cyclestyles.xml';
<br>    break;
<br>case 'test':
<br>    $gosmore = '/test';
<br>    $style = 'elemstyles.xml';
<br>    break;
<br>default:
<br>    $gosmore = '/normal';
<br>    $style = 'genericstyles.xml';
<br>    break;
<br>}<br> <br>$dir = $yours_dir.$gosmore;</b><br><br><br>when i check on some folders, i can't get some xml file include gosmore.i  found  <b>elemstyles.xml</b> only.<br>After i commented these line and change<br><br>
<b>$dir = $yours_dir.$gosmore;</b> <br><br>be <br><br><b>$dir = $yours_dir;</b><br><br>Now my routing works well.I can create route on Germany map. :) .Its running on ubuntu 10.10<br><br><br>But now i try using it on Ubuntu 11.10 server.<br>
<br>After i checkout source then  i got error when execute :<br><br><b>$ make<br>gcc -lm density.c -o density<br>/tmp/ccNQSatu.o: In function `main':<br>density.c:(.text+0x21f): undefined reference to `exp'<br>density.c:(.text+0x224): undefined reference to `atan'<br>
density.c:(.text+0x2c3): undefined reference to `exp'<br>density.c:(.text+0x2c8): undefined reference to `atan'<br>density.c:(.text+0x5d3): undefined reference to `exp'<br>density.c:(.text+0x5d8): undefined reference to `atan'<br>
density.c:(.text+0x67a): undefined reference to `exp'<br>density.c:(.text+0x67f): undefined reference to `atan'<br>density.c:(.text+0x723): undefined reference to `exp'<br>density.c:(.text+0x728): undefined reference to `atan'<br>
density.c:(.text+0x793): undefined reference to `exp'<br>density.c:(.text+0x798): undefined reference to `atan'<br>collect2: ld returned 1 exit status<br>make: *** [jni/bboxes.c] Error 1</b><br><br><br><br>is it bug of gosmore or what is this ?<br>
<br><br>Thks<br><br><div class="gmail_quote">2011/12/26 Cartinus <span dir="ltr"><<a href="mailto:cartinus@xs4all.nl">cartinus@xs4all.nl</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello,<br>
<br>
It doesn't find a route because the start point and the end point of your query are somewhere in Europe.<br>
<br>
flat and flon are the latitude and longitude of the start point.<br>
tlat and tlon are the latitude and longitude of the end point.<br>
<br>
Try these values. They should be somewhere in Bandung<br>
flat=-6.91469526290894&flon=<u></u>107.634368896484&tlat=-6.<u></u>91350746154785tlon=107.<u></u>643768310547&<br>
<br>
---<br>
m.v.g.,<br>
Cartinus<div class="im"><br>
<br>
On 12/26/2011 03:25 AM, Anwar Azulfa wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
I have configure and make this source, but when i try to execute :<br>
<br></div>
*QUERY_STRING="flat=52.396545&<u></u>flon=4.915714&tlat=52.373075&<u></u>tlon=4.901638&fast=0&v=<u></u>motorcar"<br>
./gosmore*<br>
*<div class="im"><br>
*<br>
[this is output]<br>
maple@maple:~/src/gosmore$<br>
QUERY_STRING="flat=52.396545&<u></u>flon=4.915714&tlat=52.373075&<u></u>tlon=4.901638&fast=0&v=<u></u>motorcar"<br>
./gosmore<br>
Content-Type: text/plain<br>
<br></div>
*No route found*<div class="im"><br>
<br>
<br>
this is log when i configure, make and make install :<br>
<a href="http://pastebin.com/qQPj1C0f" target="_blank">http://pastebin.com/qQPj1C0f</a><br>
<br>
note:<br>
I only rebuild Indonesia.osm.bz2 use gosmore,<br>
<br>
<br>
Help me,please<br>
<br>
<br></div>
2011/12/24 Nic Roets <<a href="mailto:nroets@gmail.com" target="_blank">nroets@gmail.com</a> <mailto:<a href="mailto:nroets@gmail.com" target="_blank">nroets@gmail.com</a>>><div class="im"><br>
<br>
<br>
<br>
    On Thu, Dec 22, 2011 at 5:36 PM, Anwar Azulfa <<a href="mailto:anwar@troyans.net" target="_blank">anwar@troyans.net</a><br></div><div class="im">
    <mailto:<a href="mailto:anwar@troyans.net" target="_blank">anwar@troyans.net</a>>> wrote:<br>
<br>
        i have checkout from<br>
        <a href="http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via" target="_blank">http://svn.openstreetmap.org/<u></u>applications/routing/yours/<u></u>branches/version-1.0-via</a><br>
<br>
        now, map is appear. but when i try to make routing, i get error<br>
        again<br>
<br>
<br>
        this is step which i did :<br>
<br>
        1. i following reference from<br>
        <a href="http://wiki.openstreetmap.org/wiki/YOURS" target="_blank">http://wiki.openstreetmap.org/<u></u>wiki/YOURS</a> and checkout from<br>
        <a href="http://svn.openstreetmap.org/applicatio" target="_blank">http://svn.openstreetmap.org/<u></u>applicatio</a> … on-1.0-via<br></div>
        <<a href="http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via" target="_blank">http://svn.openstreetmap.org/<u></u>applications/routing/yours/<u></u>branches/version-1.0-via</a>><div class="im">
<br>
<br>
        2. i checkout gosmore source from<br>
        <a href="http://svn.openstreetmap.org/applicatio" target="_blank">http://svn.openstreetmap.org/<u></u>applicatio</a> … ng/gosmore<br></div>
        <<a href="http://svn.openstreetmap.org/applications/rendering/gosmore" target="_blank">http://svn.openstreetmap.org/<u></u>applications/rendering/gosmore</a><u></u>><div class="im"><br>
<br>
        3.download file .pak and rename to gosmore.pak.i put this file<br>
        inside gosmore folder<br>
<br>
        4. i put YOURS/* to /var/www so i can acces it via browser with<br>
        <a href="http://localhost" target="_blank">http://localhost</a><br>
        now i can access map, but when i make a route from one location<br>
        to another location and click find route, error message :Status:<br>
        An unexpected error occured in Gosmore: appear<br>
<br>
        i check on /var/log/apache2/error.log and i get this error message :<br>
<br></div>
        *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP<div class="im"><br>
        Notice:  Undefined index: format in<br>
        /home/maple/yours/api/1.0/<u></u>gosmore.php on line 105, referer:<br></div>
        <a href="http://localhost/*" target="_blank">http://localhost/*</a><br>
<br>
        *nice: ./gosmore: No such file or directory*<br>
<br>
        *<div class="im"><br>
        *<br>
<br>
        What should i do to solve this ?<br>
<br>
<br>
    Inside the gosmore folder, you should run<br>
<br>
      ./configure<br>
      make<br>
<br>
    Currently, gosmore will not compile with HEADLESS. I suggest you<br>
    compile with gtk+2 includes and libraries installed. Or you can<br>
    check out a version what is more than 3 months old.<br>
<br>
    It is also a good idea to test routing from the command line before<br>
    you test YOURS e.g.<br>
    QUERY_STRING="flat=52.396545&<u></u>flon=4.915714&tlat=52.373075&<u></u>tlon=4.901638&fast=0&v=<u></u>motorcar"<br>
    ./gosmore<br>
<br>
    Regards,<br>
    Nic<br>
</div></blockquote>
<br><div><div></div><div class="h5">
______________________________<u></u>_________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.<u></u>org/listinfo/dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<div>M.Iftakhul Anwar</div><div><br></div><br>