CSV ファイルを解析して住所を抽出し、Bing Maps REST API を使用してそれらをジオコーディングするアプリケーションを作成しました。私が抱えている問題は、同じファイルを複数回実行すると、異なる結果が得られることです。最初の試行では、行 2 と 6 が一致しない場合があります。次の試行では、行 2 と 6 は一致を返しますが、行 4 は返さない可能性があります。Fiddler を使用して HTTP トラフィックを検査しました。私の要求は適切に形成され、すべての応答は HTTP ステータス コード 200 と有効な JSON を返します。結果が得られるアドレスとそうでないアドレスがあり、特定のアドレスの成功または失敗は試行ごとに変化します。誰でも洞察を提供できますか?
アップデート
サンプルリクエスト:
GET http://dev.virtualearth.net/REST/v1/Locations?o=json&adminDistrict=MI&locality=Shelby&postalCode=49455-1299&addressLine=72+South+State+Street&key={MyApiKey} HTTP/1.1
Host: dev.virtualearth.net
サンプル応答:
HTTP/1.1 200 OK
Cache-Control: no-cache
Transfer-Encoding: chunked
Content-Type: application/json
Server: Microsoft-IIS/8.0
X-BM-TraceID: 9b6cfaa0abdb47b7b7e2790900bcddce
X-BM-Srv: BL2M001304, BL2MSNVM001275, BL2MSNVM001299
X-MS-BM-WS-INFO: 0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 22 Feb 2013 15:14:30 GMT
247
{
"authenticationResultCode":"ValidCredentials",
"brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png",
"copyright":"Copyright © 2013 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
"resourceSets":
[
{
"estimatedTotal":0,
"resources":[]
}
],
"statusCode":200,
"statusDescription":"OK",
"traceId":"9b6cfaa0abdb47b7b7e2790900bcddce|BL2M001304|02.00.83.1900|BL2MSNVM001275, BL2MSNVM001299"
}
0
MSDN フォーラムへの私の投稿: http://social.msdn.microsoft.com/Forums/en-US/bingmapsservices/thread/c7fea1b2-f87e-40c2-a3a6-496989a338b2#b885ca9a-018a-491f-9caa-a00a515cf9a8