geodata Jsonprint

This commit is contained in:
Vincze József 2023-10-23 14:03:14 +02:00
parent 8f96fe9c9d
commit baff2acc30
1 changed files with 3 additions and 2 deletions

View File

@ -1063,7 +1063,7 @@ function getAddress(latitude,longitude,locmode,callback){
{ {
if (res) if (res)
{ {
console.log('GeoData: '+res); console.log('GeoData: '+JSON.Stringify(res));
//return address; //return address;
callback(null,res); callback(null,res);
} }
@ -4295,10 +4295,11 @@ router.post('/access', function(req,res){
else else
{ {
console.log(device) console.log(device)
if (typeof device === 'undefined' || device === null) if (typeof device === 'undefined' || !device )
{ {
response.status=200; response.status=200;
response.data='INVALID DEVICE'; response.data='INVALID DEVICE';
//res.status(200).send('INVALID DEVICE!');
res.send(response); res.send(response);
} }
else else