Understanding GeocodeQualityCode better

6 posts / 0 new
Last post
padanis_admins
Understanding GeocodeQualityCode better

Hello,

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.

Best wishes.

Uttam Padukone


MQBrianCoakley
Hi Uttam,

Hi Uttam,

 

Each character of the quality code is explained in the user guide here.

 

Each route request returns a time, which is the time it would take to complete the route given the speed limits or default walk/bike speed, and a realTime which is the time it would take to complete the route currently including the flow of traffic.

 

The quality code in a route request is the same you would see for the first result of a geocode request. All of the characters in the quality code indicate the granularity (first two characters) and confidence (last three characters) of the result.

 

Misspelling parts of the address will cause the quality code to change from A to something else. Avenu and Avenue are indeed not the same thing and will be scored considering what the found spelling is. If the input is Main Rd and Main Rd is found then the first character in the quality code will be A and if Main Dr is found then the quality code will be B. If If N Maintenance Company Blvd is found then the quality code should be C. How the application handles those quality codes depends on what the application is doing, how exact the results need to be and on how you design the app.

 

I hope that helps.

 

Brian


padanis_admins
Thank you Brian!

Hello Brian,

Thank you for the link and the explanations - they certainly helped.

Warm wishes.

Uttam


MQBrianCoakley
I'm glad I could help.
I'm glad I could help.

padanis_admins
Some more questions

Hello again,

 

I followed the reply that Brian so graciously gave earlier.

However, I find that when I enter my own home address, I get a GeocodeQualityCode value as A5XAX - which really should not be - hey I live here and that has been the same address for about 8 years now --so what seems to be the problem?  Or is this a question to be sent for a Support ticket, considering that my home address may need to be shared to correctly diagnose the problem?

Thank you.

 

Uttam


MQBrianCoakley
You can email the support
You can email the support team with that address.