0

MapQuest Data Manager v2 (DMv2) にいくつかのデータがあり、検索 API (Web サービス) を使用してこのホストされたデータ セットを検索しようとしていますが、目的の結果が得られません。以下は、使用しているデータ セットとクエリのスナップショットです。

これらはフィールドです:

"storeid","brandname","onlineorderingenabled","street","zipcode","state","geocodereturncode","city","country","mqap_geography","mqap_quality","landmark","county","mqap_id","storename","longitude","latitude"

これはサンプル行です:

"1","Chili's","true","12815 Preston Rd","75230-1302","TX","","Dallas","US","POINT (-96.80363 32.92329)","P1AAA","","Dallas","ca6b6bae-945f-45fc-a8d1-3d512796150d","Preston/LBJ-Chili's","",""

検索クエリの例:

http://www.mapquestapi.com/search/v2/search?key=[My_Key here]&shapePoints=-80,26&outFormat=json&hostedData=hostedData=mqap.121144_BrinkerStores|storename ILIKE ?|Preston/LBJ-Chili's|storeid,storename,city


http://www.mapquestapi.com/search/v2/radius?key=[My_Key]&origin=Dallas&inFormat=json&json={hostedData:[{tableName:mqap.121144_BrinkerStores,extraCriteria:City ILIKE ?,parameters:[Dallas],columnNames:[storeid,storename,city,state]}]}

取得していませんstoredid,storenam,city,state。私を助けてください。

4

1 に答える 1

0

search/v2/search リクエストで、shapePoints が緯度、経度であり、その逆でないことを確認してください。また、storename のアポストロフィは、postgres バックエンド用に二重アポストロフィにする必要があります。

http://www.mapquestapi.com/search/v2/search?key=KEY&shapePoints=32.778149,-96.795403&hostedData=mqap.121144_BrinkerStores|storename=?|Knox-Chili%27%27s

search/v2/radius リクエストで、json にオリジンを含め、hostedData の名前をhostedDataList に変更します。

www.mapquestapi.com/search/v2/radius?key=KEY&inFormat=json&json={"origin":"Dallas,TX","hostedDataList":[{"tableName":"mqap.121144_BrinkerStores","extraCriteria":"City ILIKE ?","parameters":["Dallas"],columnNames:["storeid","storename","city","state"]}]}
于 2013-11-19T15:28:23.243 に答える