Skip to content

Commit

Permalink
surname -> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
koojh74 committed Feb 16, 2016
1 parent c0a97bc commit 037f9a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -55,8 +55,9 @@ loplat's indoor positioning platform REST API - register a place, recognize a pl
'lng': 126.8872709, # 인식된 장소의 경도
'lat_est': 37.465, # 예측된 위치의 위도
'lng_est': 126.8872, # 예측된 위치의 경도
'accuracy': 0.8806 # 인식된 장소에 있을 확률값.
'accuracy': 0.8806 # 인식된 장소에 있을 확률값
'threshold': 0.68
'client_code': 'xxx' # 장소관리를위해 필요한 임의의 값을 정의해서 사용
}

* accuracy > threshold 인 경우 해당 장소 반경 10m 이내임
Expand Down Expand Up @@ -92,7 +93,7 @@ loplat's indoor positioning platform REST API - register a place, recognize a pl
'client_secret': 'test' # Mandatory
'placeinfo': {
'placename': 'starbucks', # Mandatory
'subname': 'timesquare',
'tags': 'timesquare, NY',
'category': 'Cafe', # Mandatory
'floor': 1, # Mandatory
'lat': 37.5123, # Mandatory
Expand Down
15 changes: 8 additions & 7 deletions placecollector-sample.py
Expand Up @@ -19,9 +19,10 @@ def getloplatplaces():
client_id = 'test'
client_secret = 'test'
data = {
'type': 'getplacelist',
'client_id': client_id,
'client_secret': client_secret
'client_secret': client_secret,

'type': 'getplacelist'
}

try:
Expand Down Expand Up @@ -77,7 +78,7 @@ def registerplace():
lng = 126.9397389
placeinfo = {
'placename': 'starbucks',
'subname': 'timesquare, manhattan',
'tags': 'timesquare, manhattan',
'category': 'Cafe',
'floor': 1,
'lat': lat,
Expand All @@ -86,7 +87,7 @@ def registerplace():
}


# request
#
client_id = 'test'
client_secret = 'test'
data = {
Expand Down Expand Up @@ -151,7 +152,7 @@ def modifyplaceinfo(placeid):
'placeid': placeid,
'placename': 'McDonald',
'category': 'Restaurant',
'subname': '42nd',
'tags': '42nd',
'floor': 99,
'lat': 37.5,
'lng': 126.9,
Expand Down Expand Up @@ -185,8 +186,8 @@ def modifyplaceinfo(placeid):


# registerplace()
# deleteplace(8031)
# modifyplaceinfo(8031)
# deleteplace(8033)
# modifyplaceinfo(8033)
getloplatplaces()


Expand Down

0 comments on commit 037f9a6

Please sign in to comment.