Class: BaiduLBS::Geodata::Poi
- Inherits:
-
Client
- Object
- Client
- BaiduLBS::Geodata::Poi
show all
- Defined in:
- lib/baidu_lbs/geodata/poi.rb
Class Method Summary
collapse
Methods included from Request
#connection, #get, #post, #request
Class Method Details
.create(params) ⇒ Object
4
5
6
|
# File 'lib/baidu_lbs/geodata/poi.rb', line 4
def create(params)
post '/geodata/v3/poi/create', params
end
|
.delete(params) ⇒ Object
20
21
22
|
# File 'lib/baidu_lbs/geodata/poi.rb', line 20
def delete(params)
post '/geodata/v3/poi/delete', params
end
|
.detail(params) ⇒ Object
12
13
14
|
# File 'lib/baidu_lbs/geodata/poi.rb', line 12
def detail(params)
get '/geodata/v3/poi/detail', params
end
|
.list(params) ⇒ Object
8
9
10
|
# File 'lib/baidu_lbs/geodata/poi.rb', line 8
def list(params)
get '/geodata/v3/poi/list', params
end
|
.update(params) ⇒ Object
16
17
18
|
# File 'lib/baidu_lbs/geodata/poi.rb', line 16
def update(params)
post '/geodata/v3/poi/update', params
end
|
.upload(params) ⇒ Object
24
25
26
27
|
# File 'lib/baidu_lbs/geodata/poi.rb', line 24
def upload(params)
params[:poi_list] = Faraday::UploadIO.new(params[:poi_list], 'application/csv')
post '/geodata/v3/poi/upload', params, multipart: true
end
|