pg_tileserv

Access

A web application employing pg_tileserv, PgRouting, and pg_featurserv is enabled upon installation.

This app is included in the CrunchyData examples and is simply configured for use.

It can be access via the pg_tileserv tab on the home page:

../_images/pgtile-tabs.png

It can also be access directly via url at:

http://domain.com/openlayers-pgrouting.html

Usage

Once accessed using above, the app will appear as shown below:

../_images/pgtile-app1.png

Click anywhere to select a start location, then click elswhere for an end location.

The route will be displayed as below:

../_images/pgtile-app.png

Structure

The app is located at:

/vaw/www/html/pgrouting-openlayers.html

On installation, the pg_tileserv and pg_featureserv urls are set in the html document:

...
var vectorUrl = "http://206.189.186.146:7800/public.ways/{z}/{x}/{y}.pbf";
...
var url = "http://206.189.186.146:9000/functions/boston_find_route/items.json";
...