defvol / weatherman

The unofficial NOAA API
http://weatherman.herokuapp.com/ping
MIT License
0 stars 0 forks source link

Public advisories should have the same schema as forecasts #26

Open defvol opened 10 years ago

defvol commented 10 years ago

ALL YOUR HURRICANES ARE BELONG TO US

defvol commented 10 years ago

public:

{
    "location": {
        "north": 13.3,
        "west": 94.2
    },
    "about": [
        "ABOUT 210 MI...340 KM SSE OF SALINA CRUZ MEXICO"
    ],
    "maxSustainedWinds": "55 KM/H",
    "presentMovement": "PRESENT MOVEMENT...NNW OR 330 DEGREES AT 3 MPH...6 KM/H",
    "minCentralPressure": "1001 MB"
}

forecast:

{
    "center": "13.1N 94.1W",
    "effective": "02/2100Z",
    "forecasts": [
        {
            "id": "03/0600Z",
            "north": "13.5N",
            "west": "94.6W",
            "max": "30 KT",
            "gusts": "40 KT"
        },
        {
            "id": "03/1800Z",
            "north": "14.0N",
            "west": "95.0W",
            "max": "35 KT",
            "gusts": "45 KT"
        },
        {
            "id": "04/0600Z",
            "north": "14.5N",
            "west": "95.1W",
            "max": "40 KT",
            "gusts": "50 KT"
        },
        {
            "id": "04/1800Z",
            "north": "15.0N",
            "west": "95.0W",
            "max": "45 KT",
            "gusts": "55 KT"
        },
        {
            "id": "05/1800Z",
            "north": "15.3N",
            "west": "95.0W",
            "max": "50 KT",
            "gusts": "60 KT"
        },
        {
            "id": "06/1800Z",
            "north": "15.6N",
            "west": "95.0W",
            "max": "50 KT",
            "gusts": "60 KT"
        },
        {
            "id": "07/1800Z",
            "north": "16.0N",
            "west": "95.0W",
            "max": "45 KT",
            "gusts": "55 KT"
        }
    ],
    "minCentralPressure": "1002 MB",
    "movement": "TOWARD THE NORTH-NORTHWEST OR 330 DEGREES AT 3 KT",
    "time": "2100 UTC MON JUN 02 2014",
    "winds": {
        "maxSustainedWindsWithGusts": "MAX SUSTAINED WINDS 25 KT WITH GUSTS TO 35 KT.",
        "direction": [],
        "seas": ""
    }
}
defvol commented 10 years ago
    "location": {
        "north": 13.3,
        "west": 94.2
    },
    "presentMovement": "PRESENT MOVEMENT...NNW OR 330 DEGREES AT 3 MPH...6 KM/H",
    "maxSustainedWinds": "55 KM/H",

debería cambiar a:

    "center": "13.3N 94.2W"
    "movement": "PRESENT MOVEMENT...NNW OR 330 DEGREES AT 3 MPH...6 KM/H",
    "winds": {
        "maxSustainedWindsWithGusts": "55 KM/H",
        "direction": [],
        "seas": ""
    }
defvol commented 10 years ago

también agregar time a public "time": "2100 UTC MON JUN 02 2014"