2017-01-12 2 views
0

私は、WendenとEngelskirchen、Germanyの間でA4のトラフィックデータを取得しようとしています。私は、このリンク方式で使用しています:無料の公共の基本計画で交通事故のデータを 'ここから'入手する

https://traffic.api.here.com/traffic/6.1/incidents.xml?bbox=50.98690,7.40913;50.96840,7.87189&app_id={MY_FREE_API_PLAN_APP_ID}&app_code={MY_FREE_API_PLAN_APP_CODE} 

をしかし、私は取得XMLは言う:

<Error_Message><Error>This is not a valid app_id and app_code pair. 
Please verify that the values are not swapped between the app_id and 
app_code and the values provisioned by HERE (either by your customer 
representative or via http://developer.here.com/myapps) were copied 
correctly into the request.</Error><Error_description>NA</Error_description> 
</Error_Message> 

APP_IDとにApp_Codeが100%正しいです。私はこのデータを家庭用に使用したいと思っています。この時点で商用利用は計画されていません。

データのリクエストに間違いがありますか?「ここ」にこの方法でデータを購入する必要があると教えて欲しいですか?

APIプランの概要:https://developer.here.com/plans リンクこの例で構築:勘でhttps://developer.here.com/rest-apis/documentation/traffic/topics/request-constructing.html

答えて

0

は私がのための資格情報を持っていないので(中括弧ルーティングAPIへのリクエストで、APP_IDとにApp_Code周り{ }を使用してみましたトラフィックAPI)、同様の応答を得ました。したがって、app_idとapp_codeの周りに中括弧を使用している場合は、それらを削除してください。

https://route.cit.api.here.com/routing/7.2/getlinkinfo.xml?waypoint=43.066628,-71.471729&app_id={DemoAppId01082013GAL}&app_code={AJKnXv84fjrb0KIHawS0Tg}&linkattributes=all

を、これは動作します:

例えば、これは失敗し

https://route.cit.api.here.com/routing/7.2/getlinkinfo.xml?waypoint=43.066628,-71.471729&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg&linkattributes=all

関連する問題