openapi: 3.0.0
info:
  title: Barikoi Business API (Version 1 - Deprecated)
  version: 1.1.0
  license:
    name: Barikoi
    url: https://www.barikoi.com/
  description: >


    ::: caution Deprecation Notice This API version (v1.0) will be deprecated
    after 31/12/2025. Please migrate to [Version 2.0](/api/) for continued
    support and new features. :::

    # Important Notice

    This documentation covers Version 1.0 of the Barikoi API, which is scheduled
    for deprecation. We strongly recommend: - Migrating to [Version 2.0](/api/)
    for all new implementations - Planning to upgrade existing implementations
    before the deprecation date - Reviewing the [Version 2.0
    documentation](/api/) for improved features and endpoints

    # Legacy API Documentation

    If you're still using Version 1.0, here's the documentation for reference.
    Note that no new features will be added to this version.

    ### Overview

    The currently listed places API's are for autocomplete, post office
    autocomplete, geocoding, reverse geocoding, nearby, distance & rupantor
    geocoder. And City Corporation API's are Ward by Geolocation, Zone by
    Geolocation, Ward and Zone by Geolocation, City Corporation by Geolocation
    services.

    <br/>
      ### Version 1 APIs
      
      > #### Version 1 will be deprecated after 31/12/2025; therefore, it is strongly advised that everyone switch to Version 2.

      * [Reverse Geocode](/api/v1/#operation/revgeo_v1)
      * [Reverse Geocoding (Server)](/api/v1/#operation/revgeo_server_v1)
      * [Autocomplete](/api/v1/#operation/autocomplete_v1)
      * [Distance](/api/v1/#operation/distance_v1)
      * [Rupantor Geocoder](/api/v1/#operation/rupantor_geocoder_v1)
      * [Routing](/api/v1/#operation/routing_v1)
      * [Snap To Road](/api/v1/#operation/snap_to_road_v1)
      * [Route Match](/api/v1/#operation/route_match_v1)
      * [Districts](/api/v1/#operation/districts_v1)
      * [Sub Districts](/api/v1/#operation/sub_districts_v1)
      * [Cities](/api/v1/#operation/cities_v1)
      * [Unions](/api/v1/#operation/unions_v1)
      * [Ward by Geolocation](/api/v1/#operation/ward_v1)
      * [Zone by Geolocation](/api/v1/#operation/zone_v1)
      * [Ward Zone by Geolocation](/api/v1/#operation/ward_zone_v1)
      * [City Corporation by Geolocation](/api/v1/#operation/dncc_v1)

    # Contact Us
     For any query or tech support please mail at support@barikoi.com
  termsOfService: https://www.barikoi.com/data-privacy
  contact:
    name: API Support
    email: hello@barikoi.com
    url: https://www.barikoi.com/
  x-logo:
    url: barikoi.png
    altText: Barikoi
tags:
  - name: v1.0
    description: Version 1.0 Endpoints
servers:
  - url: https://barikoi.xyz
    description: Barikoi API Server
security:
  - api_key: []
paths:
  /v1/api/search/reverse/{api_key}/geocode:
    get:
      operationId: revgeo_v1
      tags:
        - v1.0
      summary: Reverse Geocoding
      description: >-
        This API initially returns id, address, area, city,
        distance_within_meters without any additional call
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/longitude'
        - $ref: '#/components/parameters/latitude'
        - $ref: '#/components/parameters/countryCode'
        - $ref: '#/components/parameters/district'
        - $ref: '#/components/parameters/post_code'
        - $ref: '#/components/parameters/country'
        - $ref: '#/components/parameters/sub_district'
        - $ref: '#/components/parameters/union'
        - $ref: '#/components/parameters/pauroshova'
        - $ref: '#/components/parameters/location_type'
        - $ref: '#/components/parameters/division'
        - $ref: '#/components/parameters/address'
        - $ref: '#/components/parameters/area'
        - $ref: '#/components/parameters/bangla'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/reverse/API_KEY/geocode?longitude=90.36744611263278&latitude=23.81970957278533&district=true&post_code=true&country=true&sub_district=true&union=true&pauroshova=true&location_type=true&division=true&address=true&area=true&bangla=true'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/search/reverse/API_KEY/geocode?longitude=90.36744611263278&latitude=23.81970957278533&district=true&post_code=true&country=true&sub_district=true&union=true&pauroshova=true&location_type=true&division=true&address=true&area=true&bangla=true"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var config = {
              method: 'get',
              maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/reverse/API_KEY/geocode?longitude=90.36744611263278&latitude=23.81970957278533&district=true&post_code=true&country=true&sub_district=true&union=true&pauroshova=true&location_type=true&division=true&address=true&area=true&bangla=true',
              headers: { }
            };
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/rev_geo_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/search/reverse/geocode/server/{api_key}/place:
    get:
      operationId: revgeo_server_v1
      tags:
        - v1.0
      summary: Reverse Geocoding Server
      description: >-
        This API initially returns id, address, area, city,
        distance_within_meters without any additional call
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/longitude'
        - $ref: '#/components/parameters/latitude'
        - $ref: '#/components/parameters/district'
        - $ref: '#/components/parameters/post_code'
        - $ref: '#/components/parameters/country'
        - $ref: '#/components/parameters/sub_district'
        - $ref: '#/components/parameters/union'
        - $ref: '#/components/parameters/pauroshova'
        - $ref: '#/components/parameters/location_type'
        - $ref: '#/components/parameters/division'
        - $ref: '#/components/parameters/address'
        - $ref: '#/components/parameters/area'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/reverse/geocode/server/API_KEY/place?longitude=90.36744611263278&latitude=23.81970957278533&district=true&post_code=true&country=true&sub_district=true&union=true&pauroshova=true&location_type=true&division=true&address=true&area=true'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/search/reverse/geocode/server/API_KEY/place?longitude=90.36744611263278&latitude=23.81970957278533&district=true&post_code=true&country=true&sub_district=true&union=true&pauroshova=true&location_type=true&division=true&address=true&area=true"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var config = {
              method: 'get',
              maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/reverse/geocode/server/API_KEY/place?longitude=90.36744611263278&latitude=23.81970957278533&district=true&post_code=true&country=true&sub_district=true&union=true&pauroshova=true&location_type=true&division=true&address=true&area=true',
              headers: { }
            };
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/rev_geo_server_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/search/autocomplete/{api_key}/place:
    get:
      operationId: autocomplete_v1
      tags:
        - v1.0
      summary: AutoComplete
      description: >-
        Barikoi Autocomplete return's a place's id, longitude, latitude,
        address, city, area, postCode, pType & uCode
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/q'
        - $ref: '#/components/parameters/countryCode'
        - $ref: '#/components/parameters/city'
        - $ref: '#/components/parameters/areaString'
        - $ref: '#/components/parameters/sub_district'
        - $ref: '#/components/parameters/thana'
        - $ref: '#/components/parameters/union'
        - $ref: '#/components/parameters/sub_area'
        - $ref: '#/components/parameters/bangla'
        - $ref: '#/components/parameters/post_office'
        - $ref: '#/components/parameters/industrial'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/autocomplete/API_KEY/place?q=nabisco&city=dhaka&post_office=true&industrial=true&bangla=true'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/search/autocomplete/API_KEY/place?q=nabisco&city=dhaka&post_office=true&industrial=true&bangla=true"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/autocomplete/API_KEY/place?q=nabisco&city=dhaka&post_office=true&industrial=true&bangla=true',
              headers: { }
            };
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/autocomplete_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/distance/{api_key}/{longitude},{latitude}/{longitude},{latitude}:
    get:
      operationId: distance_v1
      tags:
        - v1.0
      summary: Distance
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/longitudePath'
        - $ref: '#/components/parameters/latitudePath'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/distance/API_KEY/90.357238,23.806672/90.357252,23.811626'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/distance/API_KEY/90.357238,23.806672/90.357252,23.811626"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var config = {
              method: 'get',
              maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/distance/API_KEY/90.357238,23.806672/90.357252,23.811626',
              headers: { }
            };
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/distance_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/search/{API_KEY}/rupantor/geocode:
    post:
      operationId: rupantor_geocoder_v1
      tags:
        - v1.0
      summary: Rupantor Geocoder
      description: >-
        Rupantor Geocoder API for Developers. It formats the given address and
        searches for the address and gives a status if the address is complete
        or not. Rupantor Geocoder only supports FormData. So use FormData object
        to send your data. Rupantor Geocoder needs Geocode API to fucntion
        properly. One Rupantor Geocoder request requires two Geocode API
        requests.
      parameters:
        - $ref: '#/components/parameters/api_key_path_upper'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/API_KEY/rupantor/geocode' \

            --form 'q="matikata rd basa 572/k barikoi"' \

            --form 'thana="yes"' \

            --form 'district="yes"' \

            --form 'bangla="yes"'
        - lang: Python
          source: >
            import requests

            url = "https://barikoi.xyz/v1/api/search/API_KEY/rupantor/geocode"

            payload={'q': 'matikata rd basa 572/k barikoi',

            'thana': 'yes',

            'district': 'yes',

            'bangla': 'yes'}

            files=[]

            headers = {}

            response = requests.request("POST", url, headers=headers,
            data=payload, files=files)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var FormData = require('form-data');
            var data = new FormData();
            data.append('q', 'matikata rd basa 572/k barikoi');
            data.append('thana', 'yes');
            data.append('district', 'yes');
            data.append('bangla', 'yes');
            var config = {
              method: 'post',
              maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/API_KEY/rupantor/geocode',
              headers: { 
                ...data.getHeaders()
              },
              data : data
            };
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/rupantor_geocoder_form_v1'
      responses:
        '200':
          $ref: '#/components/responses/rupantor_geocoder_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/route/{api_key}/{coordinates}:
    get:
      operationId: routing_v1
      tags:
        - v1.0
      summary: Routing
      description: This api provides routing details for two location points.
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/coordinates'
        - $ref: '#/components/parameters/geometries'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location --request GET
            'https://barikoi.xyz/v1/api/route/API_KEY/90.362548828125,23.94107556246209;90.31585693359375,24.134221690669204?geometries=polyline'
        - lang: Python
          source: >
            import requests


            url =
            "https://barikoi.xyz/v1/api/route/API_KEY/90.362548828125,23.94107556246209;90.31585693359375,24.134221690669204?geometries=polyline"


            payload={}

            headers = {}


            response = requests.request("GET", url, headers=headers,
            data=payload)


            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var config = {
              method: 'get',
              url: 'https://barikoi.xyz/v1/api/route/API_KEY/90.362548828125,23.94107556246209;90.31585693359375,24.134221690669204?geometries=polyline',
              headers: { }
            };
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/routing_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/routing/{api_key}/nearest:
    get:
      operationId: snap_to_road_v1
      tags:
        - v1.0
      summary: Snap to Road
      description: ' '
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/point'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/routing/API_KEY/matching?points=90.38436119310136,23.7267599142696%3B90.38438265469962,23.726622279057658'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/routing/API_KEY/nearest?point=23.80474653651567,90.36288913339376"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var config = {
              method: 'get',
              maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/routing/API_KEY/nearest?point=23.80474653651567,90.36288913339376',
              headers: { }
            };
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/snap_to_road_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/routing/{api_key}/matching:
    get:
      operationId: route_match_v1
      tags:
        - v1.0
      summary: Route match
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/points'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/routing/API_KEY/matching?points=90.38436119310136,23.7267599142696%3B90.38438265469962,23.726622279057658'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/routing/API_KEY/matching?points=90.38436119310136,23.7267599142696;90.38438265469962,23.726622279057658"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');
            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/routing/API_KEY/matching?points=90.38436119310136,23.7267599142696;90.38438265469962,23.726622279057658',
              headers: { }
            };  
            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/route_match_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/{api_key}/districts:
    get:
      operationId: districts_v1
      tags:
        - v1.0
      summary: Districts
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/q_districts'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/API_KEY/districts?q=Dhaka'
        - lang: Python
          source: >
            import requests

            url = "https://barikoi.xyz/v1/api/API_KEY/districts?q=Dhaka"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/API_KEY/districts?q=Dhaka',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/districts_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/{api_key}/sub_districts:
    get:
      operationId: sub_districts_v1
      tags:
        - v1.0
      summary: Subdistricts
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/q_subdistricts'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/API_KEY/sub_districts?q=Khilgaon'
        - lang: Python
          source: >
            import requests

            url = "https://barikoi.xyz/v1/api/API_KEY/sub_districts?q=Khilgaon"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/API_KEY/sub_districts?q=Khilgaon',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/subdistricts_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/{api_key}/cities:
    get:
      operationId: cities_v1
      tags:
        - v1.0
      summary: Cities
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/q_cities'
      x-codeSamples:
        - lang: Curl
          source: |
            curl --location 'https://barikoi.xyz/v1/api/API_KEY/cities?q=Dhaka'
        - lang: Python
          source: >
            import requests

            url = "https://barikoi.xyz/v1/api/API_KEY/cities?q=Dhaka"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/API_KEY/cities?q=Dhaka',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/cities_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/{api_key}/unions:
    get:
      operationId: unions_v1
      tags:
        - v1.0
      summary: Unions
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/q_unions'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/API_KEY/unions?q=Abaipur'
        - lang: Python
          source: >
            import requests

            url = "https://barikoi.xyz/v1/api/API_KEY/unions?q=Abaipur"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/API_KEY/unions?q=Abaipur',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/unions_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/search/ward/{api_key}/{longitude}/{latitude}:
    get:
      operationId: ward_v1
      tags:
        - v1.0
      summary: Ward by Geolocation
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/longitudePath'
        - $ref: '#/components/parameters/latitudePath'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/ward/API_KEY/90.357238/23.806672'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/search/ward/API_KEY/90.357238/23.806672"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/ward/API_KEY/90.357238/23.806672',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/ward_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/search/zone/{api_key}/{longitude}/{latitude}:
    get:
      operationId: zone_v1
      tags:
        - v1.0
      summary: Zone by Geolocation
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/longitudePath'
        - $ref: '#/components/parameters/latitudePath'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/zone/API_KEY/90.357238/23.806672'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/search/zone/API_KEY/90.357238/23.806672"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/zone/API_KEY/90.357238/23.806672',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/zone_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/search/ward/zone/{api_key}/{longitude}/{latitude}:
    get:
      operationId: ward_zone_v1
      tags:
        - v1.0
      summary: Ward Zone by Geolocation
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/longitudePath'
        - $ref: '#/components/parameters/latitudePath'
      x-codeSamples:
        - lang: Curl
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/ward/zone/API_KEY/90.357238/23.806672'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/search/ward/zone/API_KEY/90.357238/23.806672"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/ward/zone/API_KEY/90.357238/23.806672',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/wardzone_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
  /v1/api/search/dncc/{api_key}/{longitude}/{latitude}:
    get:
      operationId: dncc_v1
      tags:
        - v1.0
      summary: City Corporation by Geolocation
      parameters:
        - $ref: '#/components/parameters/api_key_path'
        - $ref: '#/components/parameters/longitudePath'
        - $ref: '#/components/parameters/latitudePath'
      x-codeSamples:
        - lang: Curl;
          source: >
            curl --location
            'https://barikoi.xyz/v1/api/search/dncc/API_KEY/90.357238/23.806672'
        - lang: Python
          source: >
            import requests

            url =
            "https://barikoi.xyz/v1/api/search/dncc/API_KEY/90.357238/23.806672"

            payload={}

            headers = {}

            response = requests.request("GET", url, headers=headers,
            data=payload)

            print(response.text)
        - lang: Node
          source: |
            var axios = require('axios');

            var config = {
              method: 'get',
            maxBodyLength: Infinity,
              url: 'https://barikoi.xyz/v1/api/search/dncc/API_KEY/90.357238/23.806672',
              headers: { }
            };

            axios(config)
            .then(function (response) {
              console.log(JSON.stringify(response.data));
            })
            .catch(function (error) {
              console.log(error);
            });
      responses:
        '200':
          $ref: '#/components/responses/dncc_success'
        '400':
          $ref: '#/components/responses/missing_parameter'
        '401':
          $ref: '#/components/responses/no_registered_key'
        '402':
          $ref: '#/components/responses/payment_exception'
        '429':
          $ref: '#/components/responses/api_limit_exceeded'
components:
  securitySchemes:
    api_key:
      type: apiKey
      name: api_key
      in: query
  parameters:
    addressParam:
      $ref: '#/components/parameters/address'
    api_keyParam:
      $ref: '#/components/parameters/api_key'
    api_keyPathParam:
      $ref: '#/components/parameters/api_key_path'
    api_keyPathParamUpper:
      $ref: '#/components/parameters/api_key_path_upper'
    api_keyQueryParam:
      $ref: '#/components/parameters/api_key_query'
    areaParam:
      $ref: '#/components/parameters/area'
    sub_areaParam:
      $ref: '#/components/parameters/sub_area'
    areaParamString:
      $ref: '#/components/parameters/areaString'
    banglaParam:
      $ref: '#/components/parameters/bangla'
    cityParam:
      $ref: '#/components/parameters/city'
    city_PathParam:
      $ref: '#/components/parameters/city_path'
    coordinatesParam:
      $ref: '#/components/parameters/coordinates'
    countryParam:
      $ref: '#/components/parameters/country'
    districtParam:
      $ref: '#/components/parameters/district'
    divisionParam:
      $ref: '#/components/parameters/division'
    distanceParam:
      $ref: '#/components/parameters/distance'
    geometriesParam:
      $ref: '#/components/parameters/geometries'
    industrialParam:
      $ref: '#/components/parameters/industrial'
    latitudeParam:
      $ref: '#/components/parameters/latitude'
    countryCode:
      name: country_code
      in: query
      required: false
      schema:
        type: string
        description: >
          The **two-letter** country code **(ISO Alpha-2)** representing the
          desired country. Example: `sa` (Saudi Arabia) 


          **Default Value**: `bd` (Bangladesh)  

          **Note**: You can find the country code for your desired country in
          the ISO Alpha-2 country code standard.
    countryCodeAlpha3:
      name: country_code
      in: query
      required: false
      schema:
        type: string
        description: >
          The **three-letter** country code **(ISO Alpha-3)** representing the
          desired country. Example: `sau` (Saudi Arabia) 


          **Default Value**: `bgd` (Bangladesh)  

          **Note**: You can find the country code for your desired country in
          the ISO Alpha-3 country code standard.
    profile:
      name: profile
      in: query
      required: false
      schema:
        type: string
        enum:
          - bike
          - motorcycle
          - car
        description: >
          The mode of transportation profile for calculating route time and
          information. 


          **Default Value**: `car` 


          **Accepted Values**:  

          - `bike`: For routes optimized for bicycles.  

          - `motorcycle`: For routes optimized for motorcycles.  

          - `car`: For routes optimized for cars.  


          **Note**: The route time and information will vary based on the
          selected profile.
    latitudePathParam:
      $ref: '#/components/parameters/latitudePath'
    limitParam:
      $ref: '#/components/parameters/limit'
    location_typeParam:
      $ref: '#/components/parameters/location_type'
    longitudeParam:
      $ref: '#/components/parameters/longitude'
    longitudePathParam:
      $ref: '#/components/parameters/longitudePath'
    matchParam:
      $ref: '#/components/parameters/match'
    nameParam:
      name: name
      in: query
      required: true
      schema:
        type: string
        description: Songsodh vaban
    pointParam:
      $ref: '#/components/parameters/point'
    pointsParam:
      $ref: '#/components/parameters/points'
    pointsPathParam:
      $ref: '#/components/parameters/pointsPath'
    post_codeParam:
      $ref: '#/components/parameters/post_code'
    post_officeParam:
      $ref: '#/components/parameters/post_office'
    place_code:
      name: Place Code
      in: query
      required: true
      schema:
        type: string
        description: 'true'
    pouroshovaParam:
      $ref: '#/components/parameters/pauroshova'
    ptypeParam:
      $ref: '#/components/parameters/ptype'
    q2Param:
      $ref: '#/components/parameters/q2'
    qParam:
      $ref: '#/components/parameters/q'
    qParamCities:
      $ref: '#/components/parameters/q_cities'
    qParamCitiesNotRequired:
      $ref: '#/components/parameters/q_citiesNotReq'
    qParamDistricts:
      $ref: '#/components/parameters/q_districts'
    qParamNotRequired:
      $ref: '#/components/parameters/qNotReq'
    qParamSubdistricts:
      $ref: '#/components/parameters/q_subdistricts'
    qParamSubdistrictsNotRequired:
      $ref: '#/components/parameters/q_subdistrictsNotReq'
    qParamUnionNotRequired:
      $ref: '#/components/parameters/q_unionNotReq'
    qParamUnions:
      $ref: '#/components/parameters/q_unions'
    radiusParam:
      name: radius
      in: query
      required: true
      schema:
        type: number
        description: '70'
    sub_districtParam:
      $ref: '#/components/parameters/sub_district'
    session_id:
      name: session_id
      in: query
      required: true
      schema:
        type: string
        description: 'true'
    thanaParam:
      $ref: '#/components/parameters/thana'
    typeQuery:
      $ref: '#/components/parameters/ptype'
    singletypeQuery:
      $ref: '#/components/parameters/type'
    unionParam:
      $ref: '#/components/parameters/union'
    wardParam:
      $ref: '#/components/parameters/ward'
    api_key_path:
      name: api_key
      in: path
      required: true
      schema:
        type: string
        description: API_KEY
    longitude:
      name: longitude
      in: query
      required: true
      schema:
        type: number
        description: '90.35722628659195'
    latitude:
      name: latitude
      in: query
      required: true
      schema:
        type: number
        description: '23.806703092211507'
    district:
      name: district
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    post_code:
      name: post_code
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    country:
      name: country
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    sub_district:
      name: sub_district
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    union:
      name: union
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    pauroshova:
      name: pauroshova
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    location_type:
      name: location_type
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    division:
      name: division
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    address:
      name: address
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    area:
      name: area
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    bangla:
      name: bangla
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    q:
      name: q
      in: query
      required: true
      schema:
        type: string
        description: q
    city:
      name: city
      in: query
      schema:
        type: string
        description: dhaka
    areaString:
      name: area
      in: query
      required: false
      schema:
        type: string
        description: Mirpur
    thana:
      name: thana
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    sub_area:
      name: sub_area
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    post_office:
      name: post_office
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    industrial:
      name: industrial
      in: query
      required: false
      schema:
        type: boolean
        description: 'true'
    longitudePath:
      name: longitude
      in: path
      required: true
      schema:
        type: number
        description: '90.35722628659195'
    latitudePath:
      name: latitude
      in: path
      required: true
      schema:
        type: number
        description: '23.806703092211507'
    api_key_path_upper:
      name: API_KEY
      in: path
      required: true
      schema:
        type: string
        description: API_KEY
    coordinates:
      name: coordinates
      in: path
      required: true
      schema:
        type: string
        description: String of format `{longitude},{latitude};{longitude},{latitude}`.
    geometries:
      name: geometries
      in: query
      required: false
      schema:
        type: string
        description: >-
          Returned route geometry format (influences overview and per step).
          Expected values are, `polyline`, `polyline6`, `geojson`
        default: polyline
    point:
      name: point
      in: query
      required: true
      schema:
        type: string
        example: 23.80474653651567,90.36288913339376
    points:
      name: points
      in: query
      required: true
      schema:
        type: string
        example: >-
          90.38436119310136,23.7267599142696;90.38438265469962,23.726622279057658
    q_districts:
      name: q
      in: query
      required: true
      schema:
        type: string
        description: dhaka
    q_subdistricts:
      name: q
      in: query
      required: true
      schema:
        type: string
        description: khilgaon
    q_cities:
      name: q
      in: query
      required: true
      schema:
        type: string
        description: dhaka
    q_unions:
      name: q
      in: query
      required: true
      schema:
        type: string
        description: abaipur
    api_key:
      name: api_key
      in: query
      required: true
      schema:
        type: string
        description: API_KEY
    api_key_query:
      name: api_key
      in: query
      required: true
      schema:
        type: string
        description: API_KEY
    city_path:
      name: city_path
      in: path
      required: true
      schema:
        type: boolean
        description: city
    distance:
      name: distance
      in: path
      required: true
      schema:
        type: number
        description: distance in meters
    limit:
      name: limit
      in: path
      required: true
      schema:
        type: integer
        description: limit
    match:
      name: match
      in: query
      required: true
      schema:
        type: boolean
        description: 'true'
    pointsPath:
      name: points
      in: path
      required: true
      schema:
        type: string
        example: >-
          90.38436119310136,23.7267599142696;90.38438265469962,23.726622279057658
    ptype:
      name: ptype
      in: query
      required: true
      schema:
        type: string
        description: ptype
    q2:
      name: q2
      in: query
      required: true
      schema:
        type: string
        description: q2
    q_citiesNotReq:
      name: q
      in: query
      schema:
        type: string
        description: Dhaka
    qNotReq:
      name: q
      in: query
      schema:
        type: string
        description: q
    q_subdistrictsNotReq:
      name: q
      in: query
      schema:
        type: string
        description: mirpur
    q_unionNotReq:
      name: q
      in: query
      schema:
        type: string
        description: Dhaka
    type:
      name: type
      in: query
      required: true
      schema:
        type: string
        description: type
    ward:
      name: ward_number
      in: query
      required: true
      schema:
        type: number
        description: '31'
  schemas:
    add_point_success:
      type: object
      properties:
        message:
          type: string
          example: Geo fence point added
        status:
          type: integer
          default: 200
    api_limit_exceeded:
      type: object
      properties:
        message:
          type: string
          default: API LIMIT EXCEEDED
        status:
          type: integer
          default: 429
    area_success:
      type: object
      properties:
        area:
          type: string
          default: dakkhinkhan
        status:
          type: number
          default: 200
    autocomplete_bangla_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 635085
              longitude:
                type: number
                example: 90.369999116958
              latitude:
                type: number
                example: 23.83729875602
              address:
                type: string
                example: Mirpur DOHS, Mirpur DOHS
              address_bn:
                type: string
                example: মিরপুর ডিওএইচএস, মিরপুর ডিওএইচএস, মিরপুর, ঢাকা
              city:
                type: string
                example: Dhaka
              city_bn:
                type: string
                example: ঢাকা
              area:
                type: string
                example: Dhaka University Campus
              area_bn:
                type: string
                example: মিরপুর
              postCode:
                type: integer
                example: 1216
              pType:
                type: string
                example: Admin
              uCode:
                type: string
                example: PFSU6037
        status:
          type: integer
          default: 200
    autocomplete_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 882513
              longitude:
                type: number
                example: 90.39752920000001
              latitude:
                type: number
                example: 23.726055300000002
              address:
                type: string
                example: Dhaka Medical College Hospital
              city:
                type: string
                example: Dhaka
              area:
                type: string
                example: Dhaka University Campus
              postCode:
                type: integer
                example: 1000
              pType:
                type: string
                example: Healthcare
              uCode:
                type: string
                example: BXXK5816
        status:
          type: integer
          default: 200
    check_geo_fence_success:
      type: object
      properties:
        message:
          type: string
          example: Inside geo fence
        status:
          type: integer
          default: 200
        data:
          type: object
          properties:
            id:
              type: integer
              example: '635085'
            name:
              type: string
              example: Songsodh vaban
            radius:
              type: string
              example: '55'
            longitude:
              type: string
              example: '90.37852866512583'
            latitude:
              type: string
              example: '23.76245538673939'
            user_id:
              type: number
              example: 2978
    cities_success:
      type: object
      properties:
        places:
          type: array
          items:
            - type: object
              properties:
                name:
                  type: string
                  default: Dhaka
                areas:
                  type: array
                  items:
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Moghbazar
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Dhaka Cantonment
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Gendaria
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Sher E Bangla Nagar
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Tejgaon
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Banasree
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Dakkhinkhan
                    - type: object
                      properties:
                        name:
                          type: string
                          default: Mohakhali
            - type: object
              properties:
                name:
                  type: string
                  default: Joldhaka
                areas:
                  type: array
                  items:
                    - type: object
        status:
          type: number
          default: 200
    delete_single_point_success:
      type: object
      properties:
        message:
          type: string
          example: Geo fence point deleted
        status:
          type: integer
          default: 200
    districts_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 34
              name:
                type: string
                example: Khulna
              center:
                type: string
                example: '{"type":"Point","coordinates":[89.447847757,22.470878222]}'
    dncc_success:
      type: object
      properties:
        message:
          type: string
          default: dncc
        status:
          type: integer
          default: 200
    get_point_success:
      type: object
      properties:
        message:
          type: string
          example: Geo fence points
        status:
          type: integer
          default: 200
        data:
          type: array
          items:
            - type: object
              properties:
                id:
                  type: string
                  example: 65475dbad1e00
                name:
                  type: string
                  example: Songsodh vaban
                radius:
                  type: string
                  example: 55
                longitude:
                  type: string
                  example: '90.37852866512583'
                latitude:
                  type: string
                  example: '23.76245538673939'
                user_id:
                  type: integer
                  example: 2978
            - type: object
              properties:
                id:
                  type: string
                  example: 65701af5854b8
                name:
                  type: string
                  example: Songsodh vaban
                radius:
                  type: string
                  example: 70
                longitude:
                  type: string
                  example: '90.37852866512583'
                latitude:
                  type: string
                  example: '23.76245538673939'
                user_id:
                  type: integer
                  example: 2978
    get_single_point_success:
      type: object
      properties:
        message:
          type: string
          example: Geo fence points
        status:
          type: integer
          default: 200
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 635085
              name:
                type: string
                example: Songsodh vaban
              radius:
                type: integer
                example: 55
              longitude:
                type: number
                example: 90.37852866512583
              latitude:
                type: number
                example: 23.76245538673939
    missing_parameter:
      type: object
      properties:
        message:
          type: string
          default: Parameter missing
        status:
          type: integer
          default: 400
    nearby_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 4
              name:
                type: string
                example: Uttara sector 12 Park
              distance_in_meters:
                type: number
                example: 0.00045241879869987946
              longitude:
                type: number
                example: 90.383051633835
              latitude:
                type: number
                example: 23.871887192063
              pType:
                type: string
                example: Recreation
              Address:
                type: string
                example: Road 11, Sector 12
              area:
                type: string
                example: Uttara
              city:
                type: string
                example: Dhaka
              postCode:
                type: string
                example: 1230
              subType:
                type: string
                example: PARK
              uCode:
                type: string
                example: OYFR1074
              ST_AsText(location):
                type: string
                example: POINT(90.383051633835 23.871887192063)
        status:
          type: integer
          default: 200
    no_registered_key:
      type: object
      properties:
        message:
          type: string
          default: Invalid or No Registered Key
        status:
          type: integer
          default: 401
    payment_exception:
      type: object
      properties:
        message:
          type: string
          default: Payment exception
        status:
          type: integer
          default: 402
    point_in_polygon_form:
      type: object
      properties:
        point:
          type: string
          description: 90.41697542000593,23.780273491928714
    point_in_polygon_success:
      type: object
      properties:
        message:
          type: string
          default: Point not inside polygon
        status:
          type: number
          default: 200
        data:
          type: 'null'
    rev_geo_success:
      type: object
      properties:
        place:
          type: object
          properties:
            id:
              type: integer
              example: 6488
            distance_within_meters:
              type: number
              example: 3.6856
            address:
              type: string
              example: House 8, Road 2, Block C, Section 2, Mirpur, Dhaka
            area:
              type: string
              example: Mirpur
            city:
              type: string
              example: Dhaka
            postCode:
              type: string
              example: '1216'
            address_bn:
              type: string
              example: বাড়ি ৮, রোড ২, ব্লক সি, সেকশন ২, মিরপুর, ঢাকা
            area_bn:
              type: string
              example: মিরপুর
            city_bn:
              type: string
              example: ঢাকা
            country:
              type: string
              example: বাংলাদেশ
            division:
              type: string
              example: ঢাকা
            district:
              type: string
              example: ঢাকা
            sub_district:
              type: string
              example: পল্লবী
            pauroshova:
              type: 'null'
            union:
              type: 'null'
            location_type:
              type: string
              example: শহর
            address_components:
              type: object
              properties:
                place_name:
                  type: 'null'
                house:
                  type: string
                  example: House 8
                road:
                  type: string
                  example: Road 2
            area_components:
              type: object
              properties:
                area:
                  type: string
                  example: Mirpur
                sub_area:
                  type: string
                  example: Section 2
            thana:
              type: string
              example: Mirpur
            thana_bn:
              type: string
              example: মিরপুর
        status:
          type: integer
          default: 200
    route_location_optimized_body:
      type: object
      properties:
        api_key:
          type: string
          description: Your Barikoi API key
          example: API_KEY
        locations:
          type: array
          description: Array of locations to sort/optimize (max ~50 depending on plan)
          items:
            type: object
            properties:
              point:
                type: object
                properties:
                  lat:
                    type: number
                    example: 24.439648
                  lon:
                    type: number
                    example: 90.731277
                required:
                  - lat
                  - lon
              additional_payload:
                type: array
                items:
                  type: object
                  properties:
                    address:
                      type: string
                      example: Kishoreganj Thana
                description: Optional metadata (commonly used for human-readable address)
          example:
            - point:
                lat: 24.439648
                lon: 90.731277
              additional_payload:
                - address: Kishoreganj Thana
            - point:
                lat: 23.74608583
                lon: 90.37368
              additional_payload:
                - address: House 36, Road 9/A
    route_location_optimized_success:
      type: object
      properties:
        sorted_waypoints:
          type: array
          items:
            - type: object
              properties:
                point:
                  type: object
                  properties:
                    lat:
                      type: number
                      example: 24.439648
                    lon:
                      type: number
                      example: 90.731277
                additional_payload:
                  type: array
                  items:
                    type: object
                    properties:
                      address:
                        type: string
                        example: Kishoreganj Thana
                index:
                  type: integer
                  example: 1
            - type: object
              properties:
                point:
                  type: object
                  properties:
                    lat:
                      type: number
                      example: 24.440899
                    lon:
                      type: number
                      example: 90.771103
                additional_payload:
                  type: array
                  items:
                    type: object
                    properties:
                      address:
                        type: string
                        example: Monju Villa, House 1244, Hossainpur Road, Nogua
                index:
                  type: integer
                  example: 2
            - type: object
              properties:
                point:
                  type: object
                  properties:
                    lat:
                      type: number
                      example: 23.74608583
                    lon:
                      type: number
                      example: 90.37368
                additional_payload:
                  type: array
                  items:
                    type: object
                    properties:
                      address:
                        type: string
                        example: House 36, Road 9/A
                index:
                  type: integer
                  example: 3
            - type: object
              properties:
                point:
                  type: object
                  properties:
                    lat:
                      type: number
                      example: 23.74577034
                    lon:
                      type: number
                      example: 90.37338898
                additional_payload:
                  type: array
                  items:
                    type: object
                    properties:
                      address:
                        type: string
                        example: House 38, Road 9/A
                index:
                  type: integer
                  example: 4
            - type: object
              properties:
                point:
                  type: object
                  properties:
                    lat:
                      type: number
                      example: 23.74441997
                    lon:
                      type: number
                      example: 90.37290861
                additional_payload:
                  type: array
                  items:
                    type: object
                    properties:
                      address:
                        type: string
                        example: Dhanmondi, Road 8/a
                index:
                  type: integer
                  example: 5
        status:
          type: integer
          default: 200
    route_match_success:
      type: object
      properties:
        geometry:
          type: object
          properties:
            coordinates:
              type: array
              items:
                type: array
                items:
                  type: number
                  format: double
              format: array
              example:
                - - 90.384425
                  - 23.726761
                - - 90.384427
                  - 23.726622
            type:
              type: string
              example: LineString
        distance:
          type: number
          format: double
          example: 15.5
        status:
          type: integer
          default: 200
    route_optimization_body:
      type: object
      properties:
        api_key:
          type: string
          example: API_KEY
        source:
          type: string
          example: 23.746086,90.37368
        destination:
          type: string
          example: 23.746214,90.371654
        profile:
          type: string
          example: car
        geo_points:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 1
              point:
                type: string
                example: 23.746086,90.37368
          example:
            - id: 1
              point: 23.746086,90.37368
            - id: 2
              point: 23.746214,90.371654
    route_optimization_success:
      type: object
      properties:
        hints:
          type: object
          properties:
            visited_nodes.sum:
              type: integer
              example: 50
            visited_nodes.average:
              type: integer
              example: 10
        info:
          type: object
          properties:
            copyrights:
              type: array
              items:
                type: string
                example: GraphHopper
            took:
              type: number
              example: 0
        paths:
          type: array
          items:
            type: object
            properties:
              distance:
                type: number
                format: double
                description: The total distance, in meters.
                example: 1846.266
              weight:
                type: number
                format: double
                example: 147.083567
              time:
                type: integer
                format: int64
                description: The total travel time, in milliseconds.
                example: 147071
              transfers:
                type: number
                example: 0
              points_encoded:
                type: boolean
                description: >
                  Whether the `points` and `snapped_waypoints` fields are
                  polyline-encoded strings rather than JSON arrays of
                  coordinates. See the field description for more information on
                  the two formats.
                example: true
              bbox:
                type: array
                items:
                  type: number
                  format: double
                  description: >
                    The bounding box of the route geometry. Format: [minLon,
                    minLat, maxLon, maxLat].
              points:
                type: string
                format: EncodedLineString (string) or LineString (object)
                description: >-
                  The geometry of the route. The format depends on the value of
                  `points_encoded`.
                example: >-
                  c{|oCacrfPh@hA~B~ErCcBrGwD`Bw@rOkGDNyKtEiChAmIxE~@fB_AgB_L~GK[d@Y
              instructions:
                type: array
                items:
                  type: object
                  properties:
                    distance:
                      type: number
                      format: double
                      description: |
                        The distance for this instruction, in meters.
                      example: 0
                    sign:
                      type: integer
                      format: int64
                      description: |
                        A number which specifies the sign to show.
                      example: 5
                    interval:
                      type: array
                      description: >
                        Two indices into `points`, referring to the beginning
                        and the end of the segment of the route this instruction
                        refers to.
                      items:
                        type: integer
                        format: int64
                        example: 0
                    text:
                      type: string
                      description: >
                        A description what the user has to do in order to follow
                        the route. The language depends on the locale parameter.
                      example: Waypoint 1
                    time:
                      type: integer
                      format: int32
                      description: |
                        The duration for this instruction, in milliseconds.
                      example: 0
                    street_name:
                      type: string
                      description: >
                        The name of the street to turn onto in order to follow
                        the route.
                      example: null
              legs:
                type: array
              details:
                type: object
              ascend:
                type: number
                format: double
                description: The total ascent, in meters.
                example: 0
              descend:
                type: number
                format: double
                description: The total descent, in meters.
                example: 0
              snapped_waypoints:
                type: string
                format: EncodedLineString (string) or LineString (object)
                description: >
                  The snapped input points. The format depends on the value of
                  `points_encoded`.
                example: c{|oCacrfP??h@hArGzB|AtBeM`C
    route_with_routing_algorithm:
      type: object
      properties:
        data:
          type: object
          properties:
            start:
              type: object
              properties:
                latitude:
                  type: number
                  description: Latitude of the starting point
                longitude:
                  type: number
                  description: Longitude of the starting point
              required:
                - latitude
                - longitude
            destination:
              type: object
              properties:
                latitude:
                  type: number
                  description: Latitude of the destination point
                longitude:
                  type: number
                  description: Longitude of the destination point
              required:
                - latitude
                - longitude
          required:
            - start
            - destination
      required:
        - data
    routing_success:
      type: object
      properties:
        code:
          type: string
          example: OK
        routes:
          type: array
          items:
            type: object
            properties:
              geometry:
                type: string
                description: >-
                  The unsimplified geometry of the route segment, depending on
                  the geometries parameter.
                example: >-
                  bqCmhpfPdMaDqEqO`U}MiFc`BueAjZonBlGisJs_@uh@gManAeJaaBzGsZbQ}v@jsAw`@jwAqt@p`BiBtjAvZzhAga@fAmXbQoi@mmA{vA~Ly`CfE
              legs:
                type: array
                items:
                  type: object
                  properties:
                    steps:
                      type: array
                    distance:
                      type: number
                      description: >-
                        The distance traveled by this route leg, in float
                        meters.
                      example: 31580.5
                    duration:
                      type: number
                      description: The estimated travel time, in float number of seconds.
                      example: 5011.5
                    summary:
                      type: string
                      description: Summary of the route taken as string.
                    weight:
                      type: number
                      example: 5011.5
              distance:
                type: number
                description: >-
                  The distance of travel from the maneuver to the subsequent
                  step, in float meters.
                example: 31580.5
              duration:
                type: number
                description: The estimated travel time, in float number of seconds.
                example: 5011.5
              weight_name:
                type: string
                example: routability
              weight:
                type: number
                example: 5011.5
        waypoints:
          type: array
          items:
            type: object
            properties:
              hint:
                type: string
                example: >-
                  1M4MgNbODIAAAAAAUQAAAAAAAABWAgAAAAAAAFZN10EAAAAA6SFHQwAAAABRAAAAAAAAAFYCAADlAAAA6tliBeZObQG10mIF1E9tAQAATwsayG8z
              distance:
                type: number
                description: >-
                  The distance of travel from the maneuver to the subsequent
                  step, in float meters.
                example: 189.684241
              name:
                type: string
                example: null
              location:
                type: array
                items:
                  type: number
                minItems: 2
                maxItems: 2
                example:
                  - 90.364394
                  - 23.940838
    rupantor_address_match_form:
      type: object
      properties:
        q:
          type: string
          description: হাউস ১৮, রোড ৫, ব্লক জি, সেকশন ২ মিরপুর
        q2:
          type: string
          description: house 18, road 5, block G, section 2, mirpur
        match:
          type: boolean
          description: 'yes'
      required:
        - q
        - q2
        - match
    rupantor_address_match_success:
      type: object
      properties:
        match:
          type: object
          properties:
            address 1:
              type: string
              example: হাউস ১৮, রোড ৫, ব্লক জি, সেকশন ২ মিরপুর
            address 2:
              type: string
              example: house 18, road 5, block j, section 2, mirpur
            address_short:
              type: string
              example: Shewrapara Koborsthan, East Shewrapara, Shewrapara
            match percentage:
              type: string
              example: 100%
            match status:
              type: string
              example: exact
        status:
          type: integer
          default: 200
    rupantor_geocoder_form_v1:
      type: object
      properties:
        q:
          type: string
          description: matikata rd basa 572/k barikoi
        thana:
          type: boolean
          description: 'yes'
        district:
          type: boolean
          description: 'yes'
        bangla:
          type: boolean
          description: 'yes'
      required:
        - q
    rupantor_geocoder_form_v2:
      type: object
      properties:
        q:
          type: string
          description: shawrapara
        thana:
          type: boolean
          description: 'yes'
        district:
          type: boolean
          description: 'yes'
        bangla:
          type: boolean
          description: 'yes'
      required:
        - q
    rupantor_geocoder_success:
      type: object
      properties:
        given_address:
          type: string
          example: shawrapara
        fixed_address:
          type: string
          example: shewrapara, mirpur
        bangla_address:
          type: string
          example: শেওড়াপাড়া কবরস্থান, ইস্ট শেওড়াপাড়া, শেওড়াপাড়া, মিরপুর, ঢাকা
        address_status:
          type: string
          example: incomplete
        geocoded_address:
          type: object
          properties:
            Address:
              type: string
              example: >-
                Shewrapara Koborsthan, East Shewrapara, Shewrapara, Mirpur,
                Dhaka
            address:
              type: string
              example: >-
                Shewrapara Koborsthan, East Shewrapara, Shewrapara, Mirpur,
                Dhaka
            address_bn:
              type: string
              example: >-
                শেওড়াপাড়া কবরস্থান, ইস্ট শেওড়াপাড়া, শেওড়াপাড়া, মিরপুর,
                ঢাকা
            alternate_address:
              type: string
              example: >-
                Shewrapara Koborsthan, East Shewrapara, Shewrapara, Mirpur,
                Dhaka
            area:
              type: string
              example: Mirpur
            area_bn:
              type: string
              example: মিরপুর
            bounds:
              type: string
              example: >-
                POLYGON((90.37576053 23.79175613,90.37567053
                23.79184613,90.37558053 23.79175613,90.37567053
                23.79166613,90.37576053 23.79175613))
            business_name:
              type: string
              example: Shewrapara Koborsthan
            city:
              type: string
              example: Dhaka
            city_bn:
              type: string
              example: ঢাকা
            created_at:
              type: string
              format: date-time
              example: '2018-02-06T14:43:12'
            district:
              type: string
              example: Dhaka
            geo_location:
              type: array
              items:
                type: number
              example:
                - 90.37567053
                - 23.79175613
            holding_number:
              type: 'null'
            id:
              type: integer
              example: 221788
            latitude:
              type: string
              example: '23.79175613'
            location:
              type: string
              example: 23.79175613,90.37567053
            location_shape:
              type: string
              example: POINT (90.37567053 23.79175613)
            longitude:
              type: string
              example: '90.37567053'
            match_freq:
              type: integer
              example: 10
            match_fuzzy:
              type: integer
              example: 0
            matching_diff:
              type: integer
              example: 1
            new_address:
              type: string
              example: >-
                Shewrapara Koborsthan, East Shewrapara, Shewrapara, Mirpur,
                Dhaka
            pType:
              type: string
              example: Religious Place
            place_code:
              type: string
              example: TOLJ0109
            popularity_ranking:
              type: integer
              example: 1
            postCode:
              type: integer
              example: 1216
            postcode:
              type: integer
              example: 1216
            road_name_number:
              type: 'null'
            score:
              type: integer
              example: 0
            subType:
              type: string
              example: Graveyard
            sub_area:
              type: string
              example: Shewrapara
            sub_district:
              type: string
              example: Kafrul
            sub_type:
              type: string
              example: Graveyard
            super_sub_area:
              type: string
              example: East Shewrapara
            thana:
              type: string
              example: Kafrul
            type:
              type: string
              example: Religious Place
            uCode:
              type: string
              example: TOLJ0109
            union:
              type: 'null'
            unions:
              type: 'null'
            updated_at:
              type: string
              format: date-time
              example: '2023-10-18T15:20:11'
            user_id:
              type: integer
              example: 1273
        confidence_score_percentage:
          type: integer
          example: 70
        status:
          type: integer
          default: 200
    snap_to_road_success:
      type: object
      properties:
        coordinates:
          type: array
          items:
            type: number
            format: double
          example:
            - 90.36288583910802
            - 23.80475086627028
        distance:
          type: number
          format: double
          example: 0.5866113852736488
        type:
          type: string
          example: Point
    subdistricts_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 340
              name:
                type: string
                example: Mirpur
              district:
                type: string
                example: Dhaka
              center:
                type: string
                example: '{"type":"Point","coordinates":[90.361755984,23.794160142]}'
    unions_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 1440
              name:
                type: string
                example: Dhaka Dakkhin
              sub_district:
                type: string
                example: Golabganj
              center:
                type: string
                example: '{"type":"Point","coordinates":[92.035110667,24.811296741]}'
    update_single_point_success:
      type: object
      properties:
        message:
          type: string
          example: Geo fence point updated
        status:
          type: integer
          default: 200
    ward_geometry_success:
      type: object
      properties:
        ward:
          type: object
          properties:
            ward_number:
              type: number
              default: 31
            geometry:
              type: string
              default: >-
                {"type": "Polygon", "coordinates": [[[90.366198, 23.762884],
                [90.366385, 23.762196], [90.364897, 23.761787], [90.365314,
                23.76058], [90.365408, 23.760335], [90.365535, 23.759973],
                [90.365757, 23.759365], [90.366425, 23.759635], [90.367205,
                23.757316], [90.367301, 23.757033], [90.366696, 23.756858],
                [90.366887, 23.755973], [90.366429, 23.755908], [90.366556,
                23.755447], [90.36579, 23.75532], [90.36592, 23.754774],
                [90.36532, 23.754647], [90.364874, 23.754292], [90.363961,
                23.755053], [90.363957, 23.75505], [90.363949, 23.755056],
                [90.363947, 23.75506], [90.363674, 23.755298], [90.363619,
                23.755345], [90.36357, 23.755387], [90.363358, 23.755567],
                [90.362842, 23.755997], [90.362214, 23.756507], [90.361939,
                23.756734], [90.361737, 23.756911], [90.361514, 23.757009],
                [90.361299, 23.757099], [90.361199, 23.75713], [90.3611,
                23.757163], [90.360846, 23.75726], [90.360334, 23.757679],
                [90.360285, 23.75774], [90.359613, 23.758563], [90.359547,
                23.758677], [90.35929, 23.759151], [90.359081, 23.759592],
                [90.358951, 23.76], [90.358912, 23.760536], [90.358963,
                23.760893], [90.358951, 23.76096], [90.358921, 23.761251],
                [90.35892, 23.761312], [90.358897, 23.761692], [90.358876,
                23.761962], [90.35885, 23.76219], [90.35885, 23.762254],
                [90.358819, 23.762396], [90.358897, 23.762418], [90.359483,
                23.762571], [90.360431, 23.762849], [90.360823, 23.762947],
                [90.361373, 23.763125], [90.361702, 23.763216], [90.361932,
                23.763266], [90.362112, 23.763334], [90.362374, 23.763419],
                [90.362698, 23.7635], [90.362898, 23.763573], [90.363113,
                23.763628], [90.363989, 23.763872], [90.364428, 23.763995],
                [90.365048, 23.764177], [90.365204, 23.764218], [90.365492,
                23.764295], [90.365577, 23.764068], [90.365709, 23.763695],
                [90.365841, 23.763328], [90.365897, 23.763149], [90.365932,
                23.763059], [90.366009, 23.762979], [90.366044, 23.762941],
                [90.366152, 23.762898], [90.366198, 23.762884]]]}
        status:
          type: number
          default: 200
    ward_success:
      type: array
      items:
        type: object
        properties:
          Ward:
            type: integer
            default: 7
    wardzone_success:
      type: object
      properties:
        ward:
          type: integer
          default: 7
        ward area:
          type: string
          default: >-
            {"type": "Polygon", "coordinates": [[[90.366213, 23.815692],
            [90.366953, 23.812939], [90.367616, 23.810559], [90.367781,
            23.809919], [90.367905, 23.809467], [90.368214, 23.808347],
            [90.368475, 23.807438], [90.368488, 23.807388], [90.368568,
            23.807089], [90.368485, 23.807074], [90.367573, 23.806866],
            [90.366942, 23.806706], [90.366865, 23.806684], [90.366787,
            23.806672], [90.366232, 23.80652], [90.365963, 23.806441],
            [90.365687, 23.806311], [90.365108, 23.806016], [90.364421,
            23.805636], [90.363533, 23.805096], [90.362932, 23.804733],
            [90.362015, 23.804151], [90.360848, 23.803413], [90.35955,
            23.802584], [90.358351, 23.801803], [90.357756, 23.801423],
            [90.357077, 23.800988], [90.356745, 23.800775], [90.356026,
            23.800323], [90.355967, 23.800281], [90.355285, 23.799847],
            [90.355065, 23.800176], [90.35476, 23.800618], [90.354457,
            23.801035], [90.353916, 23.801826], [90.353375, 23.802613],
            [90.352968, 23.803212], [90.352523, 23.803857], [90.352153,
            23.804365], [90.351777, 23.804927], [90.351689, 23.80518],
            [90.351641, 23.805388], [90.351569, 23.806026], [90.351112,
            23.807526], [90.354567, 23.809209], [90.353773, 23.809533],
            [90.353622, 23.810132], [90.354148, 23.810377], [90.354159,
            23.810603], [90.354041, 23.81079], [90.353655, 23.810897],
            [90.353408, 23.810867], [90.352924, 23.813075], [90.35491,
            23.813793], [90.35475, 23.814563], [90.354568, 23.814971],
            [90.356037, 23.815354], [90.357506, 23.815736], [90.357828,
            23.815167], [90.358622, 23.815088], [90.358686, 23.813581],
            [90.35933, 23.812713], [90.361196, 23.812654], [90.362447,
            23.814799], [90.363237, 23.815187], [90.366213, 23.815692]]]}
        zone:
          type: integer
          default: 2
    zone_success:
      type: array
      items:
        type: object
        properties:
          Zone:
            type: integer
            default: 2
    rev_geo_server_success:
      type: object
      properties:
        place:
          type: object
          properties:
            id:
              type: integer
              example: 534001
            distance_within_meters:
              type: number
              example: 3.9083
            address:
              type: string
              example: House 20, Avenue 3, Lane 25, Block D, Section 11
            area:
              type: string
              example: Mirpur
            city:
              type: string
              example: Dhaka
            postCode:
              type: integer
              example: 1216
            country:
              type: string
              example: Bangladesh
            division:
              type: string
              example: Dhaka
            sub_district:
              type: string
              example: Pallabi
            district:
              type: string
              example: Dhaka
            pauroshova:
              type: string
              example: null
            union:
              type: string
              example: null
            location_type:
              type: string
              example: Urban
            address_components:
              type: object
              properties:
                place_name:
                  type: string
                  example: null
                house:
                  type: string
                  example: House 20
                road:
                  type: string
                  example: Avenue 3
            area_components:
              type: object
              properties:
                area:
                  type: string
                  example: Mirpur
                sub_area:
                  type: string
                  example: Section 11
        status:
          type: integer
          default: 200
    distance_success:
      type: object
      properties:
        Distance:
          type: string
          default: 0.8081 KM
        status:
          type: integer
          default: 200
    all_ward_success:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              ward:
                type: integer
                example: 15
              zone:
                type: integer
                example: 1
              area:
                type: string
                example: >-
                  {"type":"Polygon","coordinates":[[[90.37581,23.737691],[90.376834,23.737794],[90.376266,23.738295],[90.377296,23.738437],[90.378063,23.737651],[90.379264,23.736541],[90.381346,23.736716],[90.380981,23.7376],[90.383492,23.738052],[90.383642,23.738098],[90.382966,23.740853],[90.383631,23.741293],[90.383789,23.741698],[90.384025,23.742373],[90.384326,23.743176],[90.384685,23.744144],[90.385106,23.745332],[90.384224,23.74517],[90.383596,23.745059],[90.382048,23.744679],[90.381716,23.745283],[90.381279,23.746056],[90.380879,23.746759],[90.380402,23.7475],[90.379272,23.749506],[90.378918,23.750157],[90.377215,23.749585],[90.375528,23.749668],[90.375075,23.750562],[90.374576,23.751544],[90.37408,23.752516],[90.373589,23.753488],[90.372869,23.754907],[90.372555,23.754717],[90.37202,23.754399],[90.371191,23.7539],[90.370526,23.753498],[90.369461,23.75283],[90.367799,23.751776],[90.367656,23.751705],[90.36838,23.750606],[90.37044,23.74763],[90.371861,23.745578],[90.372792,23.744237],[90.371662,23.743562],[90.371287,23.743542],[90.370212,23.743606],[90.369494,23.743814],[90.369295,23.743849],[90.368844,23.743666],[90.368754,23.743794],[90.368561,23.743806],[90.368101,23.743904],[90.367815,23.743935],[90.367544,23.743906],[90.367398,23.743847],[90.367173,23.743741],[90.366524,23.743402],[90.366651,23.742953],[90.366734,23.742517],[90.366689,23.741944],[90.366667,23.741628],[90.36682,23.741648],[90.367188,23.741696],[90.367664,23.741753],[90.368514,23.741858],[90.369718,23.742007],[90.370381,23.742358],[90.371274,23.742468],[90.372291,23.742596],[90.372826,23.742437],[90.37328,23.74172],[90.373687,23.741074],[90.374597,23.739631],[90.375657,23.737944],[90.37581,23.737691]]]}
    all_zone_success:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              zone:
                type: integer
                example: 1
              area:
                type: string
                example: >-
                  {"type":"Polygon","coordinates":[[[90.511637,23.635197],[90.505972,23.636258],[90.505157,23.631819],[90.510607,23.630365],[90.511637,23.635197]]]}
    get_place_details:
      type: object
      properties:
        session_id:
          type: string
          example: 8d6a20cb-e07d-4332-a293-d0cf0fce968e
        status:
          type: integer
          default: 200
        place:
          type: object
          properties:
            address:
              type: string
              example: >-
                Barikoi HQ (barikoi.com), Dr Mohsin Plaza, House  2/7, Begum
                Rokeya Sarani, Pallabi, Mirpur, Dhaka
            place_code:
              type: string
              example: BKOI2017
            latitude:
              type: string
              example: '23.823730671721'
            longitude:
              type: string
              example: '90.36402004477634'
    nearby_with_category_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 487287
              name:
                type: string
                example: Kids Time Mirpur Dohs
              distance_in_meters:
                type: string
                example: '273.35821539'
              longitude:
                type: string
                example: '90.36803662776947'
              latitude:
                type: string
                example: '23.839360828986447'
              city:
                type: string
                example: Dhaka
              area:
                type: string
                example: Mirpur
              ST_AsText(location):
                type: string
                example: POINT(90.36803662776947 23.839360828986447)
              pType:
                type: string
                example: Education
              subType:
                type: string
                example: Daycare, Special School
              postCode:
                type: string
                example: '1216'
              Address:
                type: string
                example: >-
                  Kids Time Mirpur Dohs, House 925, Road 13A, Mirpur DOHS,
                  Mirpur, Dhaka
              uCode:
                type: string
                example: QTJM5353
    nearby_with_multiple_success:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
                example: 1774563
              name:
                type: string
                example: Shibpur School
              distance_in_meters:
                type: string
                example: '348.27006271'
              longitude:
                type: string
                example: '90.368641270246'
              latitude:
                type: string
                example: '23.834669948069'
              city:
                type: string
                example: Dhaka
              area:
                type: string
                example: Mirpur
              ST_AsText(location):
                type: string
                example: POINT(90.368641270246 23.834669948069)
              pType:
                type: string
                example: Education
              subType:
                type: string
                example: School
              postCode:
                type: string
                example: '1216'
              Address:
                type: string
                example: Shibpur School, House 263, Road 3, Mirpur DOHS, Mirpur, Dhaka
              uCode:
                type: string
                example: CHDA0183
        status:
          type: integer
          example: 200
    routing_algorithm_success:
      type: object
      properties:
        trip:
          type: object
          properties:
            locations:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    example: break
                  lat:
                    type: number
                    format: float
                    example: 23.791645
                  lon:
                    type: number
                    format: float
                    example: 90.365587
                  original_index:
                    type: integer
                    example: 0
            legs:
              type: array
              items:
                type: object
                properties:
                  maneuvers:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: integer
                          example: 1
                        instruction:
                          type: string
                          example: Drive north.
                        verbal_succinct_transition_instruction:
                          type: string
                          example: Drive north. Then Bear left.
                        verbal_pre_transition_instruction:
                          type: string
                          example: Drive north. Then Bear left.
                        verbal_post_transition_instruction:
                          type: string
                          example: Continue for 40 feet.
                        time:
                          type: number
                          format: float
                          example: 1.011
                        length:
                          type: number
                          format: float
                          example: 0.006
                        cost:
                          type: number
                          format: float
                          example: 1.238
                        begin_shape_index:
                          type: integer
                          example: 0
                        end_shape_index:
                          type: integer
                          example: 1
                        verbal_multi_cue:
                          type: boolean
                          example: true
                        travel_mode:
                          type: string
                          example: drive
                        travel_type:
                          type: string
                          example: car
                        street_names:
                          type: array
                          items:
                            type: string
                          example:
                            - 60 Feet Kamal Soroni Road
                            - 60 Feet
                  summary:
                    type: object
                    properties:
                      has_time_restrictions:
                        type: boolean
                        example: false
                      has_toll:
                        type: boolean
                        example: false
                      has_highway:
                        type: boolean
                        example: false
                      has_ferry:
                        type: boolean
                        example: false
                      min_lat:
                        type: number
                        format: float
                        example: 23.784703
                      min_lon:
                        type: number
                        format: float
                        example: 90.365201
                      max_lat:
                        type: number
                        format: float
                        example: 23.791915
                      max_lon:
                        type: number
                        format: float
                        example: 90.3676
                      time:
                        type: number
                        format: float
                        example: 97.969
                      length:
                        type: number
                        format: float
                        example: 0.58
                      cost:
                        type: number
                        format: float
                        example: 257.358
                  shape:
                    type: string
                    example: >-
                      w`ckl@_hnjkDyD`A{EtKgCfD`AjA~@j@rADxKsA|FkAfPsHh@mDkCsLi@cCnP}GjGoChEkCbUiItNcDjMwApI}@d[eApF[|GM|MgBhTgHlTmIx^mGr]iDhSoBvWKzIEbZoEtTwEhFy@|\\{IrGaC
            summary:
              type: object
              properties:
                has_time_restrictions:
                  type: boolean
                  example: false
                has_toll:
                  type: boolean
                  example: false
                has_highway:
                  type: boolean
                  example: false
                has_ferry:
                  type: boolean
                  example: false
                min_lat:
                  type: number
                  format: float
                  example: 23.784703
                min_lon:
                  type: number
                  format: float
                  example: 90.365201
                max_lat:
                  type: number
                  format: float
                  example: 23.791915
                max_lon:
                  type: number
                  format: float
                  example: 90.3676
                time:
                  type: number
                  format: float
                  example: 97.969
                length:
                  type: number
                  format: float
                  example: 0.58
                cost:
                  type: number
                  format: float
                  example: 257.358
            status_message:
              type: string
              example: Found route between points
            status:
              type: integer
              example: 0
            units:
              type: string
              example: miles
            language:
              type: string
              example: en-US
        id:
          type: string
          example: test_route
    search_place:
      type: object
      properties:
        places:
          type: array
          items:
            type: object
            properties:
              address:
                type: string
                example: >-
                  Barikoi HQ (barikoi.com), Dr Mohsin Plaza, House 2/7, Begum
                  Rokeya Sarani, Pallabi, Mirpur, Dhaka
              place_code:
                type: string
                example: BKOI2017
        session_id:
          type: string
          example: eec76e23-481f-4060-8959-df5db6219126
        status:
          type: integer
          example: 200
  responses:
    add_point_success:
      description: add_point_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/add_point_success'
    all_word_success:
      $ref: '#/components/responses/all_ward_success'
    all_zone_success:
      description: all_zone_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/all_zone_success'
    api_limit_exceeded:
      description: api_limit_exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/api_limit_exceeded'
    area_success:
      description: area_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/area_success'
    autocomplete_bangla_success:
      description: autocomplete_bangla_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/autocomplete_bangla_success'
    autocomplete_success:
      description: autocomplete_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/autocomplete_success'
    check_geo_fence_success:
      description: check_geo_fence_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/check_geo_fence_success'
    cities_success:
      description: cities_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/cities_success'
    distance_success:
      description: distance_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/distance_success'
    dncc_success:
      description: dncc_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/dncc_success'
    delete_single_point_success:
      description: delete_point_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/delete_single_point_success'
    districts_success:
      description: districts_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/districts_success'
    get_point_success:
      description: get_point_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/get_point_success'
    get_single_point_success:
      description: get_point_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/get_point_success'
    get_place_details:
      description: get_place_details
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/get_place_details'
    missing_parameter:
      description: missing_parameter
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/missing_parameter'
    nearby_success:
      description: nearby_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/nearby_success'
    nearby_with_category_success:
      description: nearby_success_with_category
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/nearby_with_category_success'
    nearby_with_multiple_success:
      description: nearby_success_with_multiple
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/nearby_with_multiple_success'
    no_registered_key:
      description: no_registered_key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/no_registered_key'
    payment_exception:
      description: payment_exception
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/payment_exception'
    point_in_polygon_success:
      description: point_in_polygon_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/point_in_polygon_success'
    rev_geo_server_success:
      description: rev_geo_server_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/rev_geo_server_success'
    rev_geo_success:
      description: rev_geo_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/rev_geo_success'
    route_location_optimized_success:
      description: route_location_optimized_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/route_location_optimized_success'
    route_match_success:
      description: route_match_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/route_match_success'
    route_optimization_success:
      description: route_optimization_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/route_optimization_success'
    routing_algorithm_success:
      description: routing_algorithm_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/routing_algorithm_success'
    routing_success:
      description: routing_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/routing_success'
    rupantor_address_match_success:
      description: rupantor_address_match_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/rupantor_address_match_success'
    rupantor_geocoder_success:
      description: rupantor_geocoder_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/rupantor_geocoder_success'
    search_place:
      description: search_place
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/search_place'
    snap_to_road_success:
      description: snap_to_road_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/snap_to_road_success'
    subdistricts_success:
      description: subdistricts_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/subdistricts_success'
    unions_success:
      description: unions_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/unions_success'
    update_single_point_success:
      description: update_point_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/update_single_point_success'
    ward_geometry_success:
      description: ward_geometry_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ward_geometry_success'
    ward_success:
      description: ward_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ward_success'
    wardzone_success:
      description: wardzone_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/wardzone_success'
    zone_success:
      description: zone_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/zone_success'
    all_ward_success:
      description: all_ward_success
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/all_ward_success'
