SlideShare a Scribd company logo
1 of 16
H3: Uber’s Hexagonal Hierarchical Spatial Index
● Uber has open sourced a global indexing system called H3
You can find it here https://github.com/uber/h3, Can be used with bindings in
python, js, java, go
● You can go here https://eng.uber.com/h3/ for details on why they decided on hexagons
Why is this Grid System nice in my Opinion?
Some Topology: Cell Complexes
OK, so this may look scary, but all it’s saying is, start with a
collection of points, then build a collection of lines by joining points,
Then build a collection of faces by joining lines and so on, we are
only concerned with 2 cell complexes, so we can stop at faces
These are cell complexes
Euler Characteristic
Some Quick Differential Geometry
(Gauss-Bonnet Theorem)
Back to Cell Complexes
More definitions…..sorry
Look Mom no calculus
This was proved in 1994
Curvature of the polygons
Let’s say all angles should be 2 * PI / 3 = 60 degrees
And at every point three polygons meet, then
k(pentagon) = 5 * 2 * PI / 3 - (5 - 2) * PI = PI / 3
k(hexagon) = 6 * 2 * PI / 3 - (6 - 2) * PI = 0 (COOL!)
Curvature of links
2 * PI - PI * (3 edges - 3 vertices) - 3 * 2 * PI / 3 = 0 (also cool)
Gauss Bonnet
Sum k(pentagon) + sum k(hexagon) + sum links = 2 PI * Euler
Euler of a sphere is 2 so , since sum k(hexagon) = sum links = 0
We get
Sum k(pentagon) = 4 * PI = number of Pentagons * PI / 3
Number of pentagons = 12
And number of hexagons = however many we want (Super cool)
Fun Facts (YAY)
SOOOO,
The dual graph to our cool hexagon tiling of the sphere is almost a perfect
Triangulation.
What’s perfect? Well equilateral triangles are kind of perfect no?
And the ones that arent (12 * 5 = 60) are isoceles whoses odd angle out
Have angles 2 * PI / 5 which is almost 60 degrees anyway
But Wait don’t triangles suck?
Not when we want to interpolate, that’s where they shine, and which ones shine
the brightest?

More Related Content

Similar to Uber’s Hexagonal Hierarchical Spatial Index Explained

1. Assume that an algorithm to solve a problem takes f(n) microse.docx
1.  Assume that an algorithm to solve a problem takes f(n) microse.docx1.  Assume that an algorithm to solve a problem takes f(n) microse.docx
1. Assume that an algorithm to solve a problem takes f(n) microse.docxSONU61709
 
Untitled 1
Untitled 1Untitled 1
Untitled 141639342
 
Geometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions Manual
Geometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions ManualGeometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions Manual
Geometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions Manualrohalcabaye
 
Conic Section: Circles (Pre-Calculus).pdf
Conic Section: Circles (Pre-Calculus).pdfConic Section: Circles (Pre-Calculus).pdf
Conic Section: Circles (Pre-Calculus).pdfLyndrianShalomBaclay
 
AIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptx
AIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptxAIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptx
AIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptxZawarali786
 
Trigonometry for class xi
Trigonometry for class xiTrigonometry for class xi
Trigonometry for class xiindu psthakur
 
Distance between two points
Distance between two pointsDistance between two points
Distance between two pointslothomas
 
Alejandro González Transformación de coordenadas
Alejandro González  Transformación de coordenadasAlejandro González  Transformación de coordenadas
Alejandro González Transformación de coordenadasAlejandro Gonzalez
 
Nimmy digital text book
Nimmy digital text bookNimmy digital text book
Nimmy digital text booknimmysajikumar
 
Solving Problems Involving Radicals
Solving Problems Involving RadicalsSolving Problems Involving Radicals
Solving Problems Involving RadicalsCipriano De Leon
 
Geometry Section 1-2
Geometry Section 1-2Geometry Section 1-2
Geometry Section 1-2Jimbo Lamb
 

Similar to Uber’s Hexagonal Hierarchical Spatial Index Explained (15)

1. Assume that an algorithm to solve a problem takes f(n) microse.docx
1.  Assume that an algorithm to solve a problem takes f(n) microse.docx1.  Assume that an algorithm to solve a problem takes f(n) microse.docx
1. Assume that an algorithm to solve a problem takes f(n) microse.docx
 
An introduction to probability theory geiss
An introduction to probability theory   geissAn introduction to probability theory   geiss
An introduction to probability theory geiss
 
Untitled 1
Untitled 1Untitled 1
Untitled 1
 
Geometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions Manual
Geometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions ManualGeometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions Manual
Geometry 1st Edition Kindle Edition by Elayn Martin Gay Solutions Manual
 
Conic Section: Circles (Pre-Calculus).pdf
Conic Section: Circles (Pre-Calculus).pdfConic Section: Circles (Pre-Calculus).pdf
Conic Section: Circles (Pre-Calculus).pdf
 
AIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptx
AIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptxAIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptx
AIOU Solved Assignment Code 1309 Mathematics III 2023 Assignment 2.pptx
 
Trigonometry for class xi
Trigonometry for class xiTrigonometry for class xi
Trigonometry for class xi
 
Distance between two points
Distance between two pointsDistance between two points
Distance between two points
 
Alejandro González Transformación de coordenadas
Alejandro González  Transformación de coordenadasAlejandro González  Transformación de coordenadas
Alejandro González Transformación de coordenadas
 
Leraning packet
Leraning packetLeraning packet
Leraning packet
 
Nimmy digital text book
Nimmy digital text bookNimmy digital text book
Nimmy digital text book
 
Solving Problems Involving Radicals
Solving Problems Involving RadicalsSolving Problems Involving Radicals
Solving Problems Involving Radicals
 
Ijetr011921
Ijetr011921Ijetr011921
Ijetr011921
 
Logo paper
Logo paperLogo paper
Logo paper
 
Geometry Section 1-2
Geometry Section 1-2Geometry Section 1-2
Geometry Section 1-2
 

More from NeeleEilers

To infinity,...... and beyond
To infinity,...... and beyond To infinity,...... and beyond
To infinity,...... and beyond NeeleEilers
 
Satellites for Dummies
Satellites for DummiesSatellites for Dummies
Satellites for DummiesNeeleEilers
 
Machine Learning basics
Machine Learning basicsMachine Learning basics
Machine Learning basicsNeeleEilers
 
History of Remote Sensing
History of Remote SensingHistory of Remote Sensing
History of Remote SensingNeeleEilers
 

More from NeeleEilers (6)

AWS KSS
AWS  KSSAWS  KSS
AWS KSS
 
To infinity,...... and beyond
To infinity,...... and beyond To infinity,...... and beyond
To infinity,...... and beyond
 
Clean Code
Clean CodeClean Code
Clean Code
 
Satellites for Dummies
Satellites for DummiesSatellites for Dummies
Satellites for Dummies
 
Machine Learning basics
Machine Learning basicsMachine Learning basics
Machine Learning basics
 
History of Remote Sensing
History of Remote SensingHistory of Remote Sensing
History of Remote Sensing
 

Recently uploaded

Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxpriyankatabhane
 
User Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationUser Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationColumbia Weather Systems
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)itwameryclare
 
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)Columbia Weather Systems
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPirithiRaju
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxpriyankatabhane
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubaikojalkojal131
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...lizamodels9
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...D. B. S. College Kanpur
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptJoemSTuliba
 
Bioteknologi kelas 10 kumer smapsa .pptx
Bioteknologi kelas 10 kumer smapsa .pptxBioteknologi kelas 10 kumer smapsa .pptx
Bioteknologi kelas 10 kumer smapsa .pptx023NiWayanAnggiSriWa
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptArshadWarsi13
 
FREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by naFREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by naJASISJULIANOELYNV
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...Universidade Federal de Sergipe - UFS
 

Recently uploaded (20)

Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
 
User Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationUser Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather Station
 
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort ServiceHot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)
 
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
 
Volatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -IVolatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -I
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.ppt
 
Bioteknologi kelas 10 kumer smapsa .pptx
Bioteknologi kelas 10 kumer smapsa .pptxBioteknologi kelas 10 kumer smapsa .pptx
Bioteknologi kelas 10 kumer smapsa .pptx
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.ppt
 
FREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by naFREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by na
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
 

Uber’s Hexagonal Hierarchical Spatial Index Explained

  • 1.
  • 2. H3: Uber’s Hexagonal Hierarchical Spatial Index ● Uber has open sourced a global indexing system called H3 You can find it here https://github.com/uber/h3, Can be used with bindings in python, js, java, go ● You can go here https://eng.uber.com/h3/ for details on why they decided on hexagons
  • 3. Why is this Grid System nice in my Opinion?
  • 4. Some Topology: Cell Complexes OK, so this may look scary, but all it’s saying is, start with a collection of points, then build a collection of lines by joining points, Then build a collection of faces by joining lines and so on, we are only concerned with 2 cell complexes, so we can stop at faces
  • 5. These are cell complexes
  • 7. Some Quick Differential Geometry (Gauss-Bonnet Theorem)
  • 8. Back to Cell Complexes
  • 10. Look Mom no calculus This was proved in 1994
  • 11. Curvature of the polygons Let’s say all angles should be 2 * PI / 3 = 60 degrees And at every point three polygons meet, then k(pentagon) = 5 * 2 * PI / 3 - (5 - 2) * PI = PI / 3 k(hexagon) = 6 * 2 * PI / 3 - (6 - 2) * PI = 0 (COOL!)
  • 12. Curvature of links 2 * PI - PI * (3 edges - 3 vertices) - 3 * 2 * PI / 3 = 0 (also cool)
  • 13. Gauss Bonnet Sum k(pentagon) + sum k(hexagon) + sum links = 2 PI * Euler Euler of a sphere is 2 so , since sum k(hexagon) = sum links = 0 We get Sum k(pentagon) = 4 * PI = number of Pentagons * PI / 3 Number of pentagons = 12 And number of hexagons = however many we want (Super cool)
  • 15. SOOOO, The dual graph to our cool hexagon tiling of the sphere is almost a perfect Triangulation. What’s perfect? Well equilateral triangles are kind of perfect no? And the ones that arent (12 * 5 = 60) are isoceles whoses odd angle out Have angles 2 * PI / 5 which is almost 60 degrees anyway
  • 16. But Wait don’t triangles suck? Not when we want to interpolate, that’s where they shine, and which ones shine the brightest?