-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathmain-template.js
33 lines (28 loc) · 1.13 KB
/
main-template.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var GHUtil = require('./GHUtil.js');
var GHInput = require('./GHInput.js');
var GraphHopperGeocoding = require('./GraphHopperGeocoding.js');
var GraphHopperIsochrone = require('./GraphHopperIsochrone.js');
var GraphHopperMapMatching = require('./GraphHopperMapMatching.js');
var GraphHopperMatrix = require('./GraphHopperMatrix.js');
var GraphHopperOptimization = require('./GraphHopperOptimization.js');
var GraphHopperRouting = require('./GraphHopperRouting.js');
var GraphHopper = {
"Util": GHUtil,
"Input": GHInput,
"Geocoding": GraphHopperGeocoding,
"Isochrone": GraphHopperIsochrone,
"MapMatching": GraphHopperMapMatching,
"Optimization": GraphHopperOptimization,
"Routing": GraphHopperRouting,
"Matrix": GraphHopperMatrix
};
// define GraphHopper for Node module pattern loaders, including Browserify
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports.GraphHopper = GraphHopper;
// define GraphHopper as an AMD module
} else if (typeof define === 'function' && define.amd) {
define(GraphHopper);
}
if (typeof window !== 'undefined') {
window.GraphHopper = GraphHopper;
}