Calculating Distance or Shipping from a Zip?
-
Anyone have good examples of calculating distance or shipping costs given two zip codes? TIA, Joan
If you have any experience with web services, there are several free ones out there that'll do the job. Take a look at this service: http://www.discoverdance.co.uk/zipquery/zipcodeservice.asmx You can just create a web reference to your project that points to this URL above and you'll get the objects you need to calcuate the distance between two zip codes. There are some other web services out there that will tell you shipping rates for all major competitors (fedex, ups, dhl, etc.), but they cost money. I built a sample web application in C# that uses the zip code distance service I referenced above. If you want it, I can email it to you. Let me know. Good luck. -Matt p.s. Here is a list of a bunch of web services available online: http://www.xmethods.com/ve2/Directory.po;jsessionid=3fRQzLqk6mW3ya-eBjfcU0Rp(QhxieSRM) ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall