com.baidu.mapapi.search.poi.PoiIndoorResult Java Examples
The following examples show how to use
com.baidu.mapapi.search.poi.PoiIndoorResult.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SearchInteracter.java From BmapLite with GNU General Public License v3.0 | 6 votes |
private void getPoiDetailsByBaidu(String uid, OnBaseListener listener) { mPoiSearchBaidu.setOnGetPoiSearchResultListener(new OnGetPoiSearchResultListener() { @Override public void onGetPoiResult(PoiResult poiResult) { } @Override public void onGetPoiDetailResult(PoiDetailResult poiDetailResult) { } @Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { } }); mPoiSearchBaidu.searchPoiDetail(new PoiDetailSearchOption().poiUid(uid)); }
Example #2
Source File: SearchInteracter.java From BmapLite with Apache License 2.0 | 6 votes |
private void getPoiDetailsByBaidu(String uid, OnBaseListener listener) { mPoiSearchBaidu.setOnGetPoiSearchResultListener(new OnGetPoiSearchResultListener() { @Override public void onGetPoiResult(PoiResult poiResult) { } @Override public void onGetPoiDetailResult(PoiDetailResult poiDetailResult) { } @Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { } }); mPoiSearchBaidu.searchPoiDetail(new PoiDetailSearchOption().poiUid(uid)); }
Example #3
Source File: SearchInteracter.java From BmapLite with GNU General Public License v3.0 | 4 votes |
private void searchPoiNearbyByBaidu(MyPoiModel nearby, String keyword, int page, final OnSearchResultListener listener) { mPoiSearchBaidu.setOnGetPoiSearchResultListener(new OnGetPoiSearchResultListener() { @Override public void onGetPoiResult(PoiResult poiResult) { if (null != poiResult && null != poiResult.getAllPoi() && !poiResult.getAllPoi().isEmpty()) { List<MyPoiModel> list = new ArrayList<>(); for (PoiInfo poi : poiResult.getAllPoi()) { MyPoiModel myPoi = new MyPoiModel(mType); myPoi.setCity(poi.city); myPoi.setUid(poi.uid); myPoi.setAddress(poi.address); myPoi.setName(poi.name); myPoi.setInfo(poi.phoneNum); if (null != poi.location) { myPoi.setLatitude(poi.location.latitude); myPoi.setLongitude(poi.location.longitude); } if (poi.type == PoiInfo.POITYPE.BUS_LINE) { myPoi.setTypePoi(TypePoi.BUS_LINE); } else if (poi.type == PoiInfo.POITYPE.SUBWAY_LINE) { myPoi.setTypePoi(TypePoi.SUBWAY_LINE); } else if (poi.type == PoiInfo.POITYPE.BUS_STATION) { myPoi.setTypePoi(TypePoi.BUS_STATION); } else if (poi.type == PoiInfo.POITYPE.SUBWAY_STATION) { myPoi.setTypePoi(TypePoi.SUBWAY_STATION); } else if (poi.type == PoiInfo.POITYPE.POINT) { myPoi.setTypePoi(TypePoi.POINT); } list.add(myPoi); } listener.setSearchResult(list); listener.onShowData("search"); } else { listener.onNoData("search"); } } @Override public void onGetPoiDetailResult(PoiDetailResult poiDetailResult) { } @Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { } }); mPoiSearchBaidu.searchNearby(new PoiNearbySearchOption().location(new LatLng(nearby.getLatitude(), nearby.getLongitude())).keyword(keyword).radius(20000).sortType(PoiSortType.distance_from_near_to_far).pageNum(page).pageCapacity(20)); }
Example #4
Source File: SearchInteracter.java From BmapLite with Apache License 2.0 | 4 votes |
private void searchPoiNearbyByBaidu(MyPoiModel nearby, String keyword, int page, final OnSearchResultListener listener) { mPoiSearchBaidu.setOnGetPoiSearchResultListener(new OnGetPoiSearchResultListener() { @Override public void onGetPoiResult(PoiResult poiResult) { if (null != poiResult && null != poiResult.getAllPoi() && !poiResult.getAllPoi().isEmpty()) { List<MyPoiModel> list = new ArrayList<>(); for (PoiInfo poi : poiResult.getAllPoi()) { MyPoiModel myPoi = new MyPoiModel(mType); myPoi.setCity(poi.city); myPoi.setUid(poi.uid); myPoi.setAddress(poi.address); myPoi.setName(poi.name); myPoi.setInfo(poi.phoneNum); if (null != poi.location) { myPoi.setLatitude(poi.location.latitude); myPoi.setLongitude(poi.location.longitude); } if (poi.type == PoiInfo.POITYPE.BUS_LINE) { myPoi.setTypePoi(TypePoi.BUS_LINE); } else if (poi.type == PoiInfo.POITYPE.SUBWAY_LINE) { myPoi.setTypePoi(TypePoi.SUBWAY_LINE); } else if (poi.type == PoiInfo.POITYPE.BUS_STATION) { myPoi.setTypePoi(TypePoi.BUS_STATION); } else if (poi.type == PoiInfo.POITYPE.SUBWAY_STATION) { myPoi.setTypePoi(TypePoi.SUBWAY_STATION); } else if (poi.type == PoiInfo.POITYPE.POINT) { myPoi.setTypePoi(TypePoi.POINT); } list.add(myPoi); } listener.setSearchResult(list); listener.onShowData("search"); } else { listener.onNoData("search"); } } @Override public void onGetPoiDetailResult(PoiDetailResult poiDetailResult) { } @Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { } }); mPoiSearchBaidu.searchNearby(new PoiNearbySearchOption().location(new LatLng(nearby.getLatitude(), nearby.getLongitude())).keyword(keyword).radius(20000).sortType(PoiSortType.distance_from_near_to_far).pageNum(page).pageCapacity(20)); }
Example #5
Source File: MyPoiSearchListener.java From AndroidAnimationExercise with Apache License 2.0 | 4 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { Log.e("onGetPoiIndoorResult", "--------->" + poiIndoorResult); }
Example #6
Source File: AddressEditDelegate.java From FastWaiMai with MIT License | 2 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { }
Example #7
Source File: LocationDelegate.java From FastWaiMai with MIT License | 2 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { }
Example #8
Source File: MainActivity.java From BaiDuMapSelectDemo with Apache License 2.0 | 2 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { }
Example #9
Source File: LocationActivity.java From imsdk-android with MIT License | 2 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { }
Example #10
Source File: SetFavoriteMapActivity.java From AssistantBySDK with Apache License 2.0 | 2 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { }
Example #11
Source File: NaviConfirmPointActivity.java From AssistantBySDK with Apache License 2.0 | 2 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { }
Example #12
Source File: TrafficShowPresenter.java From AssistantBySDK with Apache License 2.0 | 2 votes |
@Override public void onGetPoiIndoorResult(PoiIndoorResult poiIndoorResult) { }
Example #13
Source File: IndoorPoiOverlay.java From Mobike with Apache License 2.0 | 2 votes |
/** * 设置IndoorPoi数据 * * @param indoorpoiResult * 设置indoorpoiResult数据 */ public void setData(PoiIndoorResult indoorpoiResult) { this.mIndoorPoiResult = indoorpoiResult; }
Example #14
Source File: IndoorPoiOverlay.java From Mobike with Apache License 2.0 | 2 votes |
/** * 获取该 IndoorPoiOverlay 的 indoorpoi数据 * * @return */ public PoiIndoorResult getIndoorPoiResult() { return mIndoorPoiResult; }
Example #15
Source File: IndoorPoiOverlay.java From react-native-baidu-map with MIT License | 2 votes |
/** * 设置IndoorPoi数据 * * @param indoorpoiResult * 设置indoorpoiResult数据 */ public void setData(PoiIndoorResult indoorpoiResult) { this.mIndoorPoiResult = indoorpoiResult; }
Example #16
Source File: IndoorPoiOverlay.java From react-native-baidu-map with MIT License | 2 votes |
/** * 获取该 IndoorPoiOverlay 的 indoorpoi数据 * * @return */ public PoiIndoorResult getIndoorPoiResult() { return mIndoorPoiResult; }