User Tools

Site Tools


coursestatus

/igg/coursestatus

To retreive a list of golfcourses with information on their status. For instance: In the winter courses are often closed because the terrain is too wet or frozen.

parameters:

auth the authorisation code you received from Intogolf BV (mandatory)
crsNr list only this course exclusively
date the date in YYYYMMDD format (mandatory)
lng 1 english 2 dutch (default if parameter is omitted)

example: https://backend.ikgagolfen.nl/igg/crsstatus?auth=<your authrisation code here>&date=20120925

result:

{
  "crsstatus": [
    {
      "crsshortname": "Almkreek",
      "crsname": "Golfpark Almkreek",
      "notes": "geen opgave"
    },
    {
      "crsshortname": "amelisweerd",
      "crsname": "Golfbaan Amelisweerd",
      "notes": "08.30 uur",
      "loops": [
        {
          "loop": "lus a",
          "closedtext": "open",
          "qualifying": false,
          "wintergreens": false,
          "wintertees": false,
          "buggies": true,
          "trolleys": true
        },
        {
          "loop": "lus b",
          "closedtext": "open",
          "qualifying": false,
          "wintergreens": false,
          "wintertees": false,
          "buggies": true,
          "trolleys": true
        },
        {
          "loop": "par 3",
          "closedtext": "open",
          "qualifying": false,
          "wintergreens": false,
          "wintertees": false,
          "buggies": true,
          "trolleys": true
        }
      ]
    },
    {
      "crsshortname": "amsteldijk",
      "crsname": "Amsteldijk",
      "notes": "geen opgave"
    },
    {
      "crsshortname": "a`dam waterland",
      "crsname": "Golfbaan Amsterdam - Waterland",
      "notes": "",
      "loops": [
        {
          "loop": "1e negen",
          "closedtext": "open",
          "qualifying": true,
          "wintergreens": false,
          "wintertees": false,
          "buggies": false,
          "trolleys": true
        },
        {
          "loop": "2e negen",
          "closedtext": "open",
          "qualifying": true,
          "wintergreens": false,
          "wintertees": false,
          "buggies": false,
          "trolleys": true
        }
      ]
    },
  ]
}

Courses have to enter the status every day. If they don’t you will see the messave “geen opgave” or “no input received” in the attribute “notes”. In all other cases the contents of the field “notes” will contain a message that was entered bij the golfcourse to provide extra information to the golfers and should be displayed in the user interface.

if a wrong authorisation code is provided, the backend will return “no authorisation”

coursestatus.txt · Last modified: 2022/03/29 11:52 by marcel