陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Quintiq file version 2.0
#parent: #root
StaticMethod GeocodeQualityAsMatchValue_MapQuest (String geocodequality) as Real
{
  #keys: '1[103546.0.179247563]'
  Description: 'Translates MapQuest specific geocode quality code into a matching score range of 0 - 100'
  TextBody:
  [*
    // Administrator Jun-4-2012 (created)
    
    //Mapquest has the accuracies/quality of each candidate specified in the form of codes
    //http://open.mapquestapi.com/geocoding/geocodequality.html#granularity
    
    //TODO - find out the way to translate these codes to a matching score
    match := 100;
    
    debuginfo( "GeocodingServer.GeocodeQualityAsMatchValue - a score value of", geocodequality, "translates to a match value of", match );
    
    return match;
  *]
}