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
20spokes
January 22, 2012
Programming
3
110
Geospatial Indexing with MongoDB
20spokes
January 22, 2012
Tweet
Share
More Decks by 20spokes
See All by 20spokes
Start Your Startup: The Essential Steps to Launch Your Idea
ryan_fischer
1
86
Intro to MongoDB (Updated)
ryan_fischer
2
89
Intro to MongoDB
ryan_fischer
2
260
MongoDB and Ruby on Rails
ryan_fischer
2
180
Other Decks in Programming
See All in Programming
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
370
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
170
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
360
Swift ConcurrencyでよりSwiftyに
yuukiw00w
0
250
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
490
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
320
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
1.9k
ご飯食べながらエージェントが開発できる。そう、Agentic Engineeringならね。
yokomachi
1
290
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
210
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
120
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
280
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
160
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
1.9k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
330
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
67
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.8k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
280
The World Runs on Bad Software
bkeepers
PRO
72
12k
HDC tutorial
michielstock
1
510
Deep Space Network (abreviated)
tonyrice
0
86
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
180
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
370
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