Can I Get the Nearest Cell Sites and Strength

Is there any way to get the nearest cell towers (not just the connected one, but the two or three nearest) and the GPS at the same time and pass them to an API?

Hi @TimAlmond and welcome to the Blues Wireless community!

I’m sorry to say there is no Notecard API available to return anything more than the most recently connected cell tower.

If you’re looking to perform cell tower-based triangulation, though, you should check out our docs on the subject.

Thanks,
Rob

Quick follow-up @TimAlmond - when you enable triangulation, a _geolocate.qo event is generated and can be routed through to your cloud app. It may contain the information you are looking for. Here is a full example of one of those events (it’s not available on the Notecard directly via an API, but is created automatically and can be routed from Notehub):

{
    "event": "c6455d81-ddff-4055-b927-fed0b3944fdd",
    "session": "8d8a2ac6-6c4b-4f4f-bade-df1491fe39ac",
    "best_id": "crave-late-pizza",
    "device": "dev:868050045716640",
    "sn": "crave-late-pizza",
    "app": "app:015b65b3-b67b-4b1a-8d21-78c8e7caf7c0",
    "received": 1665334814.661268,
    "req": "device.geolocation",
    "when": 1665334814,
    "file": "_geolocate.qo",
    "body": {
        "country": "US",
        "location": "Salem MA",
        "radios": {
            "lte": 10
        }
    },
    "best_location_type": "triangulated",
    "best_location_when": 1665334721,
    "best_lat": 42.52201,
    "best_lon": -70.907806,
    "best_location": "Salem MA",
    "best_country": "US",
    "best_timezone": "America/New_York",
    "tower_when": 1665334812,
    "tower_lat": 42.510249,
    "tower_lon": -70.910733,
    "tower_country": "US",
    "tower_location": "Salem Massachusetts",
    "tower_timezone": "America/New_York",
    "tower_id": "310,410,1045,17678600",
    "tri_when": 1665334721,
    "tri_lat": 42.52201,
    "tri_lon": -70.907806,
    "tri_location": "Salem MA",
    "tri_country": "US",
    "tri_timezone": "America/New_York",
    "tri_points": 10,
    "triangulate": {
        "cellTowers": [
            {
                "cellId": 229037316,
                "locationAreaCode": 22003,
                "mobileCountryCode": 311,
                "mobileNetworkCode": 490,
                "psc": 344,
                "radioType": "lte",
                "signalStrength": -100,
                "time": 1665334721
            },
            {
                "cellId": 14881041,
                "locationAreaCode": 14849,
                "mobileCountryCode": 311,
                "mobileNetworkCode": 480,
                "psc": 371,
                "radioType": "lte",
                "signalStrength": -106,
                "time": 1665334721
            },
            {
                "cellId": 15964431,
                "locationAreaCode": 1045,
                "mobileCountryCode": 313,
                "mobileNetworkCode": 100,
                "psc": 30,
                "radioType": "lte",
                "signalStrength": -111,
                "time": 1665334721
            },
            {
                "cellId": 11612679,
                "locationAreaCode": 22003,
                "mobileCountryCode": 310,
                "mobileNetworkCode": 260,
                "psc": 294,
                "radioType": "lte",
                "signalStrength": -111,
                "time": 1665334721
            },
            {
                "cellId": 11612679,
                "locationAreaCode": 22003,
                "mobileCountryCode": 311,
                "mobileNetworkCode": 490,
                "psc": 294,
                "radioType": "lte",
                "signalStrength": -112,
                "time": 1665334721
            },
            {
                "cellId": 11612679,
                "locationAreaCode": 22003,
                "mobileCountryCode": 311,
                "mobileNetworkCode": 490,
                "psc": 294,
                "radioType": "lte",
                "signalStrength": -112,
                "time": 1665334721
            },
            {
                "cellId": 17678600,
                "locationAreaCode": 1045,
                "mobileCountryCode": 313,
                "mobileNetworkCode": 100,
                "psc": 56,
                "radioType": "lte",
                "signalStrength": -113,
                "time": 1665334721
            },
            {
                "cellId": 12675585,
                "locationAreaCode": 22003,
                "mobileCountryCode": 311,
                "mobileNetworkCode": 490,
                "psc": 240,
                "radioType": "lte",
                "signalStrength": -113,
                "time": 1665334721
            },
            {
                "cellId": 17678600,
                "locationAreaCode": 1045,
                "mobileCountryCode": 310,
                "mobileNetworkCode": 410,
                "psc": 56,
                "radioType": "lte",
                "signalStrength": -113,
                "time": 1665334721
            },
            {
                "cellId": 14863118,
                "locationAreaCode": 14850,
                "mobileCountryCode": 311,
                "mobileNetworkCode": 480,
                "psc": 206,
                "radioType": "lte",
                "signalStrength": -114,
                "time": 1665334721
            }
        ]
    }
}

Hello Rob,

That is absolutely brilliant, more than I need. I’m going to have to watch out for the power situation as I know this drains battery faster, but thank you.

Now I’m just waiting for my Blues kit to arrive :wink:

Tim