Fix METAR invalid parameter #738 (#743)

This commit is contained in:
Nabeel S
2020-06-04 03:30:35 -07:00
committed by GitHub
parent 82bae9cc74
commit 519ae600d5
3 changed files with 43 additions and 3 deletions

View File

@@ -14,9 +14,7 @@ use Illuminate\Support\Facades\Log;
class AviationWeather extends Metar
{
private const METAR_URL =
'https://www.aviationweather.gov/adds/dataserver_current/httpparam?'
.'dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=3'
.'&mostRecent=true&fields=raw_text&stationString=';
'https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=3&mostRecent=true&stationString=';
private $httpClient;