> For the complete documentation index, see [llms.txt](https://o2ba.gitbook.io/db/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://o2ba.gitbook.io/db/functions/betriebsstellen.md).

# opt / Betriebstellen

The following will document the functions, objects and methods associated with oPoint / Betriebsstellen API.

{% hint style="info" %}
Note that oPoint is simply a adaptation for the Betriebsstellen name the is instead used by the Deutsche Bahn API.
{% endhint %}

## Functions

### get\_oPoints\_by\_name

```
get_oPoints_by_name(search_string: str, return_http_code=False) -> list or int
```

This function will return a list of oPoint objects matching a given string.

Parameters

* *search\_string:* String to search
* *return\_http\_code \[Optional]:* False by default. Enabling this will return the HTTP status code if it's not 200, rather than returning an empty list. &#x20;

{% tabs %}
{% tab title="Return if success" %}
a list of oPoint objects
{% endtab %}

{% tab title="Return if fail" %}
If *return*\_*http\_code* is False, it will return an empty list. \[default]

If *return*\_*http\_code* is True, it will return an HTTP status code if it's not 200.
{% endtab %}
{% endtabs %}

### get\_oPoint\_by\_ril100

```
def get_oPoint_by_ril100(ril100: str, return_http_code=False) -> list or int
```

This function will search for an operating station by ril100 code

Parameters

* *ril100:* ril100 code
* *return\_http\_code \[Optional]:* False by default. Enabling this will return the HTTP status code if it's not 200, rather than returning an empty list. &#x20;

{% tabs %}
{% tab title="Return if success" %}
an oPoint object
{% endtab %}

{% tab title="Return if fail" %}
If *return*\_*http\_code* is False, it will return an empty list. \[default]

If *return*\_*http\_code* is True, it will return an HTTP status code if it's not 200.
{% endtab %}
{% endtabs %}
