Click here to Skip to main content
15,911,715 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i 'm just currently making a project which is courier management system
i have question that how to count rates between 2 city or state? and how to store it in db?..
please tell me i'm very confused
Posted
Comments
ZurdoDev 15-Mar-13 14:04pm    
So am I. What are you asking?
joshrduncan2012 15-Mar-13 14:09pm    
We need A LOT more information as to what you are talking about. Please include code that you have tried and any errors you are receiving that's preventing you from accomplishing this task.

Hi,

I am also working same project but On web...

if you want to work with c++ then if filesystem you have to store database(which I cant explain)
I just explain you which I used sql

the courier charge are set by three type..
1) region wise
2) country to country
3) city/postcode to city/postcode

Region is group of countries.

I make a table to store these data

couriercharge (id, fregionid,fcountryid,flocationid,tregionid,tcountryid,tlocationid,weightid,chargeamount)

f - stand for from
t - stand for to

you have to connect region - country and location.
here weight also consider...
because different weight range having different courrier rate

as 0-1 kg may be charge by 15 rs per 100 gm
1.001 -2.000 kg charge by 14 rs per 100 gm etc...

For detail-- You can ask regarding the concept where you stuck..
(If you like it please rate it & mark also with solution)
above is just introduction of courrier charges you see for detail fedex ,ups website
Thanks

Asp.Net C# Blog[^]
Hemant Singh
 
Share this answer
 
v2
If it is just a toy application then you may computes rates simply based on distance between the cities, that is double distance implies double rate and so on.
Your database, for instance, could contain a matrix with all the distances between city pairs.
 
Share this answer
 
Comments
Hemant Singh Rautela 16-Mar-13 2:49am    
I think courier management is not just a toy application, if is it then what about you say about fedex,ups & other's processing... (price cant be set with distance, it only set by region,country & location(city/Zip)...with weight specification)
CPallini 16-Mar-13 7:37am    
I didn't mean actual courier management systems are toy applications. I was wondering if you are building a professional courier management application or you are simple writing a toy application in order to gain programming experience.
Member 12000979 5-Oct-15 13:25pm    
Anyone have QT c++ code for courier management system ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900