poisearch

poi search demo

License

License

Categories

Categories

Search Business Logic Libraries
GroupId

GroupId

com.github.amap-demo
ArtifactId

ArtifactId

poisearch
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

aar
Description

Description

poisearch
poi search demo
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 poisearch

How to add to project

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

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.github.amap-demo

AMAP-Demo

高德开放平台示例中心

Versions

Version
1.1.0
1.0.0