示例#1
0
文件: name.py 项目: sarostru/AccessTO
	def get(self):
		name=self.request.get("name")
		self.response.headers['Content-Type'] = 'text/plain'
		#database = fusion.DataBase(2334172)
		#database = fusion.DataBase(2337646)
		database = fusion.DataBase(2921075)
		my_facility = database.idRequest(name)
		response = facility.json(my_facility)
		self.response.out.write(response)
示例#2
0
	def get(self):
		service=self.request.get("service")
		latitude=self.request.get("latitude")
		longitude=self.request.get("longitude")
		self.response.headers['Content-Type'] = 'text/plain'
		response="Service: "+service+"\nLatitude: "+\
				latitude+"\nLongitude: "+longitude
		#database = fusion.DataBase(2334172)
		#database = fusion.DataBase(2337646)
		database = fusion.DataBase(2921075)
		my_facilities = database.nearbyRequest(latitude,longitude,service)
		response = facility.json(my_facilities)
		self.response.out.write(response)