Closed levogirar closed 3 years ago
Currently, we do not know the region of the companies in our database. For now, we assign them randomly. We need to change that if we want our website to be useful.
I want to use this new standard as ID for regions and provinces in Spain.
We are able to detect the postal code from the website of some companies. The first two digits of the postal code in Spain determine the province of the company. From these postal code, I want to assign the correct province to the companies and use the region to filter the provinces.
At the moment, is the scrapper able to detect the postal code from the sites, or this is part of what should be done?
The scraper is able to detect the postal code already. In the Models/Scraper/WebsiteCrawler.php, there is a private variable called $postalCode.
Currently we are using the code for each country. This could cause problem when expanding to different countries. I propose using the ISO3166 for the region.
ISO 3166 for Spain
👉🏼 GOOGLE SHEET