LukePrior / nbn-service-check

This is an unnofficial API that can return the NBN availability information for properties including technology type, maximum line speed, and co-existance status if available.
https://nbn-service-check.vercel.app/check?address=
MIT License
12 stars 3 forks source link

Support iiNet VDSL2 (only available in Canberra) #7

Open harrisony opened 2 years ago

harrisony commented 2 years ago

The old TransACT network

I'm hoping to have a crack at adding this myself sometime later this week.

https://www.iinet.net.au/internet-product/broadband/vdsl2/plans

A random example which is eligible for VDSL2 2212/120 Eastern Valley Way, BELCONNEN It's worth noting this development only has TransACT available and nbn doesn't recgonise any premise exists at that location

harrisony commented 2 years ago

some notes (if only for myself)

curl --silent 'https://signup.iinet.net.au/api/address?search=2212%2F120%20Eastern%20Valley%20Way%2C%20BELCONNEN' -o -
[
  {
    "exactMatch": true,
    "id": "06OAUGHAvlBwAAAAAIAwEAAABOuDEAghAAIQAGAAAAAAAAADIyMTIAAP..ZAAAAAD.....AAAAAAAAAAAAAAAAADIyMTIvMTIwIEVhc3Rlcm4gVmFsbGV5IFdheSwgQkVMQ09OTkVOAA--",
    "text": "Wayfarer, Unit 2212  120 Eastern Valley Way, BELCONNEN  ACT  2617",
    "matchRanking": 0
  },
  {
    "exactMatch": false,
    "id": "0QSAUGHAvlBwAAAAAIATIyMTIvMTIwIEVhc3Rlcm4gVmFsbGV5IFdheSwgQkVMQ09OTkVOACoDAAA-",
    "text": "2212/120 Eastern Valley Way, BELCONNEN",
    "matchRanking": 0
  }
]
curl --silent 'https://signup.iinet.net.au/api/address?qasId=06OAUGHAvlBwAAAAAIAwEAAABOuDEAghAAIQAGAAAAAAAAADIyMTIAAP..ZAAAAAD.....AAAAAAAAAAAAAAAAADIyMTIvMTIwIEVhc3Rlcm4gVmFsbGV5IFdheSwgQkVMQ09OTkVOAA--' -o -
{
  "isManualInput": false,
  "allotmentType": "",
  "allotmentNumber": "",
  "businessName": null,
  "buildingLevelType": "",
  "buildingLevelNumber": "",
  "subBuildingNumber": null,
  "subBuildingAlpha": null,
  "buildingName": "Wayfarer",
  "streetNumberSuffix": "",
  "streetNumber": "120",
  "streetNumber2": "",
  "streetName": "Eastern Valley",
  "streetType": "Way",
  "streetTypeSuffix": "",
  "suburb": "BELCONNEN",
  "state": "ACT",
  "postcode": "2617",
  "country": "AUSTRALIA",
  "unitNumber": "2212",
  "unitType": "U",
  "postalType": "",
  "postalNumber": "",
  "gnafPid": "GAACT719279880",
  "longitude": "149.07361271",
  "latitude": "-35.24076932",
  "elevation": "",
  "allotment": "",
  "buildingLevelTypeAndNumber": "",
  "unitTypeAndNumber": "U2212",
  "fullStreetNumber": "120",
  "postalDelivery": "",
  "addressText": "Wayfarer U2212 120 Eastern Valley Way, BELCONNEN ACT 2617",
  "streetAddress": "Wayfarer U2212 120 Eastern Valley Way"
}
curl 'https://onesq.tpgtelecom.com.au/onesq/api/v1/sq' \
  -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  -H 'Content-Type: application/json; charset=UTF-8' \
  --data-raw '{"addressDetails":{"isManualInput":false,"buildingName":"Wayfarer","streetNumber":"120","streetName":"Eastern Valley","streetType":"WAY","suburb":"BELCONNEN","state":"ACT","postcode":"2617","country":"AUSTRALIA","unitNumber":"2212","unitType":"U","gnafPid":"GAACT719279880","longitude":"149.07361271","latitude":"-35.24076932","unitTypeAndNumber":"U2212","fullStreetNumber":"120","addressText":"Wayfarer U2212 120 Eastern Valley Way, BELCONNEN ACT 2617","streetAddress":"Wayfarer U2212 120 Eastern Valley Way"},"brand":"IINET","gnafid":"GAACT719279880"}' \
| jq .
{
  "formed_fulladdress": "U 2212 120 EASTERN VALLEY WAY, BELCONNEN ACT 2617",
  "Address": {
    "unitType": "U",
    "roadType": "WAY",
    "roadNumber1": "120",
    "locality": "BELCONNEN",
    "postcode": "2617",
    "unitNumber": "2212",
    "state": "ACT",
    "roadName": "EASTERN VALLEY"
  },
  "qualificationId": 12907784,
  "sqUUID": "7711fccf-1959-48d3-a677-b66c7bb62032",
  "roadNumber1": "120",
  "locality": "BELCONNEN",
  "postcode": "2617",
  "unitNumber": "2212",
  "WIRELESS4G_BACKUP": {
    "res": 1,
    "category": "Top 6"
  },
  "roadName": "EASTERN VALLEY",
  "unitType": "U",
  "Services": {
    "transact": 1,
    "fwa_5g": -1,
    "fwa_4g": -1,
    "fttb": 0,
    "fwa_4g_backup": 1
  },
  "roadType": "WAY",
  "TRANSACT": {
    "vdslType": "vdsl",
    "res": 1,
    "technology": "VDSL"
  },
  "WIRELESS4G": {
    "res": -1
  },
  "state": "ACT",
  "WIRELESS5G": {
    "res": -1
  },
  "FTTB": {
    "res": 0,
    "addr": ""
  }
}
LukePrior commented 2 years ago

Hey,

I did get a few requests when initially developing the extension to add support for iiNet VDSL2 but held off due to technical limitations.

The main problem with supporting multiple networks is time as the hosting service used will automatically timeout after 10s and if sequentially checking multiple sources this limit can often be hit.

This can be partially resolved by moving all requests to the DETA mirror which has more relaxed limits.

I am currently working with MyRepublic to get access to an official API (address matching to LOCID, and LOCID lookup) which should improve reliability and speed of the API but the timeline for this is multiple weeks/months out. I am also investigating whether I can find a reliable source for information regarding the NBN FTTN/FTTC to FTTP upgrade program.

This will make the NBN side of things robust but when it comes to alterative networks I'm currently relying on the UnitiWireless lookup which supports about 6 smaller private fibre and wireless networks. The iiNet VDSL2 check could potentially be performed alongside this and I would be happy to accept a PR but I'm unlikely to add something like this myself in the near future.

Thanks, Luke