pgRouting

Forum #13 - Topic #21 - Message List

Travelling SalesPerson?

hello community

there is an error in the pgRouting Sample Application. please check the tsp.phtml on line 277. you need to remove the "()" to start the function checkContents(); the correct version: <input type=button value="Start Search" onClick="checkContents();">

bye!

  • Message #61

    Thanks a lot!

    We will fix it.

    Can you, please, make a ticket for this bug?

    • Message #63

      Hi Anton,

      some months ago (at least 6 months) I've made an ajax version of your sample application which is realy simple and which imply just some little modifications of the code in the pages, I think it could be a good thing to post it on this web site.

      Could you tell me if it's relevant and, if yes, where could I post it on this web site ?

      You could see a demo of this ajax version on http://www.djayux.net:8080/routingj/ and as you can see on this web page the code was realy simple. Furthermore it let the developer haviing the main web page containing the formular in one file and the script which do the job in another file, which I think it's a better thing, but I could be wrong...

      The Ajax library used on this web pages is the old octometa one quoted in the Nguyen Hao Bihn these but it has been reviewed in some part and it continues to be developed on code.google.com under its new name : "MetaJS".

      Please don't use the driving distance on this web page cause it imply an error, indeed I don't have the CGAL library installed on this host. I will try to install the CGAL 3.3 ebuild I've made on this host to be able to use also the driving distance functionality... as soon as possible.

      Thanks in advance.

      • Message #66

        Your demo looks nice! Thank you!

        The sample data didn't focus on the GUI, so I must admit that it is a very simple one. Well, there are several ways to do:

        1. You can add a link to the wiki: http://pgrouting.postlbs.org/wiki/pgRoutingDemo
          (You can add a short description there as well)
        2. I can do that for you.
        3. We can also "host" it on our server, if you prefer.
        • Message #198

          "Later is beter than never" so I've choosen to directly add an URL to download the tarball in the download section of the wiki page. You could also host it if you want, as it is your work, I've made only simple things, realy. If you want, I could update the demo application to use the windowed system included into the MetaJS library (something similar to that).

          • Message #199

            Thank you for that, Gerald!

            The window system looks cool. Well, at first we just wanted to give new users of pgRouting a simple example how to make routing work the quick way, which wasn't really exciting Javascript, I know.

            Maybe having a kind of "demo theater" page with links to cool routing applications, would be nice idea. I think, we can extend the demo wiki page and add some more information to every link. Of course you're welcome to edit those pages by yourself. That's the idea of the wiki.

            If you don't mind hosting your version it might be the better way, because you can easier control and update it, if you want to make some changes. If you need to care about bandwidth, of course we can place it on our server.

            Thanks a lot for your contributions! And nice to have met you at FOSS4G in Victoria!

        • Message #68

          I've installed the lastest version (3.3) of the CGAL library available since some times now and compiled the pgrouting library using this new installation. I have some things to say on this subject but it will be part of a new issue. So now pgRouting Ajax Sample Application works for "Driving Distance".

          I would like to choose the third solution you gave to me. Indeed I would like to have a beter bandwidth than the one available for the server I currently use.

          Furtheremore, I would like to know if you could purpose to download the new demo as the one you purpose allready (pgRouting Sample Application available on the homepage) as a tarball or any other format you prefer. I've made some modifications to the original "nsp.phtml" file to follow the new MetaJS "way of use" (explained in the howtos available since some days).

          @peter_panther : I hope that you finaly got the mail I sent to you which contained the "sp_script.phtml" file.

          • Message #69

            Well, if you can send be an updated tarball of your sample application, I will put it on the server. I don't know much about MetaJS, because I'm using jQuery library to add Javascript animation. My first thought was better avoid external Javascript libraries, but it looks nicer for demonstration purpose.

            • Message #70

              @djay:

              Hmmm.. No mail in my inbox. Please try it again: giggle@linuxmail.org

              Thank you!

              • Message #71

                peter_panther check for a mail from djay [ at ] gentoo [ dot ] org . I send you this file twice :)