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::street_request Struct Reference

What a street call asks for: the street an address in that place would have. Same fields as address_request, without the unit and script. 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}
 Streets by address count; false is uniform.
 
address_script script {address_script::local}
 latin gives the Latin name where the data has one.
 

Detailed Description

What a street call asks for: the street an address in that place would have. Same fields as address_request, without the unit and script.

Definition at line 96 of file addressgen.hpp.

Member Data Documentation

◆ country

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

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

Definition at line 98 of file addressgen.hpp.

◆ place

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

Anchor to this place instead of drawing one.

Definition at line 99 of file addressgen.hpp.

◆ script

address_script dasmig::street_request::script {address_script::local}

latin gives the Latin name where the data has one.

Definition at line 101 of file addressgen.hpp.

◆ weighted

bool dasmig::street_request::weighted {true}

Streets by address count; false is uniform.

Definition at line 100 of file addressgen.hpp.


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