Librarie
Azure.Maps.Search 2.0.0-beta.5
Problème
J'ai testé des adresses invalides dans mon service et utilisé Azure Maps pour la géolocalisation. Je rencontre des problèmes avec des adresses incorrectes.:
Exemple :
Query : "Cambodge, Québec Cambodge"
Je m'attendais à une réponse peu fiable, mais Azure Maps m'a donné :
Score: 0.87 //High
Address.StreetName : Rue du Cambodge
Address.Municipality : Marseille
Address.Municipality : Provence-Alpes-Côte d'Azur
Address.Country : France
Position.Longitude : 5.3751318
Position.Latitude : 43.2805184
Attendu
Je m'attendais à un score inférieur à 0,3 (médiocre), mais 0,87 ? À titre de comparaison, j'obtiens une réponse correcte avec Bing Maps.
Réponse obtenue par Azure Maps :
{ "summary": {
"query": "cambodge québec cambodge",
"queryType": "NON_NEAR",
"queryTime": 82,
"numResults": 9,
"offset": 0,
"totalResults": 9,
"fuzzyLevel": 2
},
"results": [
{
"type": "Street",
"id": "LAIeuyoP0xgdIq3M27HdYA",
"score": 0.87963835017856451,
"matchConfidence": {
"score": 0.87963835017856451
},
"address": {
"streetName": "Rue du Cambodge",
"municipalitySubdivision": "6ème Arrondissement",
"municipality": "Marseille",
"countrySecondarySubdivision": "Bouches-du-Rhône",
"countrySubdivision": "Provence-Alpes-Côte d'Azur",
"countrySubdivisionName": "Provence-Alpes-Côte d'Azur",
"countrySubdivisionCode": "PAC",
"countryCode": "FR",
"country": "France",
"countryCodeISO3": "FRA",
"freeformAddress": "Rue du Cambodge, Marseille",
"localName": "Marseille"
},
"position": {
"lat": 43.2805184,
"lon": 5.3751318
},
"viewport": {
"topLeftPoint": {
"lat": 43.28132,
"lon": 5.37465
},
"btmRightPoint": {
"lat": 43.27945,
"lon": 5.37523
}
}
},
{
"type": "Street",
"id": "2Es9hGvd5TS8SuiVGe5UmA",
"score": 0.87963835017856451,
"matchConfidence": {
"score": 0.87963835017856451
},
"address": {
"streetName": "Rue du Cambodge",
"municipality": "Grenay",
"countrySecondarySubdivision": "Pas-de-Calais",
"countrySubdivision": "Hauts-de-France",
"countrySubdivisionName": "Hauts-de-France",
"countrySubdivisionCode": "HDF",
"postalCode": "62160",
"countryCode": "FR",
"country": "France",
"countryCodeISO3": "FRA",
"freeformAddress": "Rue du Cambodge, 62160 Grenay",
"localName": "Grenay"
},
"position": {
"lat": 50.4452649,
"lon": 2.7542372
},
"viewport": {
"topLeftPoint": {
"lat": 50.44696,
"lon": 2.75136
},
"btmRightPoint": {
"lat": 50.44386,
"lon": 2.75664
}
}
},
{
"type": "Street",
"id": "IkdUUwFzJkTt7wsaxdX_vQ",
"score": 0.87963835017856451,
"matchConfidence": {
"score": 0.87963835017856451
},
"address": {
"streetName": "Rue du Cambodge",
"municipalitySubdivision": "20ème Arrondissement",
"municipality": "Paris",
"neighbourhood": "Gambetta",
"countrySecondarySubdivision": "Paris",
"countrySubdivision": "Île-de-France",
"countrySubdivisionName": "Île-de-France",
"countrySubdivisionCode": "IDF",
"postalCode": "75020",
"countryCode": "FR",
"country": "France",
"countryCodeISO3": "FRA",
"freeformAddress": "Rue du Cambodge, 75020 Paris",
"localName": "Paris"
},
"position": {
"lat": 48.8662682,
"lon": 2.3980079
},
"viewport": {
"topLeftPoint": {
"lat": 48.8668,
"lon": 2.39743
},
"btmRightPoint": {
"lat": 48.86542,
"lon": 2.39892
}
}
},
{
"type": "Street",
"id": "oWc270o08J6chH0SfDnlfA",
"score": 0.87963835017856451,
"matchConfidence": {
"score": 0.87963835017856451
},
"address": {
"streetName": "Rue du Cambodge",
"municipality": "Lorient",
"neighbourhood": "Keroman-Merville-Nouvelle Ville",
"countrySecondarySubdivision": "Morbihan",
"countrySubdivision": "Bretagne",
"countrySubdivisionName": "Bretagne",
"countrySubdivisionCode": "BRE",
"postalCode": "56100",
"countryCode": "FR",
"country": "France",
"countryCodeISO3": "FRA",
"freeformAddress": "Rue du Cambodge, 56100 Lorient",
"localName": "Lorient"
},
"position": {
"lat": 47.7381565,
"lon": -3.3761245
},
"viewport": {
"topLeftPoint": {
"lat": 47.73816,
"lon": -3.37613
},
"btmRightPoint": {
"lat": 47.73733,
"lon": -3.37551
}
}
},
{
"type": "Street",
"id": "m8uxBlj9niPvldKFFLrgTQ",
"score": 0.86047700677302252,
"matchConfidence": {
"score": 0.86047700677302252
},
"address": {
"streetName": "Rue Cambodge",
"municipality": "Oujda",
"countrySecondarySubdivision": "Oujda Angad",
"countrySubdivision": "L'Oriental",
"countrySubdivisionName": "L'Oriental",
"countrySubdivisionCode": "2",
"postalCode": "60000",
"countryCode": "MA",
"country": "Royaume du Maroc",
"countryCodeISO3": "MAR",
"freeformAddress": "Rue Cambodge, 60000 Oujda, L'Oriental",
"localName": "Oujda"
},
"position": {
"lat": 34.6906908,
"lon": -1.9124465
},
"viewport": {
"topLeftPoint": {
"lat": 34.69102,
"lon": -1.91324
},
"btmRightPoint": {
"lat": 34.69031,
"lon": -1.91149
}
}
},
{
"type": "Street",
"id": "WLQYXAECXCxlYG_K5-OLLA",
"score": 0.87963835017856451,
"matchConfidence": {
"score": 0.87963835017856451
},
"address": {
"streetName": "Passerelle du Cambodge",
"municipality": "Gentilly",
"countrySecondarySubdivision": "Val-de-Marne",
"countrySubdivision": "Île-de-France",
"countrySubdivisionName": "Île-de-France",
"countrySubdivisionCode": "IDF",
"postalCode": "94250",
"countryCode": "FR",
"country": "France",
"countryCodeISO3": "FRA",
"freeformAddress": "Passerelle du Cambodge, 94250 Gentilly",
"localName": "Gentilly"
},
"position": {
"lat": 48.8153604,
"lon": 2.3362625
},
"viewport": {
"topLeftPoint": {
"lat": 48.81659,
"lon": 2.33552
},
"btmRightPoint": {
"lat": 48.81435,
"lon": 2.33676
}
}
},
{
"type": "Street",
"id": "nsUFlqqLO-jPbUv59CA5hA",
"score": 0.84853054866128619,
"matchConfidence": {
"score": 0.84853054866128619
},
"address": {
"streetName": "Rue du Cambodge",
"municipalitySubdivision": "Medenine Sud",
"municipality": "Medenine",
"countrySubdivision": "Medenine",
"countrySubdivisionName": "Medenine",
"postalCode": "4100",
"countryCode": "TN",
"country": "Tunisie",
"countryCodeISO3": "TUN",
"freeformAddress": "Rue du Cambodge, Medenine, 4100",
"localName": "Medenine"
},
"position": {
"lat": 33.332884,
"lon": 10.4826333
},
"viewport": {
"topLeftPoint": {
"lat": 33.33298,
"lon": 10.48162
},
"btmRightPoint": {
"lat": 33.33261,
"lon": 10.48378
}
}
},
{
"type": "Street",
"id": "QYnC4rjBbpDfbcybsU_MOA",
"score": 0.84853054866128619,
"matchConfidence": {
"score": 0.84853054866128619
},
"address": {
"streetName": "Rue du Cambodge",
"municipalitySubdivision": "Tunis Ville",
"municipality": "Tunis",
"neighbourhood": "Bellevue",
"countrySubdivision": "Tunis",
"countrySubdivisionName": "Tunis",
"postalCode": "1009, 2023",
"countryCode": "TN",
"country": "Tunisie",
"countryCodeISO3": "TUN",
"freeformAddress": "Rue du Cambodge, Tunis, 1009, 2023",
"localName": "Tunis"
},
"position": {
"lat": 36.780254,
"lon": 10.194091
},
"viewport": {
"topLeftPoint": {
"lat": 36.78073,
"lon": 10.19357
},
"btmRightPoint": {
"lat": 36.77969,
"lon": 10.19469
}
}
},
{
"type": "Street",
"id": "044rRXnHqBoKIE7F-_Pt9A",
"score": 0.78416738092639471,
"matchConfidence": {
"score": 0.78416738092639471
},
"address": {
"streetName": "Rue Combodge",
"municipality": "Nador",
"countrySecondarySubdivision": "Nador",
"countrySubdivision": "L'Oriental",
"countrySubdivisionName": "L'Oriental",
"countrySubdivisionCode": "2",
"postalCode": "62000",
"countryCode": "MA",
"country": "Royaume du Maroc",
"countryCodeISO3": "MAR",
"freeformAddress": "Rue Combodge, 62000 Nador, L'Oriental",
"localName": "Nador"
},
"position": {
"lat": 35.1691758,
"lon": -2.9392944
},
"viewport": {
"topLeftPoint": {
"lat": 35.16955,
"lon": -2.93968
},
"btmRightPoint": {
"lat": 35.16868,
"lon": -2.93902
}
}
}
]
}