You need to give much more information on what exactly you want to do !
Where and how are the addresses stored?
What does portal mean?
For a point in a polygon you may have a look et this thread.
Sorry, you're right, I have not explained myself well.
I would like to draw an area in googlemaps (this I already know how to do it) and be able to extract all the addresses contained in it.
The purpose is to have a list of buildings to evacuate in case of an emergency.
The main problem is to find the addresses in the polygon.
If you have a list of addresses with latitude and longitude coordinates, no problem.
But. the problem, at least for me, is to find all the addresses insides the given surrounding.
I have another doubt about addresses. If a street is half in the polygon and the other half is outsides the polygon, how to get those insides?
That's the QUESTION!
Sorry, I don't know.
I have been able to download a table with the data of the buildings (the number of the street in Spain is the "portal") in which each record has the address (type of road, street name, population) and coordinates.
My idea is to make a first selection of the points that are on the screen and zoom <= 16. And then, use your suggestion (for a point in a polygon you may have a look et this