Ejemplo n.º 1
0
 def post(self, *args, **kwargs):
     city = kwargs.get("city")
     pms = json.loads(self.request.body)
     loc = {}
     loc['lng'] = pms.get("lng")
     loc['lat'] = pms.get("lat")
     self.service = BoroughOnlineService(city=city)
     data = self.BoroughInfoService.getCityarea(city=city, loc=loc)
     self.result["data"] = data
     self.write(self.result)
Ejemplo n.º 2
0
 def initialize(self):
     self.service = BoroughOnlineService()
Ejemplo n.º 3
0
 def initialize(self):
     self.result = {"message": "success", "code": 200}
     self.service = BoroughOnlineService()
Ejemplo n.º 4
0
 def initialize(self):
     self.result = {"message": "success", "code": 200}
     self.service = BoroughOnlineService()
     self.cityarea_service = CityareaService()
     self.cityarea2_service = Cityarea2Service()