---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/examples/cases/search_control_ppo.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/examples/cases/search_control_ppo.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt

# Searching for organizations

<iframe id="LIVE-EXAMPLE" style="width:100%;height: 400px;border-radius: 8px;border: 1px solid rgba(92, 94, 102, 0.14);" frameBorder="0" src="https://yastatic.net/s3/front-maps-static/maps-front-jsapi-v2-1/examples/2/out/s3-cases/en/search_control_ppo/index.html" allow="fullscreen"></iframe>

<a target="_blank" rel="noopener noreferrer" style="display: inline-block;margin-top: 10px;cursor: pointer;border-radius: 4px;padding: 9px 12px;background: #151515;color: white;text-decoration: none;font-weight: 500" href="https://codesandbox.io/p/sandbox/vxvtss?file=index.html">Open in CodeSandbox</a>

<div id="references">
    <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ready">ready</a>,
    <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Map">Map</a>,
    <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.SearchControl">control.SearchControl</a>,
    <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/GeoObjectCollection">GeoObjectCollection</a>,
    <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Placemark">Placemark</a>,
</div>
<p>
    The <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.SearchControl">"Search on map"</a> control can find toponyms on the normal or public map.
	But it is often necessary to find a business, instead of a specific toponym. For example, a cafe, restaurant, or store. 
</p>
<p>
    To teach the control to search for organizations, you must enable
	a specific data provider — <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.SearchControl/#param-parameters.options.provider">"yandex#search"</a>.
	Let's look at examples of how to do this.
</p>

{% list tabs %}

-   index.html

    ```html
    <!DOCTYPE html>
    <html>
        <head>
            <title>Examples. Searching across your own objects</title>
            <meta
                http-equiv="Content-Type"
                content="text/html; charset=UTF-8"
            />
            <!--
            Set your own API-key. Testing key is not valid for other web-sites and services.
            Get your API-key on the Developer Dashboard: https://developer.tech.yandex.ru/keys/
        -->
            
            
            
        </head>
        <body>
            <div id="map"></div>
        </body>
    </html>
    ```

-   search_control_ppo.js

    ```js
    function init() {
        var myMap = new ymaps.Map("map", {
            center: [55.74, 37.58],
            zoom: 13,
            controls: [],
        });

        /**
         * Creating an instance of the "Search on map" control
         * with the option enabled for the business search data provider.
         */
        var searchControl = new ymaps.control.SearchControl({
            options: {
                provider: "yandex#search",
            },
        });

        myMap.controls.add(searchControl);

        /**
         * Programmatically performing a search for specific cafes within the
         * rectangular map area.
         */
        searchControl.search("Shokoladnitsa");
    }

    ymaps.ready(init);
    ```

{% endlist %}
