SlideShare a Scribd company logo
1 of 34
Download to read offline
Charge Me Up!
Using Oracle ML, Analytics,
and APEX For Finding
Optimal Charge Points
Jim Czuprynski
@JimTheWhyGuy
Zero Defect Computing, Inc.
Who Am I, and What Am I Doing Here?
➢E-mail me at jim@jimthewhyguy.com
➢Follow me on Twitter (@JimTheWhyGuy)
➢Connect with me on LinkedIn (Jim Czuprynski)
Traveler & public speaker Summers:
Wisconsin
Winters:
Illinois
Cyclist
XC skier
Avid
amateur
bird
watcher
Oldest dude in
martial arts class
Jim Czuprynski
Liron Amitzi
https://www.beyondtechskills.com
The podcast that talks about everything tech – except tech.TM
EVs: Coming to a Garage Near You Soon
Ford F-150 Lightning has received
over 200,000 orders so far
GM and Honda are aggressively
expanding into EV market
New solid-state battery
technology coming shortly
Electricity demand will likely at
least double as EVs are adopted
What will happen to
gas stations?
How will governments fund
road upkeep without
revenue from gas taxes?
EV Chargers: Terminology and Capacity
Term /
Acronym
Charging
Voltage
Description
Level 1
Charger
120V
Delivers slow “trickle” charge (3–5 miles of range per hour); OK for
most PHEVs, but not BEVs
Level 2
Charger
208V – 240V
Delivers moderate charging (12–80 miles of range per hour);
preferred by most BEV owners for overnight home charging
Level 3
Charger
400V – 900V
Delivers extremely fast charging (3 – 20 miles of range per minute);
also known as DC Fast Chargers (DCFCs) or SuperChargers
Source: https://www.forbes.com/wheels/advice/ev-charging-levels/
The Conundrum of Electric Vehicle (EV) Adoption
Even in 2022, several larger
towns already have rapid
charging stations in case my
EV’s battery is running low
A normal drive to our Wisconsin
cabin is leisurely & passes through
larger towns and smaller villages …
The Conundrum of Electric Vehicle (EV) Adoption
Even in 2022, several larger
towns already have rapid
charging stations in case my
EV’s battery is running low
A normal drive to our Wisconsin
cabin is leisurely & passes through
larger towns and smaller villages …
… but what happens if I
suddenly need to drive to my
older sister’s home in Chetek,
WI in an emergency?
I might be forced to re-route
significantly just to have an
option in case I didn’t have
time to charge my EV’s battery
Rural areas of northern and
western Wisconsin currently offer
very few EV charging options
You Start Coding. Meanwhile, I’ll Go Ask Our Users For Requirements
Identify where charging stations are already located
in Wisconsin, including public vs. private access
Create a simple-to-use mobile-capable app that lets EV drivers
quickly find the nearest charging station to their current or target
location
Figure out which potential locations for new charging
stations should be placed along key travel routes, as
well as within metropolitan & rural areas
Native Map Regions: New In APEX 21.1
APEX 21.1 offers a new Native Map region that lets you build maps to visualize location data
on a map, without any plug-in required!
• Five different layer types: Point, Line, Polygon, Heat Map, and Extruded (3D) Polygon
• All background maps are sourced directly from the Oracle Maps Cloud
• Fully interactive map features, including Drag, Zoom, and ToolTips
• Plot map features from:
• Simple numeric columns (Longitude and Latitude)
• SDO_GEOMETRY datatype
• GeoJSON objects
• Leverages Oracle Spatial features, including Spatial Indexes and Coordinate Transformations (if they
are available in your data model)
• Visualize data from SQL queries against local database, REST-Enabled SQL, or from REST Data Sources
• No API Key required!
Using Native Map Regions (1)
Select the new
Map Region …
Using Native Map Regions (1)
Select the new
Map Region …
… name the
new Page …
Using Native Map Regions (1)
Select the new
Map Region …
… name the
new Page …
… and set up the
new page’s
Navigation entry
Using Native Map Regions (3)
Choose a target table …
Using Native Map Regions (3)
Choose a target table …
… pick either a column
with an SDO_GEOMETRY
datatype, or select a pair of
Longitude / Latitude
columns for map
positioning
Note the option to add
a Faceted Search region
for the new page
Using Native Map Regions (3)
Just about any SQL query can
be the basis of a Map Region
Note we can overlay multiple
layers for the same Map
Region
Using Native Map Regions (3)
Just about any SQL query can
be the basis of a Map Region
Note we can overlay multiple
layers for the same Map
Region
The Native Map region offers
excellent control over the appearance,
navigation, and initial focus of the
map that’s displayed
Results: A (Not-So-) Simple Map
We can also see details about
each point’s location …
… and use these mapping tools
to drill down further into the
map, reposition its center, and
even measure distances
between points
Using Heat Maps to Display Traffic Intensity (1)
Create a new page for
Traffic Heat Mapping
Using Heat Maps to Display Traffic Intensity (1)
Create a new page for
Traffic Heat Mapping
Supply a query
with appropriate
columns and GIS
features
Using Heat Maps to Display Traffic Intensity (1)
Create a new page for
Traffic Heat Mapping
Supply a query
with appropriate
columns and GIS
features
Specify
where the
traffic hot
spots are
located, as
well as their
intensity
Using Heat Maps to Display Traffic Intensity (2)
Here’s the results: A map of
typical weekend traffic during
a Wisconsin summer …
… or, as dey say in Cheeseland:
Oh, ya, hey – it’s all dem FIBs
comin’ up from Illinois that’s
causin’ all deese traffic jams!
Using Heat Maps to Display Traffic Intensity (3)
Drilling into the heat map
shows greater levels of
detail, including the
“hottest” hot spots based
on specific traffic
monitoring points
Using Heat Maps to Display Traffic Intensity (3)
Drilling into the heat map
shows greater levels of
detail, including the
“hottest” hot spots based
on specific traffic
monitoring points
We can choose from myriad
arrays of color schemes to
highlight “heat” as desired
Which Potential Charging Stations Satisfy Underserved Locations?
For each location that’s
part of a selected subset
of key traffic hotspots:
Locate all
potential
charging
locations …
… that are within a
specified distance
(1 KM) …
… but that currently
have no charging
station within 1 KM
Leveraging Spatial ML & Analytics To Resolve Duplicate GeoPoints (1)
CREATE TABLE wtfc.deduplicated_locations (
tid NUMBER
,rid1 VARCHAR2(24)
,rid2 VARCHAR2(24)
) TABLESPACE data;
A table with these mandatory columns …
BEGIN
SDO_SAM.COLOCATED_REFERENCE_FEATURES(
theme_tablename => 'CHARGER_STATIONS'
,theme_colname => 'CS_GEOLOCATION'
,theme_predicate => NULL
,tablename => 'POTENTIAL_LOCATIONS'
,colname => 'PL_GEOLOCATION'
,ref_predicate => NULL
,dst_spec => 'distance=100 unit=M'
,result_tablename => 'DEDUPLICATED_LOCATIONS'
,commit_interval => 100
);
END;
/
… will capture any potentially
duplicate locations within a 100-
meter threshold of each other via
this bit of Spatial ML magic
Leveraging Spatial ML & Analytics To Resolve Duplicate GeoPoints (2)
SELECT
cs_name || ': ' || cs_address || ', ' || cs_city || ', ‘ ||
cs_state_abbr || ' ' || cs_zip_code AS actual_location
,pl_name || ': ' || pl_address || ', ' || pl_city || ', ‘ ||
pl_state_abbr || ' ' || pl_zip_code AS potential_location
FROM wtfc.deduplicated_locations XR
,wtfc.charger_stations CS
,wtfc.potential_locations PL
WHERE CS.rowid = XR.RID2
AND PL.rowid = XR.RID1;
This query lets us evaluate
the resulting geographic
deduplication
Leveraging Spatial ML & Analytics To Resolve Duplicate GeoPoints (2)
SELECT
cs_name || ': ' || cs_address || ', ' || cs_city || ', ‘ ||
cs_state_abbr || ' ' || cs_zip_code AS actual_location
,pl_name || ': ' || pl_address || ', ' || pl_city || ', ‘ ||
pl_state_abbr || ' ' || pl_zip_code AS potential_location
FROM wtfc.deduplicated_locations XR
,wtfc.charger_stations CS
,wtfc.potential_locations PL
WHERE CS.rowid = XR.RID2
AND PL.rowid = XR.RID1;
This query lets us evaluate
the resulting geographic
deduplication
Note that deduplication
happens based on the
locations’ geometry, not
their reported addresses
Finding Under-Served Traffic Hot Spots: Infrastructure
CREATE TABLE wtfc.charger_location_scoring (
tid NUMBER
,rid1 VARCHAR2(24)
,rid2 VARCHAR2(24)
) TABLESPACE data;
CREATE TABLE wtfc.charger_universe (
id NUMBER(6,0) NOT NULL
,type VARCHAR2(15) NOT NULL
,geolocation SDO_GEOMETRY
) TABLESPACE data;
Create two tables: One to store
nearby location attribute
ROWIDs, and one to hold the
universe of existing and
potential charger sites
Finding Under-Served Traffic Hot Spots: Infrastructure
CREATE TABLE wtfc.charger_location_scoring (
tid NUMBER
,rid1 VARCHAR2(24)
,rid2 VARCHAR2(24)
) TABLESPACE data;
CREATE TABLE wtfc.charger_universe (
id NUMBER(6,0) NOT NULL
,type VARCHAR2(15) NOT NULL
,geolocation SDO_GEOMETRY
) TABLESPACE data;
Create two tables: One to store
nearby location attribute
ROWIDs, and one to hold the
universe of existing and
potential charger sites
INSERT INTO user_sdo_geom_metadata
VALUES (
'CHARGER_UNIVERSE'
,'GEOLOCATION'
,SDO_DIM_ARRAY(
SDO_DIM_ELEMENT('Longitude', -180, 180, 0.5)
,SDO_DIM_ELEMENT('Latitude', -90, 90, 0.5)
)
,8307);
COMMIT;
CREATE INDEX wtfc.charger_universe_spidx
ON wtfc.charger_universe(geolocation)
INDEXTYPE IS MDSYS.SPATIAL_INDEX_V2;
Set up spatial index for
all entries in the
CHARGER_UNIVERSE
table INSERT INTO wtfc.charger_universe
SELECT cs_id, 'A' as cs_geolocation
FROM wtfc.charger_stations;
INSERT INTO wtfc.charger_universe
SELECT pl_id, 'P', pl_geolocation
FROM wtfc.potential_locations
WHERE pl_type <> 'D';
COMMIT;
Finally, add all existing
chargers and all non-
duplicate candidate
locations into
CHARGER_UNIVERSE
Finding Under-Served Traffic Hot Spots: Using Map Layers
Each map layer contains a
different piece of the puzzle:
existing chargers, high-volume
traffic spots, and the resulting
best potential spots for new
chargers
Based on average daily
traffic counts captured at
specific traffic monitoring
points, we can apply
spatial algorithms for
optimal placement of new
chargers
Finding Under-Served Traffic Hot Spots: Automatic Reoptimization
Increasing the
minimum traffic
volume threshold …
… automatically triggers
recalculation of the universe
of potential EV chargers based
on that new minimum
Plans for Future Development
Build ML model handling cost factors for different charger
types (L2 vs. L3) for optimal locations near traffic hotspots
Expand optimal charger placement model to include
support for long-haul EV trucking
Build funding models to account for USA Build Back Better
(BBB) Justice40 initiatives for equitable placement of EV
charging infrastructure
Public Data Sources and Additional Reference Material
As Biden plans EV charger rollout, location questions take the fore:
https://www.smartcitiesdive.com/news/as-biden-plans-ev-charger-rollout-location-questions-take-the-fore/619466/
National Electric Vehicle Infrastructure (NEVI) Formula Program:
https://www.transportation.gov/briefing-room/president-biden-usdot-and-usdoe-announce-5-billion-over-five-years-national-ev
State of Wisconsin County Mapping Resources:
https://data-wi-dnr.opendata.arcgis.com/
USA Tax Information by State:
https://www.irs.gov/statistics/soi-tax-stats-individual-income-tax-statistics-2019-zip-code-data-soi
Ford may have just changed our electric-vehicle future:
https://www.washingtonpost.com/opinions/2022/05/17/ford-f150-electric-pickup-transforms-american-car-culture/
PJM releases road map for creating ‘grid of the future’ to handle coming renewables, storage wave:
https://www.utilitydive.com/news/pjm-grid-future-report-energy-transition/623630/
Useful Resources and Documentation
APEX 21.1 Native Map Regions:
https://docs.oracle.com/en/database/oracle/application-express/21.1/htmdb/creating-maps.html
Carsten Czarski Article on APEX Native Map Region:
http://www.oraworld.org/fileadmin/documents/26-ORAWORLD.pdf
Oracle Spatial Analysis and Mining Concepts:
https://docs.oracle.com/en/database/oracle/oracle-database/19/spatl/spatial-analysis-mining.html

More Related Content

Similar to Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge Points

Better Mapping II - Sourcing good data
Better Mapping II - Sourcing good dataBetter Mapping II - Sourcing good data
Better Mapping II - Sourcing good dataSteve Chilton
 
Analyzing NYC Transit Data
Analyzing NYC Transit DataAnalyzing NYC Transit Data
Analyzing NYC Transit DataWork-Bench
 
Xxx treme aggregation
Xxx treme aggregationXxx treme aggregation
Xxx treme aggregationBill Slacum
 
BEV Semantic Segmentation
BEV Semantic SegmentationBEV Semantic Segmentation
BEV Semantic SegmentationYu Huang
 
Exercise advanced gis_and_hydrology
Exercise advanced gis_and_hydrologyExercise advanced gis_and_hydrology
Exercise advanced gis_and_hydrologyBUGINGO Annanie
 
Brochure_ESurveyCADD_2021-22.pdf
Brochure_ESurveyCADD_2021-22.pdfBrochure_ESurveyCADD_2021-22.pdf
Brochure_ESurveyCADD_2021-22.pdfMangeshKale47
 
Midterm Progress Report (Dynamic Sparse A-Star)
Midterm Progress Report (Dynamic Sparse A-Star)Midterm Progress Report (Dynamic Sparse A-Star)
Midterm Progress Report (Dynamic Sparse A-Star)s3cur3
 
Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...
Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...
Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...ivaderivader
 
Making sense of the Graph Revolution
Making sense of the Graph RevolutionMaking sense of the Graph Revolution
Making sense of the Graph RevolutionInfiniteGraph
 
Spark Summit EU talk by Javier Aguedes
Spark Summit EU talk by Javier AguedesSpark Summit EU talk by Javier Aguedes
Spark Summit EU talk by Javier AguedesSpark Summit
 
Optimizing GIS based Systems
Optimizing GIS based SystemsOptimizing GIS based Systems
Optimizing GIS based SystemsAjinkya Deshpande
 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesMicrosoft Tech Community
 
Stefan Michalak - Portfolio - January 2016
Stefan Michalak - Portfolio - January 2016Stefan Michalak - Portfolio - January 2016
Stefan Michalak - Portfolio - January 2016stefan michalak
 
IEEE Camad20 presentation - Isam Al Jawarneh
IEEE Camad20 presentation - Isam Al JawarnehIEEE Camad20 presentation - Isam Al Jawarneh
IEEE Camad20 presentation - Isam Al JawarnehIsam Al Jawarneh, PhD
 

Similar to Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge Points (20)

Better Mapping II - Sourcing good data
Better Mapping II - Sourcing good dataBetter Mapping II - Sourcing good data
Better Mapping II - Sourcing good data
 
Analyzing NYC Transit Data
Analyzing NYC Transit DataAnalyzing NYC Transit Data
Analyzing NYC Transit Data
 
Xxx treme aggregation
Xxx treme aggregationXxx treme aggregation
Xxx treme aggregation
 
Iris
IrisIris
Iris
 
BEV Semantic Segmentation
BEV Semantic SegmentationBEV Semantic Segmentation
BEV Semantic Segmentation
 
Exercise advanced gis_and_hydrology
Exercise advanced gis_and_hydrologyExercise advanced gis_and_hydrology
Exercise advanced gis_and_hydrology
 
Brochure_ESurveyCADD_2021-22.pdf
Brochure_ESurveyCADD_2021-22.pdfBrochure_ESurveyCADD_2021-22.pdf
Brochure_ESurveyCADD_2021-22.pdf
 
GRASSy GIS
GRASSy GISGRASSy GIS
GRASSy GIS
 
Midterm Progress Report (Dynamic Sparse A-Star)
Midterm Progress Report (Dynamic Sparse A-Star)Midterm Progress Report (Dynamic Sparse A-Star)
Midterm Progress Report (Dynamic Sparse A-Star)
 
Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...
Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...
Reinforcement Learning-based Placement of Charging Stations in Urban Road Net...
 
Making sense of the Graph Revolution
Making sense of the Graph RevolutionMaking sense of the Graph Revolution
Making sense of the Graph Revolution
 
Spark Summit EU talk by Javier Aguedes
Spark Summit EU talk by Javier AguedesSpark Summit EU talk by Javier Aguedes
Spark Summit EU talk by Javier Aguedes
 
Horizons doc
Horizons docHorizons doc
Horizons doc
 
Spark - Citi Bike NYC
Spark - Citi Bike NYCSpark - Citi Bike NYC
Spark - Citi Bike NYC
 
Optimizing GIS based Systems
Optimizing GIS based SystemsOptimizing GIS based Systems
Optimizing GIS based Systems
 
HERE Maps for the Nokia X platform
HERE Maps for the Nokia X platformHERE Maps for the Nokia X platform
HERE Maps for the Nokia X platform
 
Presentation
PresentationPresentation
Presentation
 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilities
 
Stefan Michalak - Portfolio - January 2016
Stefan Michalak - Portfolio - January 2016Stefan Michalak - Portfolio - January 2016
Stefan Michalak - Portfolio - January 2016
 
IEEE Camad20 presentation - Isam Al Jawarneh
IEEE Camad20 presentation - Isam Al JawarnehIEEE Camad20 presentation - Isam Al Jawarneh
IEEE Camad20 presentation - Isam Al Jawarneh
 

More from Jim Czuprynski

From DBA to DE: Becoming a Data Engineer
From DBA to DE:  Becoming a Data Engineer From DBA to DE:  Becoming a Data Engineer
From DBA to DE: Becoming a Data Engineer Jim Czuprynski
 
Going Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21cGoing Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21cJim Czuprynski
 
Access Denied: Real-World Use Cases for APEX and Real Application Security
Access Denied: Real-World Use Cases for APEX and Real Application SecurityAccess Denied: Real-World Use Cases for APEX and Real Application Security
Access Denied: Real-World Use Cases for APEX and Real Application SecurityJim Czuprynski
 
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle Graph
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle GraphGraphing Grifters: Identify & Display Patterns of Corruption With Oracle Graph
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle GraphJim Czuprynski
 
So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...
So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...
So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...Jim Czuprynski
 
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?Jim Czuprynski
 
Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...
Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...
Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...Jim Czuprynski
 
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...Jim Czuprynski
 
What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.
What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.
What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.Jim Czuprynski
 
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAsAn Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAsJim Czuprynski
 
Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...
Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...
Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...Jim Czuprynski
 
One Less Thing For DBAs to Worry About: Automatic Indexing
One Less Thing For DBAs to Worry About: Automatic IndexingOne Less Thing For DBAs to Worry About: Automatic Indexing
One Less Thing For DBAs to Worry About: Automatic IndexingJim Czuprynski
 
Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...
Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...
Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...Jim Czuprynski
 
Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...
Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...
Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...Jim Czuprynski
 
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...Jim Czuprynski
 
Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...
Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...
Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...Jim Czuprynski
 

More from Jim Czuprynski (16)

From DBA to DE: Becoming a Data Engineer
From DBA to DE:  Becoming a Data Engineer From DBA to DE:  Becoming a Data Engineer
From DBA to DE: Becoming a Data Engineer
 
Going Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21cGoing Native: Leveraging the New JSON Native Datatype in Oracle 21c
Going Native: Leveraging the New JSON Native Datatype in Oracle 21c
 
Access Denied: Real-World Use Cases for APEX and Real Application Security
Access Denied: Real-World Use Cases for APEX and Real Application SecurityAccess Denied: Real-World Use Cases for APEX and Real Application Security
Access Denied: Real-World Use Cases for APEX and Real Application Security
 
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle Graph
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle GraphGraphing Grifters: Identify & Display Patterns of Corruption With Oracle Graph
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle Graph
 
So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...
So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...
So an Airline Pilot, a Urologist, and an IT Technologist Walk Into a Bar: Thi...
 
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
 
Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...
Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...
Conquer Big Data with Oracle 18c, In-Memory External Tables and Analytic Func...
 
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
Vote Early, Vote Often: From Napkin to Canvassing Application in a Single Wee...
 
What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.
What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.
What's Your Super-Power? Mine is Machine Learning with Oracle Autonomous DB.
 
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAsAn Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
An Autonomous Singularity Approaches: Force Multipliers For Overwhelmed DBAs
 
Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...
Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...
Politics Ain’t Beanbag: Using APEX, ML, and GeoCoding In a Modern Election Ca...
 
One Less Thing For DBAs to Worry About: Automatic Indexing
One Less Thing For DBAs to Worry About: Automatic IndexingOne Less Thing For DBAs to Worry About: Automatic Indexing
One Less Thing For DBAs to Worry About: Automatic Indexing
 
Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...
Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...
Keep Your Code Low, Low, Low, Low, Low: Getting to Digitally Driven With Orac...
 
Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...
Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...
Cluster, Classify, Associate, Regress: Satisfy Your Inner Data Scientist with...
 
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
 
Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...
Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...
Fast and Furious: Handling Edge Computing Data With Oracle 19c Fast Ingest an...
 

Recently uploaded

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 

Recently uploaded (20)

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 

Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge Points

  • 1. Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge Points Jim Czuprynski @JimTheWhyGuy Zero Defect Computing, Inc.
  • 2. Who Am I, and What Am I Doing Here? ➢E-mail me at jim@jimthewhyguy.com ➢Follow me on Twitter (@JimTheWhyGuy) ➢Connect with me on LinkedIn (Jim Czuprynski) Traveler & public speaker Summers: Wisconsin Winters: Illinois Cyclist XC skier Avid amateur bird watcher Oldest dude in martial arts class
  • 3. Jim Czuprynski Liron Amitzi https://www.beyondtechskills.com The podcast that talks about everything tech – except tech.TM
  • 4. EVs: Coming to a Garage Near You Soon Ford F-150 Lightning has received over 200,000 orders so far GM and Honda are aggressively expanding into EV market New solid-state battery technology coming shortly Electricity demand will likely at least double as EVs are adopted What will happen to gas stations? How will governments fund road upkeep without revenue from gas taxes?
  • 5. EV Chargers: Terminology and Capacity Term / Acronym Charging Voltage Description Level 1 Charger 120V Delivers slow “trickle” charge (3–5 miles of range per hour); OK for most PHEVs, but not BEVs Level 2 Charger 208V – 240V Delivers moderate charging (12–80 miles of range per hour); preferred by most BEV owners for overnight home charging Level 3 Charger 400V – 900V Delivers extremely fast charging (3 – 20 miles of range per minute); also known as DC Fast Chargers (DCFCs) or SuperChargers Source: https://www.forbes.com/wheels/advice/ev-charging-levels/
  • 6. The Conundrum of Electric Vehicle (EV) Adoption Even in 2022, several larger towns already have rapid charging stations in case my EV’s battery is running low A normal drive to our Wisconsin cabin is leisurely & passes through larger towns and smaller villages …
  • 7. The Conundrum of Electric Vehicle (EV) Adoption Even in 2022, several larger towns already have rapid charging stations in case my EV’s battery is running low A normal drive to our Wisconsin cabin is leisurely & passes through larger towns and smaller villages … … but what happens if I suddenly need to drive to my older sister’s home in Chetek, WI in an emergency? I might be forced to re-route significantly just to have an option in case I didn’t have time to charge my EV’s battery Rural areas of northern and western Wisconsin currently offer very few EV charging options
  • 8. You Start Coding. Meanwhile, I’ll Go Ask Our Users For Requirements Identify where charging stations are already located in Wisconsin, including public vs. private access Create a simple-to-use mobile-capable app that lets EV drivers quickly find the nearest charging station to their current or target location Figure out which potential locations for new charging stations should be placed along key travel routes, as well as within metropolitan & rural areas
  • 9. Native Map Regions: New In APEX 21.1 APEX 21.1 offers a new Native Map region that lets you build maps to visualize location data on a map, without any plug-in required! • Five different layer types: Point, Line, Polygon, Heat Map, and Extruded (3D) Polygon • All background maps are sourced directly from the Oracle Maps Cloud • Fully interactive map features, including Drag, Zoom, and ToolTips • Plot map features from: • Simple numeric columns (Longitude and Latitude) • SDO_GEOMETRY datatype • GeoJSON objects • Leverages Oracle Spatial features, including Spatial Indexes and Coordinate Transformations (if they are available in your data model) • Visualize data from SQL queries against local database, REST-Enabled SQL, or from REST Data Sources • No API Key required!
  • 10. Using Native Map Regions (1) Select the new Map Region …
  • 11. Using Native Map Regions (1) Select the new Map Region … … name the new Page …
  • 12. Using Native Map Regions (1) Select the new Map Region … … name the new Page … … and set up the new page’s Navigation entry
  • 13. Using Native Map Regions (3) Choose a target table …
  • 14. Using Native Map Regions (3) Choose a target table … … pick either a column with an SDO_GEOMETRY datatype, or select a pair of Longitude / Latitude columns for map positioning Note the option to add a Faceted Search region for the new page
  • 15. Using Native Map Regions (3) Just about any SQL query can be the basis of a Map Region Note we can overlay multiple layers for the same Map Region
  • 16. Using Native Map Regions (3) Just about any SQL query can be the basis of a Map Region Note we can overlay multiple layers for the same Map Region The Native Map region offers excellent control over the appearance, navigation, and initial focus of the map that’s displayed
  • 17. Results: A (Not-So-) Simple Map We can also see details about each point’s location … … and use these mapping tools to drill down further into the map, reposition its center, and even measure distances between points
  • 18. Using Heat Maps to Display Traffic Intensity (1) Create a new page for Traffic Heat Mapping
  • 19. Using Heat Maps to Display Traffic Intensity (1) Create a new page for Traffic Heat Mapping Supply a query with appropriate columns and GIS features
  • 20. Using Heat Maps to Display Traffic Intensity (1) Create a new page for Traffic Heat Mapping Supply a query with appropriate columns and GIS features Specify where the traffic hot spots are located, as well as their intensity
  • 21. Using Heat Maps to Display Traffic Intensity (2) Here’s the results: A map of typical weekend traffic during a Wisconsin summer … … or, as dey say in Cheeseland: Oh, ya, hey – it’s all dem FIBs comin’ up from Illinois that’s causin’ all deese traffic jams!
  • 22. Using Heat Maps to Display Traffic Intensity (3) Drilling into the heat map shows greater levels of detail, including the “hottest” hot spots based on specific traffic monitoring points
  • 23. Using Heat Maps to Display Traffic Intensity (3) Drilling into the heat map shows greater levels of detail, including the “hottest” hot spots based on specific traffic monitoring points We can choose from myriad arrays of color schemes to highlight “heat” as desired
  • 24. Which Potential Charging Stations Satisfy Underserved Locations? For each location that’s part of a selected subset of key traffic hotspots: Locate all potential charging locations … … that are within a specified distance (1 KM) … … but that currently have no charging station within 1 KM
  • 25. Leveraging Spatial ML & Analytics To Resolve Duplicate GeoPoints (1) CREATE TABLE wtfc.deduplicated_locations ( tid NUMBER ,rid1 VARCHAR2(24) ,rid2 VARCHAR2(24) ) TABLESPACE data; A table with these mandatory columns … BEGIN SDO_SAM.COLOCATED_REFERENCE_FEATURES( theme_tablename => 'CHARGER_STATIONS' ,theme_colname => 'CS_GEOLOCATION' ,theme_predicate => NULL ,tablename => 'POTENTIAL_LOCATIONS' ,colname => 'PL_GEOLOCATION' ,ref_predicate => NULL ,dst_spec => 'distance=100 unit=M' ,result_tablename => 'DEDUPLICATED_LOCATIONS' ,commit_interval => 100 ); END; / … will capture any potentially duplicate locations within a 100- meter threshold of each other via this bit of Spatial ML magic
  • 26. Leveraging Spatial ML & Analytics To Resolve Duplicate GeoPoints (2) SELECT cs_name || ': ' || cs_address || ', ' || cs_city || ', ‘ || cs_state_abbr || ' ' || cs_zip_code AS actual_location ,pl_name || ': ' || pl_address || ', ' || pl_city || ', ‘ || pl_state_abbr || ' ' || pl_zip_code AS potential_location FROM wtfc.deduplicated_locations XR ,wtfc.charger_stations CS ,wtfc.potential_locations PL WHERE CS.rowid = XR.RID2 AND PL.rowid = XR.RID1; This query lets us evaluate the resulting geographic deduplication
  • 27. Leveraging Spatial ML & Analytics To Resolve Duplicate GeoPoints (2) SELECT cs_name || ': ' || cs_address || ', ' || cs_city || ', ‘ || cs_state_abbr || ' ' || cs_zip_code AS actual_location ,pl_name || ': ' || pl_address || ', ' || pl_city || ', ‘ || pl_state_abbr || ' ' || pl_zip_code AS potential_location FROM wtfc.deduplicated_locations XR ,wtfc.charger_stations CS ,wtfc.potential_locations PL WHERE CS.rowid = XR.RID2 AND PL.rowid = XR.RID1; This query lets us evaluate the resulting geographic deduplication Note that deduplication happens based on the locations’ geometry, not their reported addresses
  • 28. Finding Under-Served Traffic Hot Spots: Infrastructure CREATE TABLE wtfc.charger_location_scoring ( tid NUMBER ,rid1 VARCHAR2(24) ,rid2 VARCHAR2(24) ) TABLESPACE data; CREATE TABLE wtfc.charger_universe ( id NUMBER(6,0) NOT NULL ,type VARCHAR2(15) NOT NULL ,geolocation SDO_GEOMETRY ) TABLESPACE data; Create two tables: One to store nearby location attribute ROWIDs, and one to hold the universe of existing and potential charger sites
  • 29. Finding Under-Served Traffic Hot Spots: Infrastructure CREATE TABLE wtfc.charger_location_scoring ( tid NUMBER ,rid1 VARCHAR2(24) ,rid2 VARCHAR2(24) ) TABLESPACE data; CREATE TABLE wtfc.charger_universe ( id NUMBER(6,0) NOT NULL ,type VARCHAR2(15) NOT NULL ,geolocation SDO_GEOMETRY ) TABLESPACE data; Create two tables: One to store nearby location attribute ROWIDs, and one to hold the universe of existing and potential charger sites INSERT INTO user_sdo_geom_metadata VALUES ( 'CHARGER_UNIVERSE' ,'GEOLOCATION' ,SDO_DIM_ARRAY( SDO_DIM_ELEMENT('Longitude', -180, 180, 0.5) ,SDO_DIM_ELEMENT('Latitude', -90, 90, 0.5) ) ,8307); COMMIT; CREATE INDEX wtfc.charger_universe_spidx ON wtfc.charger_universe(geolocation) INDEXTYPE IS MDSYS.SPATIAL_INDEX_V2; Set up spatial index for all entries in the CHARGER_UNIVERSE table INSERT INTO wtfc.charger_universe SELECT cs_id, 'A' as cs_geolocation FROM wtfc.charger_stations; INSERT INTO wtfc.charger_universe SELECT pl_id, 'P', pl_geolocation FROM wtfc.potential_locations WHERE pl_type <> 'D'; COMMIT; Finally, add all existing chargers and all non- duplicate candidate locations into CHARGER_UNIVERSE
  • 30. Finding Under-Served Traffic Hot Spots: Using Map Layers Each map layer contains a different piece of the puzzle: existing chargers, high-volume traffic spots, and the resulting best potential spots for new chargers Based on average daily traffic counts captured at specific traffic monitoring points, we can apply spatial algorithms for optimal placement of new chargers
  • 31. Finding Under-Served Traffic Hot Spots: Automatic Reoptimization Increasing the minimum traffic volume threshold … … automatically triggers recalculation of the universe of potential EV chargers based on that new minimum
  • 32. Plans for Future Development Build ML model handling cost factors for different charger types (L2 vs. L3) for optimal locations near traffic hotspots Expand optimal charger placement model to include support for long-haul EV trucking Build funding models to account for USA Build Back Better (BBB) Justice40 initiatives for equitable placement of EV charging infrastructure
  • 33. Public Data Sources and Additional Reference Material As Biden plans EV charger rollout, location questions take the fore: https://www.smartcitiesdive.com/news/as-biden-plans-ev-charger-rollout-location-questions-take-the-fore/619466/ National Electric Vehicle Infrastructure (NEVI) Formula Program: https://www.transportation.gov/briefing-room/president-biden-usdot-and-usdoe-announce-5-billion-over-five-years-national-ev State of Wisconsin County Mapping Resources: https://data-wi-dnr.opendata.arcgis.com/ USA Tax Information by State: https://www.irs.gov/statistics/soi-tax-stats-individual-income-tax-statistics-2019-zip-code-data-soi Ford may have just changed our electric-vehicle future: https://www.washingtonpost.com/opinions/2022/05/17/ford-f150-electric-pickup-transforms-american-car-culture/ PJM releases road map for creating ‘grid of the future’ to handle coming renewables, storage wave: https://www.utilitydive.com/news/pjm-grid-future-report-energy-transition/623630/
  • 34. Useful Resources and Documentation APEX 21.1 Native Map Regions: https://docs.oracle.com/en/database/oracle/application-express/21.1/htmdb/creating-maps.html Carsten Czarski Article on APEX Native Map Region: http://www.oraworld.org/fileadmin/documents/26-ORAWORLD.pdf Oracle Spatial Analysis and Mining Concepts: https://docs.oracle.com/en/database/oracle/oracle-database/19/spatl/spatial-analysis-mining.html