
98 Geographical Information Systems: Trends and Technologies
fi rst two queries, the initial steps consist of the instantiation of the Search
type objects, which enable the application of constraints in the access to
data layers. The creation of the variables “gasStations” and “route66” was
suppressed because they are similar to the “hospital” variable, illustrated in
Fig. 17. The startContainSearch() method (line 11 of Fig. 18) obtains a list of all
PoIs contained in the geometry of the Route 66. Thus, to obtain only the gas
stations, it is necessary to fi lter this list by the “type” attribute of the “POIS”
entity. Finally, a count method is ...