Address Generator 2.1.2
Postal addresses with real streets by place, laid out in each country's format for C++23
Loading...
Searching...
No Matches
dasmig::postcode_request Struct Reference

What a postcode call asks for. More...

#include <addressgen.hpp>

Public Attributes

std::optional< std::string > country {std::nullopt}
 ISO 3166-1 alpha-2, or drawn when absent.
 
std::optional< place_ref > place {std::nullopt}
 Anchor to this place instead of drawing one.
 
bool weighted {true}
 Postcodes by their weight; false is uniform.
 

Detailed Description

What a postcode call asks for.

Definition at line 105 of file addressgen.hpp.

Member Data Documentation

◆ country

std::optional<std::string> dasmig::postcode_request::country {std::nullopt}

ISO 3166-1 alpha-2, or drawn when absent.

Definition at line 107 of file addressgen.hpp.

◆ place

std::optional<place_ref> dasmig::postcode_request::place {std::nullopt}

Anchor to this place instead of drawing one.

Definition at line 108 of file addressgen.hpp.

◆ weighted

bool dasmig::postcode_request::weighted {true}

Postcodes by their weight; false is uniform.

Definition at line 109 of file addressgen.hpp.


The documentation for this struct was generated from the following file: