client code to get nearest squid.