Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Geospatial Indexing with MongoDB
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
20spokes
January 22, 2012
Programming
110
3
Share
Geospatial Indexing with MongoDB
20spokes
January 22, 2012
More Decks by 20spokes
See All by 20spokes
Start Your Startup: The Essential Steps to Launch Your Idea
ryan_fischer
1
90
Intro to MongoDB (Updated)
ryan_fischer
2
94
Intro to MongoDB
ryan_fischer
2
260
MongoDB and Ruby on Rails
ryan_fischer
2
190
Other Decks in Programming
See All in Programming
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
1
200
Are We Really Coding 10× Faster with AI?
kohzas
0
190
空間オーディオの活用
objectiveaudio
0
160
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
1
200
GoogleCloudとterraform完全に理解した
terisuke
1
200
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
2
180
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
370
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
1
210
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
0
320
Agentic Elixir
whatyouhide
0
450
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
220
AI Agent と正しく分析するための環境作り
yoshyum
2
540
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Building Applications with DynamoDB
mza
96
7k
The Curse of the Amulet
leimatthew05
1
12k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
350
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
30 Presentation Tips
portentint
PRO
1
290
The World Runs on Bad Software
bkeepers
PRO
72
12k
Speed Design
sergeychernyshev
33
1.7k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
230
Joys of Absence: A Defence of Solitary Play
codingconduct
1
360
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Transcript
Geospatial Indexing Ryan Fischer @ryanfischer20 Tuesday, November 15, 11
What is covered The most amazing slides ever to be
displayed Getting Started with Geospatial Indexing A real live working session of the most amazing code How many times I say ‘um’ Tuesday, November 15, 11
geospatial Tuesday, November 15, 11
simple Tuesday, November 15, 11
SQL SELECT * FROM Places WHERE acos(sin(1.3963) * sin(Lat) +
cos(1.3963) * cos(Lat) * cos(Lon - (-0.6981))) * 6371 <= 1000; Tuesday, November 15, 11
MongoDB db.places.find({loc : { $near:[50,50] } } ) Tuesday, November
15, 11
how do you want to search? Tuesday, November 15, 11
Exact Queries Search by closest points Tuesday, November 15, 11
Query within a rectangle Circle with a center point and
radius Search within a polygon ( >= 1.9 ) Bound Queries Tuesday, November 15, 11
The earth is round (seriously) Tuesday, November 15, 11
Tuesday, November 15, 11
Tuesday, November 15, 11
Spherical Model Use decimal degrees - 42.53 Use [longitude, latitude]
as ordering Use radians for distance $nearSphere and $centerSphere Tuesday, November 15, 11
geoNear returns distance for object db.runCommand({ geoNear: "persons", near: [50,50]
}) Tuesday, November 15, 11
Multi-location Documents objects can contain sub-objects for multiple locations can
show up more than once in location queries Tuesday, November 15, 11
Sharding Now supported Can only use geoNear command MongoDB is
still young Tuesday, November 15, 11
MongoDB meets Ruby Tuesday, November 15, 11
The End Follow me - @ryanfischer20 Tuesday, November 15, 11
Tuesday, November 15, 11