DEV Community

Olimpio
Olimpio

Posted on

Tracking System on a Delivery Service Website

I am building a website for a client using Wordpress, it's a Delivery Service Website and the client wants a Tracking System. I would like to know how would I add it and how does it work. Help

Top comments (3)

Collapse
 
jakesweb profile image
Jacob Colborn

You will need some kind of API that will receive data to update the current position of the package. The database would have to contain a value for where the item being tracked is. You can do specific location (like GPS or address system) or just general (At Warehouse, On Delivery Vehicle, etc).

Collapse
 
iordacheandrei profile image
iordache-andrei • Edited

The delivery company would need a public API available, or sign up your client as a dev if the delivery company requires authentication to access the API, so you can send requests to it and receive statuses.

Other than that, you can build a simple tracker with axios in plain javascript where the buyer can paste in the AWB/tracking code for the package, axios sends the request to the delivery company API and returns the status.
Realistically speaking, there might be wordpress plugins that support major delivery companies API's and saves you the work with building the request/receive component, however the first point is still mandatory: get the API of the delivery company and give buyers the possibility to track the shipping.

SIDE NOTE: If using multiple shipping companies and you are building the component from scratch -> Each company has a unique type of shipping code, so you might want to sort the requests by that factor so the buyer won't have failed results.

Collapse
 
3ddpaz profile image
Ed

you may need to tell the person that's delivering the package/product to update when meeting every step in the logistic you've set in order to send the package, (pending, prepearing, on your way, delivered, not delivered, etc)