geodata Jsonprint
This commit is contained in:
parent
8f96fe9c9d
commit
baff2acc30
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue