import json
import pymongo
from module.controller.con import *
from module.controller.validator import queid
from pymongo import MongoClient
from config import MDB
from bson import BSON
from bson import json_util


src = MDB['source']
port = MDB['port']

class GIS(object):
    def __init__(self, args):
        self.arg = args
        self.client = MongoClient(src, port)
        self.db = self.client.geo
        self.collection = self.db.coordinates
    def getGis(self):
        docs = []
        data = {}
        print({"bookingID": "{id}".format(id=self.arg)})
        for collection in self.collection.find({"bookingID":"{}".format(self.arg)}):
            collection.pop('_id')
            collection.pop('token')
            docs.append(collection)
        return docs
    

6aea39b4c8d8657f96aba0f047ab2fba2d8b20f7
<mask token>


class GIS(object):
    <mask token>

    def getGis(self):
        docs = []
        data = {}
        print({'bookingID': '{id}'.format(id=self.arg)})
        for collection in self.collection.find({'bookingID': '{}'.format(
            self.arg)}):
            collection.pop('_id')
            collection.pop('token')
            docs.append(collection)
        return docs

<mask token>


class GIS(object):

    def __init__(self, args):
        self.arg = args
        self.client = MongoClient(src, port)
        self.db = self.client.geo
        self.collection = self.db.coordinates

    def getGis(self):
        docs = []
        data = {}
        print({'bookingID': '{id}'.format(id=self.arg)})
        for collection in self.collection.find({'bookingID': '{}'.format(
            self.arg)}):
            collection.pop('_id')
            collection.pop('token')
            docs.append(collection)
        return docs

<mask token>
src = MDB['source']
port = MDB['port']


class GIS(object):

    def __init__(self, args):
        self.arg = args
        self.client = MongoClient(src, port)
        self.db = self.client.geo
        self.collection = self.db.coordinates

    def getGis(self):
        docs = []
        data = {}
        print({'bookingID': '{id}'.format(id=self.arg)})
        for collection in self.collection.find({'bookingID': '{}'.format(
            self.arg)}):
            collection.pop('_id')
            collection.pop('token')
            docs.append(collection)
        return docs

import json
import pymongo
from module.controller.con import *
from module.controller.validator import queid
from pymongo import MongoClient
from config import MDB
from bson import BSON
from bson import json_util
src = MDB['source']
port = MDB['port']


class GIS(object):

    def __init__(self, args):
        self.arg = args
        self.client = MongoClient(src, port)
        self.db = self.client.geo
        self.collection = self.db.coordinates

    def getGis(self):
        docs = []
        data = {}
        print({'bookingID': '{id}'.format(id=self.arg)})
        for collection in self.collection.find({'bookingID': '{}'.format(
            self.arg)}):
            collection.pop('_id')
            collection.pop('token')
            docs.append(collection)
        return docs

import json
import pymongo
from module.controller.con import *
from module.controller.validator import queid
from pymongo import MongoClient
from config import MDB
from bson import BSON
from bson import json_util


src = MDB['source']
port = MDB['port']

class GIS(object):
    def __init__(self, args):
        self.arg = args
        self.client = MongoClient(src, port)
        self.db = self.client.geo
        self.collection = self.db.coordinates
    def getGis(self):
        docs = []
        data = {}
        print({"bookingID": "{id}".format(id=self.arg)})
        for collection in self.collection.find({"bookingID":"{}".format(self.arg)}):
            collection.pop('_id')
            collection.pop('token')
            docs.append(collection)
        return docs
    
