code: public List<GeoObject> getMentionedGnObjects(List<String> tokenList){
  
  		//logger.info("tokenList: " + tokenList);
  		Set<Integer> gnIds = new HashSet<Integer>();
  		
  		for (int i = 0; i < tokenList.size(); i++){
  			Set<Integer> ids = gnObjectMapNameLookup.get(tokenList.get(i));
  			if (ids != null){
  				gnIds.addAll(ids);
  			}
  			//logger.info("t: " + tokenList.get(i) + " -> " + ids);
  		}
  		// use also pairs of consecutive tokens
  		if (tokenList.size() > 1) {
  			for (int i = 0; i < tokenList.size() - 1; i++){
  				Set<Integer> ids = gnObjectMapNameLookup.get(tokenList.get(i) + " " + tokenList.get(i+1));
  				if (ids != null){
  					gnIds.addAll(ids);
  				}
  				//logger.info("t: " + tokenList.get(i) + " " + tokenList.get(i+1) + " -> " + ids);
  			}
  		}
  		
  		List<GeoObject> locations = new ArrayList<GeoObject>(gnIds.size());
  		for (Integer id : gnIds) {
  			locations.add(gnObjectMap.get(id));
  		}
  		return locations;
  	}
docs: Given an arbitrary text string, extract the referred names of locations
  @param tokenList List of tokens.
  @return List of mentioned LightweightGeoObjects in the list of tokens.