Exemple #1
0
def nearby_address_wgs_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 = PointWgs.from_dict(connexion.request.get_json())  # noqa: E501
        if body is not None:
            out = nearby_address_wgs(lat=str(body.lat), lon=str(body.lat))
        else:
            logging.error('{0}: {1}'.format(__name__,
                                            'Missing input coordinates'))
    else:
        logging.error('{0}: {1}'.format(__name__, 'Missing input data'))
    return out
Exemple #2
0
def zsj_wgs_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 = PointWgs.from_dict(connexion.request.get_json())  # noqa: E501
        if body is not None:
            out = zsj_wgs(lat=str(body.lat), lon=str(body.lon))
        else:
            logging.error('{}: {}'.format(__name__,
                                          'Missing input coordinates'))
    else:
        logging.error('{}: {}'.format(__name__, 'Missing input data'))
    return out
def convert_point_jtsk_post_api(body=None):  # noqa: E501
    """converts one point from WGS-84 to JTSK

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

    :param body: 
    :type body: dict | bytes

    :rtype: PointJtsk
    """
    if connexion.request.is_json:
        body = PointWgs.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
def zsj_wgs_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 = PointWgs.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
def nearby_address_wgs_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 = PointWgs.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
def mapy50_wgs_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 = PointWgs.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
Exemple #7
0
def convert_point_jtsk_post_api(body=None):  # noqa: E501
    """converts one point from WGS-84 to JTSK

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

    :param body:
    :type body: dict | bytes

    :rtype: PointJtsk
    """
    __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 = PointWgs.from_dict(connexion.request.get_json())  # noqa: E501
        out = convert_point_jtsk(lat=str(body.lat), lon=str(body.lon))
    else:
        logging.error('{}: {}'.format(__name__, 'Missing input data'))
    return out