/
Search for splitters and OLTs from Feasibility boxes

Search for splitters and OLTs from Feasibility boxes

Use the feasibility route (whether by radius or adjacencies) to receive viable boxes.

  • Example of feasibility by radius:

    • GET https://sandbox.ozmap.com.br:9994/api/v2/ftth-viability/radius?lat=-27.585059133459463&lng=-48.52574765682221&radius=300

With the simplified return:

{     "viable": true,     "boxes": [         { "distance": 104.97, "name": "CTO - 55", "id": "64ac1d323f250c0014f6472f", "project": "64ac1d323f250c0014f645e0", "lat": -27.58472234576322, "lng": -48.524753898382194, "boxTypeCode": "CTO", "certified": false, "implanted": true, "availability": 8, "horizontal_condos": [] },     ],     "refused_boxes": [],     "properties": [] }

Search for the splitters within the returned boxes using the splitters route with the query:

  • GET https://sandbox.ozmap.com.br:9994/api/v2/splitters?filter=[{"property":"parent","value":"64ac1d323f250c0014f6472f","operator":"="}]

Here, we are looking for the splitter by the box that contains it, using the box ID (parent).

With the simplified return of the splitter:

{ "total": 1, "count": 1, "rows": [ { "isBalanced": true, "orientation": "right", "implanted": true, "isDrop": true, "kind": "Splitter", "parent": "64ac1d323f250c0014f6472f", "project": "64ac1d323f250c0014f645e0", "name": "Splitter 1", "ratio": { "output": 8, "input": 1 }, "id": "64ac1d323f250c0014f64730" } ], "start": 0, "limit": 25 }

Using the splitter ID, make a call to the power route to fetch the OLT, slot, and PON of the splitter within the box searched earlier.

  • GET https://sandbox.ozmap.com.br:9994/api/v2/network-connectors/64ac1d323f250c0014f64730/potency

With the simplified return:

[     {         "pon_reached": true,         "distance": 1.0377556490926028,         "box_id": "64ac1d323f250c0014f645e2",         "attenuation": 0.4151022596370411,         "potency": 25,         "arriving_potency": 24.58489774036296,         "olt": {             "id": "661ff245ae709a001435e66c",             "label": "",             "port": 22,             "name": "OLT 2",             "user": "",             "password": "",             "ip": ""         },         "slot": {             "id": "661ff245ae709a001435e66f",             "label": "",             "number": "1"         },         "pon": {             "id": "661ff245ae709a001435e671",             "maximumClients": null,             "name": "Armário 1 - OLT 2 - Slot 1 - Porta 1",             "number": "1"         },         ]     } ]

The elements within this object are:

  • olt.label: Label of the OLT

  • slot.number: Number of the used slot

  • pon.number: Number of the PON

Related content

Create clients using the adjacencies
Create clients using the adjacencies
More like this
Filtering horizontal condominiums by user accessible projects
Filtering horizontal condominiums by user accessible projects
More like this
Reading and updating Splitter powers
Reading and updating Splitter powers
More like this
Locate a property connected to a splitter port
Locate a property connected to a splitter port
More like this
Reading and updating launch power at PON ports in an OLT
Reading and updating launch power at PON ports in an OLT
More like this
Retrieving OLT, Slot, and PON data from splitters
Retrieving OLT, Slot, and PON data from splitters
More like this