IEnumerator GetRouteXY()
    {
        String requestUrl = "http://oth-regensburg.de/fileadmin/media/server_909_90_/st/8985642%&tz/BA%20-%20Navigation%20OTH/Code/Aktuell";
        String buid       = "building_2c2afcb0-1c63-470d-8407-93bddf8247ae_1504705971600";
        String pois_to    = "poi_0d531bdd-036a-46bc-a62f-b879a89fd603";
        String lat_to     = "49.00350321415986";
        String lon_to     = "12.094378173351288";

        String floor_number = "1";

        WWW       www;
        Hashtable postHeader = new Hashtable();

        postHeader.Add("Content-Type", "application/json");

        RequestObject requestObject = new RequestObject
        {
            username        = "******",
            password        = "******",
            buid            = buid,
            coordinates_lat = lat_to,
            coordinates_lon = lon_to,
            pois_to         = pois_to,
            floor_number    = floor_number
        };
        string jsonString = JsonUtility.ToJson(requestObject);

        var formData = System.Text.Encoding.UTF8.GetBytes(jsonString);

        www = new WWW(requestUrl, formData, postHeader);

        yield return(www);

        if (www != null)
        {
            Debug.Log("Web Request for Route XY successfull");

            String jsonResponse = www.text;

            ResponseGetRoute NavRouteXY = JsonUtility.FromJson <ResponseGetRoute>(jsonResponse);

            navRoute = "Navigation Route: \n";

            for (int i = 0; i < NavRouteXY.pois.Count; i++)
            {
                navRoute = navRoute + "lat: " + NavRouteXY.pois[i].lat.ToString() + "; lon: " + NavRouteXY.pois[i].lon.ToString() + "\n";
            }

            NavRouteText.GetComponent <Text>().text = jsonResponse;
        }
        else
        {
            Debug.Log("Web Request for Route failed");
        }
    }
    IEnumerator GetRoutePois()
    {
        String requestUrl   = "http://oth-regensburg.de/fileadmin/media/server_909_90_/st/8985642%&tz/BA%20-%20Navigation%20OTH/Code/Aktuell";
        String pois_to      = "poi_67f310b8-ce9d-47bc-b438-26b3373bea83";
        String pois_from    = "poi_4d1f350f-3cf0-47d8-907c-b7307430d612";
        String floor_number = "1";

        WWW       www;
        Hashtable postHeader = new Hashtable();

        postHeader.Add("Content-Type", "application/json");

        RequestObject requestObject = new RequestObject
        {
            username     = "******",
            password     = "******",
            pois_from    = pois_from,
            pois_to      = pois_to,
            floor_number = floor_number
        };
        string jsonString = JsonUtility.ToJson(requestObject);

        var formData = System.Text.Encoding.UTF8.GetBytes(jsonString);

        www = new WWW(requestUrl, formData, postHeader);

        yield return(www);

        if (www != null)
        {
            Debug.Log("Web Request for Route successfull");

            String jsonResponse = www.text;

            ResponseGetRoute NavRoute = JsonUtility.FromJson <ResponseGetRoute>(jsonResponse);

            navRoute = "Navigation Route: \n";

            for (int i = 0; i < NavRoute.pois.Count; i++)
            {
                navRoute = navRoute + "lat: " + NavRoute.pois[i].lat.ToString() + "; lon: " + NavRoute.pois[i].lon.ToString() + "\n";
            }

            NavRouteText.GetComponent <Text>().text = navRoute;
        }
        else
        {
            Debug.Log("Web Request for Route failed");
        }
    }