Code Monkey home page Code Monkey logo

monkeymapsearch's Introduction

MonkeyMapSearch

  • 串行化地图API,插件由来是因为百度地图在定位完成前不能执行其它请求,索性就做了这个队列化处理

#####引用

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/junhaiyang/Specs.git'

pod 'MonkeyMapConfig', '1.0.BMap'  #1.0.AMap:高德地图   1.0.BMap 百度地图
pod 'MonkeyMapSearch', '~> 1.0'

#####使用说明

#import "MonkeyMapSearch.h"


//配置地图 apiKey
[[MMKLocationLoader  shareInstance] configureMap:mapKey]

//方法调用
[MMKLocationLoader  shareInstance]  startLoad....   

//获取经纬度
-(MMKCustomLocationOperation *)startLoadCoordinate:(MMKLocationLoaderCoordinateBlock)finishedBlock;

//通过地址信息获取经纬度
-(MMKCustomLocationOperation *)startLoadCoordinateByAddress:(NSString *)address finishedBlock:(MMKLocationLoaderCoordinateByAddressBlock)finishedBlock;

//获取经纬度和地址信息
-(MMKCustomLocationOperation *)startLoadCoordinateAndAddress:(MMKLocationLoaderCoordinateAddressBlock)finishedBlock;

//经纬度获取地址信息
-(MMKCustomLocationOperation *)startLoadReverseGeoCode:(CLLocationCoordinate2D)coordinate finishedBlock:(MMKLocationLoaderReverseGeoCodeBlock)finishedBlock;

//周边信息检索
-(MMKCustomLocationOperation *)startLoadPoiSearch:(__MMKSearchObject *)poiSearch finishedBlock:(MMKLocationLoaderPoiResultBlock)finishedBlock;

//周边详细信息检索(仅限百度地图)
-(MMKCustomLocationOperation *)startLoadPoiDetailSearch:(BMKPoiDetailSearchOption *)poiSearch finishedBlock:(MMKLocationLoaderPoiDetailResultBlock)finishedBlock; 

//取消掉所有正在执行的检索
-(void)cancelAllLoad;

monkeymapsearch's People

Contributors

junhaiyang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.