# sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps architecture

> Architecture diagram of the GitHub repository sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps
- Repository: https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps

## Overview

This script automates bulk address lookup: it reads addresses from an Excel workbook, searches Bing Maps through a controlled Chrome browser, extracts coordinates from the resulting URL, and appends status and coordinates to a CSV. The main script coordinates the run; helper functions handle Chrome setup, consent, search-box discovery, address searches, and URL parsing. The graph reflects the single sampled source file; it does not assume additional stages beyond those shown.

Main entry points: [`latlot_bingmaps.py`](https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py) (Batch runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_run["Batch workflow"]
  node_workbook["Address workbook"]
  node_runner["Batch runner<br/>[latlot_bingmaps.py]"]
end

subgraph group_browser["Browser automation"]
  node_chrome_setup["Chrome setup<br/>[latlot_bingmaps.py]"]
  node_consent["Consent handler<br/>[latlot_bingmaps.py]"]
  node_search_box["Search-box finder<br/>[latlot_bingmaps.py]"]
  node_address_search["Address search<br/>[latlot_bingmaps.py]"]
  node_bing["Bing Maps"]
end

subgraph group_results["Coordinate results"]
  node_url_parser["URL coordinate parser<br/>[latlot_bingmaps.py]"]
  node_csv["Results CSV"]
end

node_user(("User"))

node_user -->|"provides addresses"| node_workbook
node_runner -->|"reads addresses"| node_workbook
node_runner -->|"initializes browser"| node_chrome_setup
node_runner -->|"dismisses consent"| node_consent
node_runner -->|"finds search box"| node_search_box
node_runner -->|"loads map page"| node_bing
node_runner -->|"searches each address"| node_address_search
node_address_search -->|"submits search"| node_bing
node_address_search -->|"parses current URL"| node_url_parser
node_runner -->|"appends results"| node_csv

click node_runner "https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py"
click node_chrome_setup "https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py"
click node_consent "https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py"
click node_search_box "https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py"
click node_address_search "https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py"
click node_url_parser "https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_workbook,node_runner,node_user toneBlue
class node_chrome_setup,node_consent,node_search_box,node_address_search,node_bing toneAmber
class node_url_parser,node_csv toneMint
```

## Components

### Batch workflow

- **Address workbook**
- [Batch runner](https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py): `latlot_bingmaps.py`

### Browser automation

- [Chrome setup](https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py): `latlot_bingmaps.py`
- [Consent handler](https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py): `latlot_bingmaps.py`
- [Search-box finder](https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py): `latlot_bingmaps.py`
- [Address search](https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py): `latlot_bingmaps.py`
- **Bing Maps**

### Coordinate results

- [URL coordinate parser](https://github.com/sivaprakash442001/latlot_-latitude-logitude-_python_automation_bingmaps/blob/main/latlot_bingmaps.py): `latlot_bingmaps.py`
- **Results CSV**

### Other components

- **User**

## Connections

- User → Address workbook: provides addresses (evidence: `README.md`)
- Batch runner → Address workbook: reads addresses (evidence: `latlot_bingmaps.py`)
- Batch runner → Chrome setup: initializes browser (evidence: `latlot_bingmaps.py`)
- Batch runner → Consent handler: dismisses consent (evidence: `latlot_bingmaps.py`)
- Batch runner → Search-box finder: finds search box (evidence: `latlot_bingmaps.py`)
- Batch runner → Bing Maps: loads map page (evidence: `latlot_bingmaps.py`)
- Batch runner → Address search: searches each address (evidence: `latlot_bingmaps.py`)
- Address search → Bing Maps: submits search (evidence: `latlot_bingmaps.py`)
- Address search → URL coordinate parser: parses current URL (evidence: `latlot_bingmaps.py`)
- Batch runner → Results CSV: appends results (evidence: `latlot_bingmaps.py`)
