点击或拖拽改变大小

GPSPlaceSearch 方法 (String, String, String, PointF, AmapPlaceSearchResultHandler, Int32)

地点搜索

命名空间:  Smobiler.Core.Controls
程序集:  Smobiler.Core (在 Smobiler.Core.dll 中) 版本:6.0.641.16928
语法
public static void PlaceSearch(
	string sessionId,
	string amapKey,
	string keyWord,
	PointF loc,
	AmapPlaceSearchResultHandler handler,
	int resultCount = 20
)

参数

sessionId
类型:SystemString
客户端会话编号
amapKey
类型:SystemString
高德开放平台Key
keyWord
类型:SystemString
关键字
loc
类型:System.DrawingPointF
起始坐标点(x: Longitude经度,y: Latitude纬度)
handler
类型:Smobiler.Core.ControlsAmapPlaceSearchResultHandler
结果回调
resultCount (Optional)
类型:SystemInt32
返回的结果数量,默认为20
备注
此功能使用高德提供的服役,所以需要用户在高德开放平台中,申请应用的Web服务功能。
参见