示例#1
0
def zsj_post_api(body=None):  # noqa: E501
    """find basic settlement unit by coordinates

    By passing in the appropriate options, you can search for the basic settlement unit  # noqa: E501

    :param body:
    :type body: dict | bytes

    :rtype: Zsj
    """
    __name__ = who_am_i()
    COUNTER[__name__] += 1
    out = None
    if body is not None:
        print('BODY: {0}'.format(str(body)))
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
        if body is not None:
            out = zsj(x=body.x, y=body.y)
        else:
            logging.error('{}: {}'.format(__name__,
                                          'Missing input coordinates'))
    else:
        logging.error('{}: {}'.format(__name__, 'Missing input data'))
    return out
示例#2
0
def mapy50_post_api(body=None):  # noqa: E501
    """find map sheets layout by coordinates

    By passing in the appropriate options, you can search for the map sheets layout  # noqa: E501

    :param body:
    :type body: dict | bytes

    :rtype: MapovyList50
    """
    __name__ = who_am_i()
    COUNTER[__name__] += 1
    out = None
    if body is not None:
        print('BODY: {0}'.format(str(body)))
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
        if body is not None:
            out = mapy50(x=body.x, y=body.y)
        else:
            logging.error('{0}: {1}'.format(__name__,
                                            'Missing input coordinates'))
    else:
        logging.error('{0}: {1}'.format(__name__, 'Missing input data'))
    return out
示例#3
0
def nearby_address_post_api(body=None):  # noqa: E501
    """find nearby adresses by coordinates

    By passing in the appropriate options, you can search for the nearby adresses  # noqa: E501

    :param body:
    :type body: dict | bytes

    :rtype: List[NearbyAddress]
    """
    __name__ = who_am_i()
    COUNTER[__name__] += 1
    out = None
    if body is not None:
        print('BODY: {0}'.format(str(body)))
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
        if body is not None:
            out = nearby_address(x=body.x, y=body.y)
        else:
            logging.error('{0}: {1}'.format(__name__,
                                            'Missing input coordinates'))
    else:
        logging.error('{0}: {1}'.format(__name__, 'Missing input data'))
    return out
示例#4
0
def convert_point_wgs_post_api(body=None):  # noqa: E501
    """converts one point from JTSK to WGS-84

    By passing in the appropriate options, you can obtain converted value  # noqa: E501

    :param body:
    :type body: dict | bytes

    :rtype: PointWgs
    """
    __name__ = who_am_i()
    COUNTER[__name__] += 1
    out = None
    if body is not None:
        print('BODY: {0}'.format(str(body)))
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
        if (body.x is not None) and (body.y is not None):
            out = point2wgs(y=str(body.y), x=str(body.x))
            logging.info('{0}: {1}'.format(__name__, 'Result returned'))
        else:
            logging.error('{0}: {1}'.format(__name__,
                                            'Missing input coordinates'))
    else:
        logging.error('{0}: {1}'.format(__name__, 'Missing input data'))
    return out
示例#5
0
def zsj_post_api(body=None):  # noqa: E501
    """find basic settlement unit by coordinates

    By passing in the appropriate options, you can search for the basic settlement unit  # noqa: E501

    :param body: 
    :type body: dict | bytes

    :rtype: Zsj
    """
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
示例#6
0
def nearby_address_post_api(body=None):  # noqa: E501
    """find nearby adresses by coordinates

    By passing in the appropriate options, you can search for the nearby adresses  # noqa: E501

    :param body: 
    :type body: dict | bytes

    :rtype: List[NearbyAddress]
    """
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
示例#7
0
def mapy50_post_api(body=None):  # noqa: E501
    """find map sheets layout by coordinates

    By passing in the appropriate options, you can search for the map sheets layout  # noqa: E501

    :param body: 
    :type body: dict | bytes

    :rtype: MapovyList50
    """
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
示例#8
0
def ku_post_api(body=None):  # noqa: E501
    """find cadastral territory by coordinates

    By passing in the appropriate options, you can search for the cadastral territory  # noqa: E501

    :param body: 
    :type body: dict | bytes

    :rtype: KatastralniUzemi
    """
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
示例#9
0
def convert_point_wgs_post_api(body=None):  # noqa: E501
    """converts one point from JTSK to WGS-84

    By passing in the appropriate options, you can obtain converted value  # noqa: E501

    :param body: 
    :type body: dict | bytes

    :rtype: PointWgs
    """
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
示例#10
0
def ku_post_api(body=None):  # noqa: E501
    """find cadastral territory by coordinates

    By passing in the appropriate options, you can search for the cadastral territory  # noqa: E501

    :param body:
    :type body: dict | bytes

    :rtype: KatastralniUzemi
    """
    __name__ = who_am_i()
    COUNTER[__name__] += 1
    out = None
    if body is not None:
        print('BODY: {0}'.format(str(body)))
    if connexion.request.is_json:
        body = PointJtsk.from_dict(connexion.request.get_json())  # noqa: E501
        out = ku(x=body.x, y=body.y)
    else:
        logging.error('{0}: {1}'.format(__name__, 'Missing input data'))
    return out