from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema 
c=unwired.CellSchema(lac=38996,cid=12814)
celldata=[c]

#fallback schema
f=unwired.FallbackSchema(scf=2)

# GeolocationSchema | 
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
    radio="utms",mcc=310,mnc=404,cells=celldata,fallbacks=f,
    address=1) 


try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)
Exemplo n.º 2
0
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema
c1 = unwired.CellSchema(lac=7033, cid=17811)
celldata = [c1]

# GeolocationSchema |
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
                                               radio="gsm",
                                               mcc=310,
                                               mnc=404,
                                               cells=celldata,
                                               address=2)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema
c = unwired.CellSchema(radio="gsm", mcc=310, mnc=404, lac=7011, cid=0)
celldata = [c]

#Fallback Schema
f = unwired.FallbackSchema(lacf=2)

# Geolocation Schema
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
                                               cells=celldata,
                                               fallbacks=f,
                                               address=1)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)
Exemplo n.º 4
0
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema
c1=unwired.CellSchema(lac=38996,cid=40907278)
celldata=[c1]

#Geolocation Schema
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",radio="cdma",mcc=310,mnc=404,cells=celldata,address=1)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)
Exemplo n.º 5
0
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema
c1 = unwired.CellSchema(lac=1, cid=5632016, psc=0)
celldata = [c1]

#geolocaiton schema
geolocation_schema = unwired.GeolocationSchema(
    token="YOUR_API_KEY",
    radio="lte",
    mcc=310,
    mnc=404,
    cells=celldata,
    address=1)  # GeolocationSchema |

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema
c1 = unwired.CellSchema(lac=310, cid=5632016)
c2 = unwired.CellSchema(lac=1, psc=221)
celldata = [c1, c2]

# GeolocationSchema |
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
                                               radio="lte",
                                               mcc=310,
                                               mnc=404,
                                               cells=celldata,
                                               address=1)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()
#cell schema information
c1 = unwired.CellSchema(lac=7033, cid=17811)
c2 = unwired.CellSchema(lac=1, psc=221)
celldata = [c1, c2]

#Geolocation Schema
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
                                               radio="gsm",
                                               mcc=310,
                                               mnc=404,
                                               cells=celldata,
                                               address=1)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)
Exemplo n.º 8
0
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema
c1 = unwired.CellSchema(lac=7033, cid=17811)
c2 = unwired.CellSchema(lac=7033, cid=17812, signal=-60, ta=13)
c3 = unwired.CellSchema(lac=7033, cid=18513)
c4 = unwired.CellSchema(lac=7033, cid=16383)
c5 = unwired.CellSchema(lac=7033, cid=12812)
c6 = unwired.CellSchema(lac=7033, cid=12811)
celldata = [c1, c2, c3, c4, c5, c6]

# GeolocationSchema
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
                                               radio="gsm",
                                               mcc=310,
                                               mnc=404,
                                               cells=celldata,
                                               address=1)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell schema
c1 = unwired.CellSchema(radio="umts", mcc=310, mnc=404, lac=7033, cid=17811)
c2 = unwired.CellSchema(radio="gsm",
                        mcc=310,
                        mnc=404,
                        lac=7033,
                        cid=17812,
                        signal=-60,
                        ta=13)
celldata = [c1, c2]

# GeolocationSchema
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
                                               radio="gsm",
                                               mcc=310,
                                               mnc=404,
                                               cells=celldata,
                                               address=1)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = unwired.GEOLOCATIONApi()

#cell Schema
c1 = unwired.CellSchema(lac=7, cid=4864)
celldata = [c1]

#Geolocation Schema
geolocation_schema = unwired.GeolocationSchema(token="YOUR_API_KEY",
                                               radio="cdma",
                                               mnc=404,
                                               cells=celldata,
                                               address=1)

try:
    # Geolocation
    api_response = api_instance.geolocation(geolocation_schema)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GEOLOCATIONApi->geolocation: %s\n" % e)