Skip to content

[$80] drone map errors unless drone has location data #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kbowerma opened this issue Dec 27, 2016 · 0 comments
Closed

[$80] drone map errors unless drone has location data #13

kbowerma opened this issue Dec 27, 2016 · 0 comments

Comments

@kbowerma
Copy link
Contributor

In the process of adding a new drone we get an empty location property.

{
    "_id": {
        "$oid": "58629f8a01a1100004e8d83d"
    },
    "createdAt": {
        "$date": "2016-12-27T17:06:18.998Z"
    },
    "updatedAt": {
        "$date": "2016-12-27T17:06:18.998Z"
    },
    "serialNumber": "xx445533sss",
    "name": "regal-air",
    "type": "type1",
    "minSpeed": 2,
    "maxSpeed": 3,
    "maxFlightTime": 100,
    "maxCargoWeight": 10,
    "maxAltitude": 10,
    "cameraResolution": 1080,
    "videoResolution": 720,
    "hasWiFi": true,
    "hasBluetooth": true,
    "engineType": "engine",
    "numberOfRotors": 4,
    "hasAccelerometer": true,
    "hasGyroscope": true,
    "hasRadar": true,
    "hasGPS": true,
    "hasObstacleSensors": true,
    "hasUltraSonicAltimeter": true,
    "imageUrl": "htt://google.com",
    "status": "idle-ready",
    "specificationContent": "http://www.google.com/",
    "specificationImageUrl": "http://www.google.com/",
    "specificationPDFUrl": "http://www.google.com/",
    "provider": {
        "$oid": "584ad80eaebc030004a68a89"
    },
    "mileage": 30,
    "pilots": [],
    "currentLocation": [],
    
    "__v": 0
}

this will cause the map to throw erros and not display properly. We should pre-filter these where location is not empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants