Примеры | 2GIS Documentation

Примеры

https://catalog.api.2gis.com/3.0/suggests?q=Москва Ли&suggest_type=address&key=YOUR_KEY
https://catalog.api.2gis.com/3.0/suggests?q=Москва Ли&suggest_type=route_endpoint&key=YOUR_KEY
https://catalog.api.2gis.com/3.0/suggests?q=Москва Ли&suggest_type=object&key=YOUR_KEY

Дополнение адреса здания, в результате только здания:

https://catalog.api.2gis.com/3.0/suggests?q=Москва Петровка, 2&type=building&suggest_type=address&fields=items.point&key=YOUR_KEY

Дополнение конечной точки маршрута, в результате только остановки:

https://catalog.api.2gis.com/3.0/suggests?q=Москва цент&type=station&suggest_type=route_endpoint&fields=items.point&key=YOUR_KEY

Дополнение пользовательского запроса, в ответе варианты текста запроса и компании:

https://catalog.api.2gis.com/3.0/suggests?q=почта рос&type=user_queries,branch&fields=items.point&polygon=POLYGON((37.5930 55.7667,37.6494 55.7667,37.6494 55.7405,37.5930 55.7405,37.5930 55.7667))&key=YOUR_KEY
https://catalog.api.2gis.com/3.0/suggests?q=Москва цент&fields=items.point&suggest_type=route_endpoint&type=station&key=YOUR_KEY
https://catalog.api.2gis.com/3.0/suggests?q=почта рос&fields=items.address&type=branch&fields=items.point&polygon=POLYGON((37.5930 55.7667,37.6494 55.7667,37.6494 55.7405,37.5930 55.7405,37.5930 55.7667))&key=YOUR_KEY
https://catalog.api.2gis.com/3.0/suggests?q=почта рос&fields=items.schedule&type=branch&polygon=POLYGON((37.5930 55.7667,37.6494 55.7667,37.6494 55.7405,37.5930 55.7405,37.5930 55.7667))&key=YOUR_KEY

Указание области поиска в формате WKT:

https://catalog.api.2gis.com/3.0/suggests?q=кафе&polygon=POLYGON((37.5930 55.7667,37.6494 55.7667,37.6494 55.7405,37.5930 55.7405,37.5930 55.7667))&key=YOUR_KEY
https://catalog.api.2gis.com/3.0/suggests?q=каф&sort_point=37.630866,55.752256&key=YOUR_KEY