mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-17 09:47:23 +00:00
updates
This commit is contained in:
@@ -87,7 +87,7 @@ class BiergartenPipelineOrchestrator {
|
|||||||
* @return Vector of locations randomly sampled per
|
* @return Vector of locations randomly sampled per
|
||||||
* PipelineOptions::location_count.
|
* PipelineOptions::location_count.
|
||||||
*/
|
*/
|
||||||
std::vector<Location> QueryCitiesWithCountries();
|
std::vector<Location> QueryLocations();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Generate breweries for enriched cities.
|
* @brief Generate breweries for enriched cities.
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ namespace prog_opts = boost::program_options;
|
|||||||
struct Location {
|
struct Location {
|
||||||
std::string city{};
|
std::string city{};
|
||||||
std::string state_province{};
|
std::string state_province{};
|
||||||
|
std::string postal_code{};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief ISO 3166-2 subdivision code.
|
* @brief ISO 3166-2 subdivision code.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include "services/logging/logger.h"
|
#include "services/logging/logger.h"
|
||||||
|
|
||||||
std::vector<Location>
|
std::vector<Location>
|
||||||
BiergartenPipelineOrchestrator::QueryCitiesWithCountries() {
|
BiergartenPipelineOrchestrator::QueryLocations() {
|
||||||
logger_->Log({.level = LogLevel::Info,
|
logger_->Log({.level = LogLevel::Info,
|
||||||
.phase = PipelinePhase::Startup,
|
.phase = PipelinePhase::Startup,
|
||||||
.message = "=== GEOGRAPHIC DATA OVERVIEW ==="});
|
.message = "=== GEOGRAPHIC DATA OVERVIEW ==="});
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ bool BiergartenPipelineOrchestrator::Run() {
|
|||||||
try {
|
try {
|
||||||
exporter_->Initialize();
|
exporter_->Initialize();
|
||||||
|
|
||||||
std::vector<Location> cities = QueryCitiesWithCountries();
|
std::vector<Location> cities = QueryLocations();
|
||||||
std::vector<EnrichedCity> enriched;
|
std::vector<EnrichedCity> enriched;
|
||||||
enriched.reserve(cities.size());
|
enriched.reserve(cities.size());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user