GusApi can not get street number
look here plesae: array (size=1) 0 => object(GusApi\SearchReport)[59] private 'regon' => string '24193965000000' (length=14) private 'regon14' => string '24193965000000' (length=14) private 'name' => string 'SPRAWY SPĂĹKA Z OGRANICZONÄ ODPOWIEDZIALNOĹCIÄ' (length=51) private 'province' => string 'ĹLÄSKIE' (length=9) private 'district' => string 'm. Katowice' (length=11) private 'community' => string 'M. Katowice' (length=11) private 'city' => string 'Katowice' (length=8) private 'zipCode' => string '40-012' (length=6) private 'street' => string 'ul. Ĺw. Jana' (length=13) private 'type' => string 'p' (length=1) private 'silo' => int 6 {"success":true,"data":{"street":"ul. \u015bw. Jana","city":"Katowice","province":"\u015aL\u0104SKIE","zip_code":"40-012","name":"SPRAWY SP\u00d3\u0141KA Z OGRANICZON\u0104 ODPOWIEDZIALNO\u015aCI\u0104"}}
GusApi can not get local number,
Please see #13
Hey there,
trying to figure out how the get the full address with house number. Is the answer from issue #13 still valid? Not quite sure, where the definition of ReportType should be changed.
Thank you in advance for your answer.
Best regards, Krzysztof
EDIT:
As I understand we can get the house number from the getFullReport object:
$fullReport = $gus->getFullReport(
$sessionId,
$gusReport,
$reportType
);
dump($fullReport->dane->praw_adSiedzNumerLokalu->__toString());
dump($fullReport->dane->praw_adSiedzNumerNieruchomosci->__toString());
Is there any simpler way? I did not find any designated method for the house number.
There is no simply way to get only the house number. Ony way is to getFullReport with
ReportTypes::REPORT_PUBLIC_LAW eg.
use GusApi\ReportTypes;
....
var_dump($gus->getFullReport(
$sessionId,
$gusReport,
ReportTypes::ReportTypes::REPORT_PUBLIC_LAW
));
Till version 5.x #77 (BIR1.1 https://api.stat.gov.pl/Home/RegonApi) You can get property number and apartment number directly from SearchReport properties: $propertyNumber, $apartmentNumber