I am trying to determine the distance between two addresses and I have multiple questions on this:
One address is hard coded - our base location - hence its lat long is known.
The second address is entered by the user. Consequently the address can be erroneous.
Qs 1: I am currently using mathematics to determine the distance between two points using the two lat long values. This distance is "as the crow flies". Since I am trying to determine delivery distance, I would like to get shortest driving distance preferably for cars (so there is no limitation that it has to be a truck route). Traffic pattern can be ignored - though if there is a way to determine that I would love to have some pointers.
Qs 2: What if the entered address is erroneous - how do I interpret the GeocodeQualityCode to determine distance? What values in which position of the GeocodeQualityCode will tell me that the address needs refinement?
Qs3: I am noticing that the values of GeocodeQualityCode changes if there are typos - case in point Avenu and Avenue are deemed unequal.
Thank you all in advance for your help.