Gateway get weights

Added methods to get gateways weights based on distance or relevance