Example #1
0
        public RestClient GetNokiaTrafficClient(out RestRequest request, MapTileZXY coordinates, string baseUrl = "http://traffic.nlp.nokia.com")
        {
            request = new RestRequest(string.Format("traffic/{{version}}/incidents/json/{0}/{1}/{2}", coordinates.Z, coordinates.X, coordinates.Y), Method.GET);
            request.AddUrlSegment("version", "6.0");
            request.AddParameter("app_id", "oLPBSeIYGm6hNoyMlFWx");
            request.AddParameter("token", "Po9k-HXzzvllG1DaMHxR7g");
            request.AddParameter("c", "US");
            request.AddParameter("lg", "en");
            request.AddParameter("i18n", "true");
            request.AddParameter("localtime", "true");
            request.AddParameter("criticality", "0,1");

            return(new RestClient(baseUrl));
        }
Example #2
0
        public RestClient GetMapTileClient(out RestRequest request, MapTileZXY coordinates, string baseUrl = "http://maps.nlp.nokia.com")
        {
            request = new RestRequest(string.Format("maptiler/{{version}}/maptile/newest/normal.day/{0}/{1}/{2}/256/png8", coordinates.Z, coordinates.X, coordinates.Y), Method.GET);
            request.AddUrlSegment("version", "v2");
            request.AddParameter("app_id", "oLPBSeIYGm6hNoyMlFWx");
            request.AddParameter("token", "Po9k-HXzzvllG1DaMHxR7g");
            request.AddParameter("c", "US");
            request.AddParameter("lg", "en");
            request.AddParameter("i18n", "true");
            request.AddParameter("localtime", "true");
            request.AddParameter("criticality", "0,1");

            return(new RestClient(baseUrl));
        }