Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/web/www/routino/paths.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1001 - (show annotations) (download) (as text)
Tue Jun 5 08:17:57 2012 UTC (12 years, 9 months ago) by amb
File MIME type: text/x-perl
File size: 1473 byte(s)
Add a button to replace the lat/long text entry with a location search entry.
Use Nominatim service via CGI to get first search result and fill in coords.

1 #
2 # Routino CGI paths Perl script
3 #
4 # Part of the Routino routing software.
5 #
6 # This file Copyright 2008-2012 Andrew M. Bishop
7 #
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Affero General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Affero General Public License for more details.
17 #
18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #
21
22 # Directory path parameters
23
24 # EDIT THIS to set the root directory for the non-web data files.
25 $root_dir="../..";
26
27 # EDIT THIS to change the location of the individual directories.
28 $bin_dir="$root_dir/bin";
29 $data_dir="$root_dir/data";
30 $results_dir="$root_dir/results";
31
32 # EDIT THIS to set the filename prefix for the routing database files.
33 $data_prefix="";
34
35 # EDIT THIS to change the names of the executables (enables easy selection of slim mode).
36 $router_exe="router";
37 $filedumper_exe="filedumper";
38
39 # EDIT THIS to change the search type and base URL (must be a type recognised by search.pl).
40 $search_type="nominatim";
41 $search_baseurl="http://nominatim.openstreetmap.org/search";
42
43 1;