paraworld.map.SearchMapMark

Description

返回符合或包含关键字的第N页的map mark, 按标记等级从高到底排序

Parameters

Required Name Type Description
required keywords string 搜索关键字
optional type string 要搜索的标记的类型(MarkTilte,Desc),默认为“MarkTitle”
pageIndex int 第几页的数据,默认为1
pageNum int 每页多少条数据,默认为10
isApproved boolean 检索的数据是否需要已通过审核,默认为false

Example Return XML

<msg xmlns="">
        <resultCount type="int">2</resultCount>
        <totalResult type="int">100</totalResult>
        <marks>
                <param index="1">
                        <markID type="int">1</markID>
                        <markType type="int">1</markType>
                        <markTitle type="string">title1</markTitle>
                        <markStyle type="int">1</markStyle>
                        <x type="double">0</x>
                        <y type="double">0</y>
                        <isApproved type="boolean">true</isApproved>
                        <checkChangeL type="double">2686956</checkChangeL>
                </param>
                <param index="2">
                        <markID type="int">2</markID>
                        <markType type="int">1</markType>
                        <markTitle type="string">title2</markTitle>
                        <markStyle type="int">1</markStyle>
                        <x type="double">0.265845</x>
                        <y type="double">0.358658</y>
                        <isApproved type="boolean">true</isApproved>
                        <checkChangeL type="double">5681267</checkChangeL>
                </param>
        </marks>
</msg>

Error Codes

查看完整的Error Code

Test Cases

case 1

Input:

{

        ["keywords"]="test",

        ["type"]="MarkTitle",

        ["pageIndex"]=1,

        ["pageNum"]=2,

}

Result:

{

       ["resultCount"]=2,

       ["totalResult"]=100,

       ["marks"]={

              [1]={

                     ["markID"]=1,

                     ["markType"]=1,

                     ["markTitle"]="title1",
                     
                     ["markStyle"]=1,
                     
                     ["x"]=0,

                     ["y"]=0,

                     ["isApproved"]=true,

                     ["checkChangeL"]=2686956,

              },

              [2]={

                     ["markID"]=2,

                     ["markType"]=1,

                     ["markTitle"]="title2",
                     
                     ["markStyle"]=1,
                     
                     ["x"]=0.265845,

                     ["y"]=0.358658,

                     ["isApproved"]=true,

                     ["checkChangeL"]=5681267,

              },

       },

}
Topic revision: r1 - 2008-09-11 - CaoYF
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback