2017-10-15 8 views
1

내가 오리온 컨텍스트 브로커 V1.7을 사용하고 특정 우체부에 GET을 사용하여 좌표로부터 1,000m 이내 개체 목록을 시도하고있다 :FIWARE Orion Context Broker : 좌표 근처에있는 엔티티를 검색하려면 어떻게합니까?

/v2/entities?georel=near&maxDistance=1000&geometry=point&coords=52.3766134;4.8971626 

내가 얻을 응답은 다음과 같습니다

{ 
    "error": "BadRequest", 
    "description": "Invalid query: georel /near/ without either minDistance nor maxDistance" 
} 

내가 뭘 잘못하고 있니?

답변

0

쿼리에 구문 오류가 있다고 생각합니다. NGSIv2 specification "절 지리적 조회"에서 :

georel=near;maxDistance:1000&geometry=point&coords=-40.4,-3.5 

그래서 쿼리는 다음과 같아야합니다

GET /v2/entities?georel=near;maxDistance:1000&geometry=point&coords=52.3766134;4.8971626