|
16 | 16 | /// to deal in the Software without restriction, including without limitation |
17 | 17 | /// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
18 | 18 | /// and/or sell copies of the Software, and to permit persons to whom the |
19 | | -/// Software is furnished to do so, subject to the following conditions:\n |
| 19 | +/// Software is furnished to do so, subject to the follow ing conditions:\n |
20 | 20 | /// The above copyright notice and this permission notice shall be included in |
21 | 21 | /// all copies or substantial portions of the Software.\n |
22 | 22 | /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
42 | 42 |
|
43 | 43 | #define REALTRAFFIC_NAME "RealTraffic" |
44 | 44 |
|
45 | | -#define RT_ENDP "v5" |
| 45 | +#define RT_BASE_URL "https://rtwa.flyrealtraffic.com/v5" |
46 | 46 | #define RT_METAR_UNKN "UNKN" |
47 | 47 |
|
48 | | -#define RT_AUTH_URL "https://rtw.flyrealtraffic.com/" RT_ENDP "/auth" |
| 48 | +#define RT_AUTH_URL RT_BASE_URL "/auth" |
49 | 49 | #define RT_AUTH_POST "license=%s&software=%s" |
50 | | -#define RT_DEAUTH_URL "https://rtw.flyrealtraffic.com/" RT_ENDP "/deauth" |
| 50 | +#define RT_DEAUTH_URL RT_BASE_URL "/deauth" |
51 | 51 | #define RT_DEAUTH_POST "GUID=%s" |
52 | | -#define RT_NEAREST_METAR_URL "https://rtw.flyrealtraffic.com/" RT_ENDP "/nearestmetar" |
| 52 | +#define RT_NEAREST_METAR_URL RT_BASE_URL "/nearestmetar" |
53 | 53 | #define RT_NEAREST_METAR_POST "GUID=%s&lat=%.2f&lon=%.2f&toffset=%ld&maxcount=7" |
54 | | -#define RT_WEATHER_URL "https://rtw.flyrealtraffic.com/" RT_ENDP "/weather" |
| 54 | +#define RT_WEATHER_URL RT_BASE_URL "/weather" |
55 | 55 | #define RT_WEATHER_POST "GUID=%s&lat=%.2f&lon=%.2f&alt=%ld&airports=%s&querytype=locwx&toffset=%ld" |
56 | | -#define RT_TRAFFIC_URL "https://rtw.flyrealtraffic.com/" RT_ENDP "/traffic" |
| 56 | +#define RT_TRAFFIC_URL RT_BASE_URL "/traffic" |
57 | 57 | #define RT_TRAFFIC_POST "GUID=%s&top=%.2f&bottom=%.2f&left=%.2f&right=%.2f&querytype=locationtraffic&toffset=%ld" |
58 | 58 | #define RT_TRAFFIC_POST_BUFFER "GUID=%s&top=%.2f&bottom=%.2f&left=%.2f&right=%.2f&querytype=locationtraffic&toffset=%ld&buffercount=%d&buffertime=10" |
59 | 59 | #define RT_TRAFFIC_POST_PARKED "GUID=%s&top=%.2f&bottom=%.2f&left=%.2f&right=%.2f&querytype=parkedtraffic&toffset=%ld" |
|
0 commit comments