| Package | Description |
|---|---|
| com.baidu.mapapi.favorite |
收藏夹相关方法
|
| com.baidu.mapapi.map |
地图展示与操作相关方法,覆盖物相关方法
|
| com.baidu.mapapi.map.offline |
离线地图相关方法
|
| com.baidu.mapapi.model |
定义地理经纬度坐标类、地理经纬度范围类。
|
| com.baidu.mapapi.navi |
调起百度地图客户端驾车导航、步行导航、骑行导航功能
|
| com.baidu.mapapi.radar |
周边雷达相关方法
|
| com.baidu.mapapi.search.core |
检索模块公共数据结结构
|
| com.baidu.mapapi.search.district |
行政区域检索
|
| com.baidu.mapapi.search.geocode |
地址编码及逆地址编码
|
| com.baidu.mapapi.search.poi |
POI检索
|
| com.baidu.mapapi.search.route |
路径规划
|
| com.baidu.mapapi.search.share |
共享URL
|
| com.baidu.mapapi.search.sug |
建议搜索
|
| com.baidu.mapapi.utils |
测距、测面积、空间关系判断、坐标转换等工具
|
| com.baidu.mapapi.utils.poi |
调起百度地图客户端poi检索功能
|
| com.baidu.mapapi.utils.route |
调起百度地图客户端驾车、步行、公交路线规划功能
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
FavoritePoiInfo.getPt()
获取点坐标
|
| Modifier and Type | Method and Description |
|---|---|
FavoritePoiInfo |
FavoritePoiInfo.pt(LatLng pt)
poi点坐标,必选
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
WeightedLatLng.latLng
地理位置
|
LatLng |
MapStatus.target
地图操作的中心点。
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
Projection.fromScreenLocation(Point point)
将屏幕坐标转换成地理坐标
|
LatLng |
Circle.getCenter()
获取圆心坐标
|
LatLng |
CircleOptions.getCenter()
获取圆心坐标
|
LatLng |
Dot.getCenter()
获取圆点圆心坐标
|
LatLng |
DotOptions.getCenter()
获取圆点圆心坐标
|
LatLng |
Arc.getEndPoint()
获取弧线终点坐标
|
LatLng |
ArcOptions.getEndPoint()
获取弧线的终点坐标
|
LatLng |
Arc.getMiddlePoint()
获取弧线中点坐标
|
LatLng |
ArcOptions.getMiddlePoint()
获取弧线的中点坐标
|
LatLng |
GroundOverlay.getPosition()
获取 ground 覆盖物位置信息
|
LatLng |
GroundOverlayOptions.getPosition()
获取 ground 覆盖物位置信息
|
LatLng |
MapPoi.getPosition()
获取该兴趣点的地理坐标
|
LatLng |
Marker.getPosition()
获取 Marker 覆盖物的位置坐标
|
LatLng |
MarkerOptions.getPosition()
获取 marker 覆盖物的位置坐标
|
LatLng |
Text.getPosition()
获取文字覆盖物的地理坐标
|
LatLng |
TextOptions.getPosition()
获取文字覆盖物的地理坐标
|
LatLng |
Arc.getStartPoint()
获取弧线起点坐标
|
LatLng |
ArcOptions.getStartPoint()
获取弧线的起点坐标
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LatLng> |
Polygon.getPoints()
获取多边形坐标点列表
|
java.util.List<LatLng> |
PolygonOptions.getPoints()
获取多边形坐标点列表
|
java.util.List<LatLng> |
Polyline.getPoints()
获取折线坐标点列表
|
java.util.List<LatLng> |
PolylineOptions.getPoints()
获取折线坐标点列表
|
| Modifier and Type | Method and Description |
|---|---|
CircleOptions |
CircleOptions.center(LatLng center)
设置圆心坐标
|
DotOptions |
DotOptions.center(LatLng center)
设置圆点的圆心坐标
|
static MapStatusUpdate |
MapStatusUpdateFactory.newLatLng(LatLng latLng)
设置地图新中心点
|
static MapStatusUpdate |
MapStatusUpdateFactory.newLatLngZoom(LatLng latLng,
float zoom)
设置地图中心点以及缩放级别
|
void |
BaiduMap.OnMapClickListener.onMapClick(LatLng point)
地图单击事件回调函数
|
void |
BaiduMap.OnMapDoubleClickListener.onMapDoubleClick(LatLng point)
地图双击事件监听回调函数
|
void |
BaiduMap.OnMapLongClickListener.onMapLongClick(LatLng point)
地图长按事件监听回调函数
|
ArcOptions |
ArcOptions.points(LatLng start,
LatLng middle,
LatLng end)
设置弧线的起点、中点、终点坐标
|
GroundOverlayOptions |
GroundOverlayOptions.position(LatLng latLng)
设置 Ground 覆盖物位置信息方式一,与
GroundOverlayOptions.dimensions(int, int)配合使用 |
MapViewLayoutParams.Builder |
MapViewLayoutParams.Builder.position(LatLng position)
指定 MapViewLayoutParams 的经纬度坐标
|
MarkerOptions |
MarkerOptions.position(LatLng position)
设置 marker 覆盖物的位置坐标
|
TextOptions |
TextOptions.position(LatLng position)
设置文字覆盖物地理坐标
|
void |
Circle.setCenter(LatLng center)
设置圆心坐标
|
void |
Dot.setCenter(LatLng center)
设置圆点的圆心坐标
|
void |
Arc.setPoints(LatLng start,
LatLng middle,
LatLng end)
设置弧线的起点、中点、终点坐标
|
void |
GroundOverlay.setPosition(LatLng latLng)
设置 Ground 覆盖物位置信息方式一,与
GroundOverlay.setDimensions(int, int)配合使用 |
void |
Marker.setPosition(LatLng position)
设置 Marker 覆盖物的位置坐标
|
void |
Text.setPosition(LatLng position)
设置文字覆盖物地理坐标
|
MapStatus.Builder |
MapStatus.Builder.target(LatLng location)
设置地图中心点
|
PointF |
Projection.toOpenGLLocation(LatLng location,
MapStatus mapStatus)
将地理坐标转换成openGL坐标,在 OnMapDrawFrameCallback 的 onMapDrawFrame 函数中使用。
|
Point |
Projection.toScreenLocation(LatLng location)
将地理坐标转换成屏幕坐标
|
| Modifier and Type | Method and Description |
|---|---|
HeatMap.Builder |
HeatMap.Builder.data(java.util.Collection<LatLng> val)
设置热力图绘制的数据,data 或 weightedData接口必须设置其中之一
|
PolygonOptions |
PolygonOptions.points(java.util.List<LatLng> points)
设置多边形坐标点列表
|
PolylineOptions |
PolylineOptions.points(java.util.List<LatLng> points)
设置折线坐标点列表
|
void |
Polygon.setPoints(java.util.List<LatLng> points)
设置多边形坐标点列表
|
void |
Polyline.setPoints(java.util.List<LatLng> points)
设置折线坐标点列表
|
| Constructor and Description |
|---|
InfoWindow(BitmapDescriptor bd,
LatLng position,
int yOffset,
InfoWindow.OnInfoWindowClickListener listener)
通过传入的 bitmap descriptor 构造一个 InfoWindow。
|
InfoWindow(View view,
LatLng position,
int yOffset)
通过传入的 view 构造一个 InfoWindow, 此时只是利用该view生成一个Bitmap绘制在地图中,监听事件由开发者实现。
|
WeightedLatLng(LatLng latLng)
构造函数,使用默认权值
|
WeightedLatLng(LatLng latLng,
double intensity)
构造函数
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
MKOLUpdateElement.geoPt
城市中心点坐标
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
LatLngBounds.northeast
该地理范围东北坐标
|
LatLng |
LatLngBounds.southwest
该地理范围西南坐标
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
LatLngBounds.getCenter()
获取该地理范围的中心地理坐标
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LatLngBounds.contains(LatLng point)
判断该地理范围是否包含一个地理位置
|
LatLngBounds.Builder |
LatLngBounds.Builder.include(LatLng point)
让该地理范围包含一个地理位置坐标
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
NaviParaOption.getEndPoint()
获取导航终点坐标
|
LatLng |
NaviParaOption.getStartPoint()
获取导航起点坐标
|
| Modifier and Type | Method and Description |
|---|---|
NaviParaOption |
NaviParaOption.endPoint(LatLng endPoint)
导航终点, 百度经纬度坐标
|
NaviParaOption |
NaviParaOption.startPoint(LatLng startPoint)
导航起点, 百度经纬度坐标
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
RadarNearbyInfo.pt
用户坐标
|
LatLng |
RadarUploadInfo.pt
坐标
|
| Modifier and Type | Method and Description |
|---|---|
RadarNearbySearchOption |
RadarNearbySearchOption.centerPt(LatLng center)
搜索中心点,可选,默认上次上传的用户位置
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
PoiInfo.location
poi坐标, 当ePoiType为2或4时,pt 为空
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<LatLng> |
RouteStep.mWayPoints
路段所经过的地理坐标集合
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
RouteNode.getLocation()
获取位置
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LatLng> |
RouteStep.getWayPoints()
返回路段所经过的地理坐标集合
|
| Modifier and Type | Method and Description |
|---|---|
static RouteNode |
RouteNode.location(LatLng location)
设置位置
|
void |
RouteNode.setLocation(LatLng location)
设置位置
|
static RouteNode |
RouteNode.titleAndLocation(java.lang.String title,
LatLng location)
设置标题和位置
|
| Modifier and Type | Method and Description |
|---|---|
void |
RouteStep.setWayPoints(java.util.List<LatLng> wayPoints)
设置路段所经过的地理坐标集合
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
DistrictResult.getCenterPt()
获取行政区域中心点
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.List<LatLng>> |
DistrictResult.getPolylines()
获取行政区域边界坐标点
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
GeoCodeResult.getLocation()
获取位置信息
|
LatLng |
ReverseGeoCodeResult.getLocation()
位置坐标
|
| Modifier and Type | Method and Description |
|---|---|
ReverseGeoCodeOption |
ReverseGeoCodeOption.location(LatLng location)
设置反地理编码位置坐标
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
PoiIndoorInfo.latLng
商铺所在地理坐标
|
LatLng |
PoiAddrInfo.location
坐标
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
PoiDetailResult.getLocation()
获取 poi 位置
|
| Modifier and Type | Method and Description |
|---|---|
PoiNearbySearchOption |
PoiNearbySearchOption.location(LatLng location)
检索位置
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
PlanNode.getLocation() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LatLng> |
BikingRouteLine.BikingStep.getWayPoints() |
java.util.List<LatLng> |
DrivingRouteLine.DrivingStep.getWayPoints()
获取途径点信息
|
java.util.List<LatLng> |
TransitRouteLine.TransitStep.getWayPoints() |
java.util.List<LatLng> |
WalkingRouteLine.WalkingStep.getWayPoints() |
| Modifier and Type | Method and Description |
|---|---|
static PlanNode |
PlanNode.withLocation(LatLng location)
通过指定经纬度确定出行节点信息
|
| Modifier and Type | Method and Description |
|---|---|
LocationShareURLOption |
LocationShareURLOption.location(LatLng location)
共享点位置
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
SuggestionResult.SuggestionInfo.pt
联想结果坐标点
|
| Modifier and Type | Method and Description |
|---|---|
SuggestionSearchOption |
SuggestionSearchOption.location(LatLng loction)
指定位置
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
CoordinateConverter.convert()
执行坐标转换操作
|
static LatLng |
SpatialRelationUtil.getNearestPointFromLine(java.util.List<LatLng> mPoints,
LatLng point)
返回某点距线上最近的点
|
| Modifier and Type | Method and Description |
|---|---|
static double |
AreaUtil.calculateArea(LatLng northeast,
LatLng southwest)
计算地图上矩形区域的面积,单位平方米
|
CoordinateConverter |
CoordinateConverter.coord(LatLng srcCoord)
设置源坐标数据
|
static double |
DistanceUtil.getDistance(LatLng p1LL,
LatLng p2LL)
返回两个点之间的距离
|
static LatLng |
SpatialRelationUtil.getNearestPointFromLine(java.util.List<LatLng> mPoints,
LatLng point)
返回某点距线上最近的点
|
static boolean |
SpatialRelationUtil.isCircleContainsPoint(LatLng center,
int radius,
LatLng point)
判断圆形是否包含传入的经纬度点
|
static boolean |
SpatialRelationUtil.isPolygonContainsPoint(java.util.List<LatLng> mPoints,
LatLng point)
返回一个点是否在一个多边形区域内
|
| Modifier and Type | Method and Description |
|---|---|
static LatLng |
SpatialRelationUtil.getNearestPointFromLine(java.util.List<LatLng> mPoints,
LatLng point)
返回某点距线上最近的点
|
static boolean |
SpatialRelationUtil.isPolygonContainsPoint(java.util.List<LatLng> mPoints,
LatLng point)
返回一个点是否在一个多边形区域内
|
| Modifier and Type | Field and Description |
|---|---|
LatLng |
DispathcPoiData.pt
poi点坐标,必选
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
PoiParaOption.getCenter()
获取poi检索 中心点
|
| Modifier and Type | Method and Description |
|---|---|
PoiParaOption |
PoiParaOption.center(LatLng center)
poi检索 中心点
|
| Modifier and Type | Method and Description |
|---|---|
LatLng |
RouteParaOption.getEndPoint()
获取路线检索终点
|
LatLng |
RouteParaOption.getStartPoint()
获取路线检索起点
|
| Modifier and Type | Method and Description |
|---|---|
RouteParaOption |
RouteParaOption.endPoint(LatLng endPoint)
路线检索终点
|
RouteParaOption |
RouteParaOption.startPoint(LatLng startPoint)
路线检索起点
|