ipoi.ice 3.09 KB
module POI {

	struct poi_info_t
	{
		int 	id;		//poi id
		float 	lng;
		float 	lat;
		int 	citycode;
		int 	type;
		string 	name;
		string 	addr;
		string 	tel;
		int 	weight;
		int 	distance;
	};

	sequence<poi_info_t> poi_info_seq_t;
	sequence<int> poi_type_seq_t;

	enum POI_INDEX_TYPE_CONSTANTS
	{
		emIndexName,
		emIndexAddr,
		emIndexCustom,
		index_type_count,
	};

	struct geopoint
	{
		float lng;
		float lat;
	};


	struct geocoding_result
	{
		int level;
		int confidence;
		geopoint pt;
	};

	/*
	*	POI search
	*/
	interface IPOISearchFTR
	{

	/*
			input:
							emIndexType
							key
							citycode
							limit
			output:
			      	a list of poi
	*/
	int  poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, int citycode, int limit, out poi_info_seq_t arrPoiInfo);



	/*
			input:
							emIndexType
							key
							citycode
							limit
							a list of type
			output:
			      a list of poi
	*/
	int  poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, int citycode, poi_type_seq_t arrType, int limit,
									out poi_info_seq_t arrPoiInfo);


  /*
			input:
							emIndexType
							key
							citycode
							limit
							a list of type
							lng lat :pos
							maxDis:distance

			output:
			      a list of poi
	*/
	int  poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, string key, poi_type_seq_t arrType, geopoint pt, int maxDis, int limit,
									 out poi_info_seq_t arrPoiInfo);


	/*
			input:
							key
							region    city
							limit
			output:
			      a list of poi
	*/
	int  poi_search_by_key_cityname(string key, string cityname, int limit, out poi_info_seq_t arrPoiInfo);



	/*
			input:
							key
							citycode
							limit
							省内查询
			output:
			      a list of poi
	*/
	int  poi_search_by_key_citycode(string key, int citycode, int limit, out poi_info_seq_t arrPoiInfo);


	/*
		 地址解析
		input:
		    string  strGeopointDescription
		output:
		     geocoding_result rst
	*/
	int Geocoding(string strAddress, out geocoding_result rst);

	};	// interface IPOISearchFTR


	interface IPOISearchNear
	{

	 /*
			input:
							ptLL
							ptRR
							a list of type
							numLimit
			output:
			      a list of poi
	*/
	int poi_search_by_rect(geopoint ptLL,geopoint ptRR,poi_type_seq_t arrType,int numLimit,out poi_info_seq_t arrPoiInfo);


	 /*
			input:
							pt
							maxDis
							a list of type
							numLimit
			output:
			      a list of poi
	*/
	int poi_search_by_circle(geopoint pt,int maxDis,poi_type_seq_t arrType,int numLimit,out poi_info_seq_t arrPoiInfo);



	/*
			input:
							citycode
							limit
							a list of type
			output:
			      a list of poi
	*/
	int  poi_search_by_city(int citycode,poi_type_seq_t arrType,int limit,out poi_info_seq_t arrPoiInfo);


	/*
		 逆地址解析
		input:
		    geopoint  pt
		output:
		     string strGeopointDescription

	*/
	int ReverseGeocoding(geopoint pt,out string strGeopointDescription);

	// 逆地址解析, 格式:广东省广州市天河区国际康体贸易中心附近
	int ReverseGeocoding2(geopoint pt, out string strGeopointDescription);

	}; 	// interface IPOISearchFTR


};	// module