poisearch

poi search module

License

License

Categories

Categories

Search Business Logic Libraries
GroupId

GroupId

com.amap.api
ArtifactId

ArtifactId

poisearchmodule
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

aar
Description

Description

poisearch
poi search module
Project URL

Project URL

https://github.com/amap-demo/android-poisearch-demo
Source Code Management

Source Code Management

https://github.com/amap-demo/android-poisearch-demo

Download poisearchmodule

How to add to project

<!-- https://jarcasting.com/artifacts/com.amap.api/poisearchmodule/ -->
<dependency>
    <groupId>com.amap.api</groupId>
    <artifactId>poisearchmodule</artifactId>
    <version>1.1.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.amap.api/poisearchmodule/
implementation 'com.amap.api:poisearchmodule:1.1.1'
// https://jarcasting.com/artifacts/com.amap.api/poisearchmodule/
implementation ("com.amap.api:poisearchmodule:1.1.1")
'com.amap.api:poisearchmodule:aar:1.1.1'
<dependency org="com.amap.api" name="poisearchmodule" rev="1.1.1">
  <artifact name="poisearchmodule" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.amap.api', module='poisearchmodule', version='1.1.1')
)
libraryDependencies += "com.amap.api" % "poisearchmodule" % "1.1.1"
[com.amap.api/poisearchmodule "1.1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 25.1.0
com.android.support.constraint » constraint-layout jar 1.0.0-beta4

Project Modules

There are no modules declared in this project.

android-poisearch-demo

AMap 检索的逻辑模块。出行类app在进行目的地检索时可以直接利用此组件,以达到实现功能并缩短开发时间的目的。 其中AMapPoiSearchModule是功能组件,AMapPoiSearchDemo是demo

前述

配置搭建AndroidSDK工程

使用场景

AMapPoiSearchModule 提供了目的地检索的组件。

组件截图

使用方法

此处以MainActivity为例进行介绍:

step1. 在onCreate中初始化Widget和ModuleDelegte

 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        RelativeLayout contentView = (RelativeLayout)findViewById(R.id.content_view);

        mSearchModuelDeletage = new SearchModuleDelegate();
        mSearchModuelDeletage.bindParentDelegate(mSearchModuleParentDelegate);
        contentView.addView(mSearchModuelDeletage.getWidget(this));
    }

step2. 在SearchModuleDelegate.IParentDelegate进行回调逻辑

private SearchModuleDelegate.IParentDelegate mSearchModuleParentDelegate = new IParentDelegate() {
        @Override
        public void onChangeCityName() {
            showToast("选择城市");
            Intent intent = new Intent();
            intent.setClass(MainActivity.this, CityChooseActivity.class);
            intent.putExtra(CityChooseActivity.CURR_CITY_KEY, mSearchModuelDeletage.getCurrCity().getCity());
            MainActivity.this.startActivityForResult(intent, MAIN_ACTIVITY_REQUEST_CHOOSE_CITY_ADDRESS_CODE);
        }
......
com.amap.api

AMAP-Demo

高德开放平台示例中心

Versions

Version
1.1.1
1.1.0
1.0.0