Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
f1a024e2
Commit
f1a024e2
authored
3 years ago
by
Cholgrrr
Browse files
Options
Download
Email Patches
Plain Diff
test update
parent
c511de8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server.js
+3
-3
server.js
vcm/js/ServerorLocal.js
+48
-48
vcm/js/ServerorLocal.js
with
51 additions
and
51 deletions
+51
-51
server.js
+
3
-
3
View file @
f1a024e2
...
@@ -4,14 +4,14 @@ const express = require('express')
...
@@ -4,14 +4,14 @@ const express = require('express')
const
app
=
express
();
const
app
=
express
();
const
bodyParser
=
require
(
'
body-parser
'
)
const
bodyParser
=
require
(
'
body-parser
'
)
const
soap
=
require
(
'
soap
'
);
const
soap
=
require
(
'
soap
'
);
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
false
}))
//
app.use(bodyParser.urlencoded({ extended: false }))
app
.
use
(
bodyParser
.
json
())
//
app.use(bodyParser.json())
const
request_ajax
=
require
(
'
ajax-request
'
);
const
request_ajax
=
require
(
'
ajax-request
'
);
const
request
=
require
(
'
request
'
);
const
request
=
require
(
'
request
'
);
// const got = require('got');
// const got = require('got');
const
axios
=
require
(
'
axios
'
);
const
axios
=
require
(
'
axios
'
);
const
polycalc
=
require
(
'
./codepoly.js
'
);
const
polycalc
=
require
(
'
./codepoly.js
'
);
const
{
isEmptyObject
}
=
require
(
'
jquery
'
);
//
const { isEmptyObject } = require('jquery');
//console.log(polycalc)
//console.log(polycalc)
app
.
use
(
express
.
static
(
'
vcm
'
));
app
.
use
(
express
.
static
(
'
vcm
'
));
app
.
listen
(
process
.
env
.
PORT
||
8083
);
app
.
listen
(
process
.
env
.
PORT
||
8083
);
...
...
This diff is collapsed.
Click to expand it.
vcm/js/ServerorLocal.js
+
48
-
48
View file @
f1a024e2
// Server
// Server
var
navPublicT
=
'
/partizipation/navPublicT
'
//
var navPublicT = '/partizipation/navPublicT'
var
NavCARdata
=
'
/partizipation/NavCARdata
'
//
var NavCARdata = '/partizipation/NavCARdata'
var
ROAD_CLOSURE
=
"
https://m4lab.hft-stuttgart.de/partizipation/ROAD_CLOSURE
"
//
var ROAD_CLOSURE ="https://m4lab.hft-stuttgart.de/partizipation/ROAD_CLOSURE"
var
CONSTRUCTION
=
"
https://m4lab.hft-stuttgart.de/partizipation/CONSTRUCTION
"
//
var CONSTRUCTION = "https://m4lab.hft-stuttgart.de/partizipation/CONSTRUCTION"
var
TrafficFlow
=
"
https://m4lab.hft-stuttgart.de/partizipation/TrafficFlow
"
//
var TrafficFlow ="https://m4lab.hft-stuttgart.de/partizipation/TrafficFlow"
var
NAVCAR
=
"
https://m4lab.hft-stuttgart.de/partizipation/NAVCAR
"
//
var NAVCAR = "https://m4lab.hft-stuttgart.de/partizipation/NAVCAR"
var
NAVPUB
=
"
https://m4lab.hft-stuttgart.de/partizipation/NAVPUB
"
//
var NAVPUB = "https://m4lab.hft-stuttgart.de/partizipation/NAVPUB"
var
addPointurl
=
"
https://m4lab.hft-stuttgart.de/partizipation/addPoint
"
//
var addPointurl = "https://m4lab.hft-stuttgart.de/partizipation/addPoint"
var
routecalcurl
=
"
https://m4lab.hft-stuttgart.de/partizipation/Routecalc2
"
//
var routecalcurl = "https://m4lab.hft-stuttgart.de/partizipation/Routecalc2"
var
navpublict2url
=
"
https://m4lab.hft-stuttgart.de/partizipation/navPublicT2
"
//
var navpublict2url = "https://m4lab.hft-stuttgart.de/partizipation/navPublicT2"
var
StartpointUrl
=
"
https://m4lab.hft-stuttgart.de/partizipation/Startpoint
"
//
var StartpointUrl = "https://m4lab.hft-stuttgart.de/partizipation/Startpoint"
var
EndpointUrl
=
"
https://m4lab.hft-stuttgart.de/partizipation/Endpoint
"
//
var EndpointUrl = "https://m4lab.hft-stuttgart.de/partizipation/Endpoint"
var
FLOWdataUrl
=
"
/partizipation/FLOWdata
"
//
var FLOWdataUrl = "/partizipation/FLOWdata"
var
NavCARdataUrl
=
'
/partizipation/NavCARdata
'
//
var NavCARdataUrl = '/partizipation/NavCARdata'
var
FLOWtestUrl
=
'
/partizipation/FLOWtest
'
//
var FLOWtestUrl = '/partizipation/FLOWtest'
var
getTrafficIncidentsUrl
=
'
/partizipation/getTrafficIncidents
'
//
var getTrafficIncidentsUrl = '/partizipation/getTrafficIncidents'
var
navPointUrl
=
'
/partizipation/navPoint
'
//
var navPointUrl = '/partizipation/navPoint'
var
RoutecalcUrl
=
'
/partizipation/Routecalc
'
//
var RoutecalcUrl = '/partizipation/Routecalc'
var
navPublicTUrl
=
'
/partizipation/navPublicT
'
//
var navPublicTUrl = '/partizipation/navPublicT'
var
NoiseRealTimeUrl
=
'
/partizipation/NoiseRealTime
'
//
var NoiseRealTimeUrl = '/partizipation/NoiseRealTime'
var
FavoritePlacesUrl
=
"
https://m4lab.hft-stuttgart.de/partizipation/FavPlacesDB
"
//
var FavoritePlacesUrl = "https://m4lab.hft-stuttgart.de/partizipation/FavPlacesDB"
var
getNoiseHistUrl
=
'
/partizipation/getNoiseHist
'
//
var getNoiseHistUrl = '/partizipation/getNoiseHist'
var
getSTANoiseHistUrl
=
'
/partizipation/getSTANoiseHist
'
//
var getSTANoiseHistUrl = '/partizipation/getSTANoiseHist'
var
saveFavPOINT
=
'
/partizipation/saveFavPoint
'
//
var saveFavPOINT = '/partizipation/saveFavPoint'
...
@@ -31,27 +31,27 @@ var saveFavPOINT = '/partizipation/saveFavPoint'
...
@@ -31,27 +31,27 @@ var saveFavPOINT = '/partizipation/saveFavPoint'
//_________________________________________/
//_________________________________________/
// Local
// Local
// var navPublicT = '/navPublicT'
var
navPublicT
=
'
/navPublicT
'
// var NavCARdata = '/NavCARdata'
var
NavCARdata
=
'
/NavCARdata
'
// var ROAD_CLOSURE = "http://localhost:8083/ROAD_CLOSURE"
var
ROAD_CLOSURE
=
"
http://localhost:8083/ROAD_CLOSURE
"
// var CONSTRUCTION = "http://localhost:8083/CONSTRUCTION"
var
CONSTRUCTION
=
"
http://localhost:8083/CONSTRUCTION
"
// var TrafficFlow = "http://localhost:8083/TrafficFlow"
var
TrafficFlow
=
"
http://localhost:8083/TrafficFlow
"
// var NAVCAR = "http://localhost:8083/NAVCAR"
var
NAVCAR
=
"
http://localhost:8083/NAVCAR
"
// var NAVPUB = "http://localhost:8083/NAVPUB"
var
NAVPUB
=
"
http://localhost:8083/NAVPUB
"
// var addPointurl = "http://localhost:8083/addPoint"
var
addPointurl
=
"
http://localhost:8083/addPoint
"
// var routecalcurl = "http://localhost:8083/Routecalc2"
var
routecalcurl
=
"
http://localhost:8083/Routecalc2
"
// var navpublict2url = "http://localhost:8083/navPublicT2"
var
navpublict2url
=
"
http://localhost:8083/navPublicT2
"
// var StartpointUrl = "http://localhost:8083/Startpoint"
var
StartpointUrl
=
"
http://localhost:8083/Startpoint
"
// var EndpointUrl = "http://localhost:8083/Endpoint"
var
EndpointUrl
=
"
http://localhost:8083/Endpoint
"
// var FLOWdataUrl = "/FLOWdata"
var
FLOWdataUrl
=
"
/FLOWdata
"
// var NavCARdataUrl = '/NavCARdata'
var
NavCARdataUrl
=
'
/NavCARdata
'
// var FLOWtestUrl = '/FLOWtest'
var
FLOWtestUrl
=
'
/FLOWtest
'
// var getTrafficIncidentsUrl = '/getTrafficIncidents'
var
getTrafficIncidentsUrl
=
'
/getTrafficIncidents
'
// var navPointUrl = '/navPoint'
var
navPointUrl
=
'
/navPoint
'
// var RoutecalcUrl = '/Routecalc'
var
RoutecalcUrl
=
'
/Routecalc
'
// var navPublicTUrl = '/navPublicT'
var
navPublicTUrl
=
'
/navPublicT
'
// var NoiseRealTimeUrl = '/NoiseRealTime'
var
NoiseRealTimeUrl
=
'
/NoiseRealTime
'
// var FavoritePlacesUrl = 'http://localhost:8083/FavPlacesDB'
var
FavoritePlacesUrl
=
'
http://localhost:8083/FavPlacesDB
'
// var getNoiseHistUrl = '/getNoiseHist'
var
getNoiseHistUrl
=
'
/getNoiseHist
'
// var getSTANoiseHistUrl = '/getSTANoiseHist'
var
getSTANoiseHistUrl
=
'
/getSTANoiseHist
'
// var saveFavPOINT = '/saveFavPoint'
var
saveFavPOINT
=
'
/saveFavPoint
'
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets