Precision metadata for HERE

This commit is contained in:
Juan Ignacio Sánchez Lara
2018-07-11 15:30:51 +02:00
parent 67fee1cce8
commit dbb4f9204a
2 changed files with 23 additions and 12 deletions

View File

@@ -70,18 +70,17 @@ class TestStreetFunctionsSetUp(TestCase):
}
GOOGLE_METADATAS = {
'Plaza España, Barcelona': {
'relevance': 0.9, 'precision': 'precise'
},
'Santiago Rusiñol 123, Valladolid': {
'relevance': 0.8, 'precision': 'interpolated'
}
'Plaza España, Barcelona':
{'relevance': 0.9, 'precision': 'precise'},
'Santiago Rusiñol 123, Valladolid':
{'relevance': 0.8, 'precision': 'interpolated'}
}
HERE_METADATAS = {
'Plaza España, Barcelona': {
'relevance': 1
}
'Plaza España, Barcelona':
{'relevance': 1, 'precision': 'precise'},
'Santiago Rusiñol 123, Valladolid':
{'relevance': 0.89, 'precision': 'precise'} # Wrong. See https://stackoverflow.com/questions/51285622/missing-matchtype-at-here-geocoding-responses
}
TOMTOM_METADATAS = {
@@ -98,7 +97,7 @@ class TestStreetFunctionsSetUp(TestCase):
METADATAS = {
'google': GOOGLE_METADATAS,
'here': HERE_METADATAS,
'heremaps': HERE_METADATAS,
'tomtom': TOMTOM_METADATAS,
'mapbox': MAPBOX_METADATAS
}