Solved

linking to tracking information from tracking code

Posted on 2012-03-09
1
226 Views
Last Modified: 2012-06-27
Is there any api or plugin I can integrate on my site so that if I have a tracking number, it will determine what shipping company it is from, and link to that site's tracking information?

Thanks a million
0
Comment
Question by:hibbsusan
1 Comment
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 37705111
This might be doable, but I expect it would require something of a development effort.  The UPS tracking pages used to be GET-method requests - you could just plop a variable into a URL and read the page to get the tracking info.  Now that has been changed to a POST-method request, presumably in an effort to thwart attempts to find out where other people's packages are.  Logistics companies are understandably interested in keeping some of their information away from potentially bad actors.

I think if you ask the shipping companies for an API, you may be able to build this.  You would need to find the rules that differentiate the tracking numbers, then call the appropriate API to retrieve the shipping data.  The same script that calls the API would also format the shipping data for your use (maybe JSON or XML).  In computer science this is called a polymorphic adapter because a single script can adapt to many forms of external data and return a consistent response.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now