Suche senden
Hochladen
MongoDBと位置情報 ~地理空間インデックスの紹介
•
20 gefällt mir
•
4,944 views
K
Koji Iwazaki
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 30
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
Takahiro Inoue
MongoDB全機能解説2
MongoDB全機能解説2
Takahiro Inoue
MongoDB Oplog入門
MongoDB Oplog入門
Takahiro Inoue
MongoDB: Replication,Sharding,MapReduce
MongoDB: Replication,Sharding,MapReduce
Takahiro Inoue
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Jitendra Kumar Gupta
Native json in the Cache' ObjectScript 2016.*
Native json in the Cache' ObjectScript 2016.*
Timur Safin
First app online conf
First app online conf
MongoDB
Fcontratos
Fcontratos
karlloss
Empfohlen
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
Takahiro Inoue
MongoDB全機能解説2
MongoDB全機能解説2
Takahiro Inoue
MongoDB Oplog入門
MongoDB Oplog入門
Takahiro Inoue
MongoDB: Replication,Sharding,MapReduce
MongoDB: Replication,Sharding,MapReduce
Takahiro Inoue
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Jitendra Kumar Gupta
Native json in the Cache' ObjectScript 2016.*
Native json in the Cache' ObjectScript 2016.*
Timur Safin
First app online conf
First app online conf
MongoDB
Fcontratos
Fcontratos
karlloss
NoSQL を Ruby で実践するための n 個の方法
NoSQL を Ruby で実践するための n 個の方法
Tomohiro Nishimura
Mongo db presentation
Mongo db presentation
Julie Sommerville
Cracking for the Blue Team
Cracking for the Blue Team
James '-- Mckinlay
Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Internationalizing CakePHP Applications
Internationalizing CakePHP Applications
Pierre MARTIN
جلسه سوم پایتون برای هکر های قانونی دوره مقدماتی پاییز ۹۲
جلسه سوم پایتون برای هکر های قانونی دوره مقدماتی پاییز ۹۲
Mohammad Reza Kamalifard
San Francisco Java User Group
San Francisco Java User Group
kchodorow
PromptWorks Talk Tuesdays: Ray Zane 1/17/17 "Elixir Is Cool"
PromptWorks Talk Tuesdays: Ray Zane 1/17/17 "Elixir Is Cool"
PromptWorks
Automatically Spotting Cross-language Relations
Automatically Spotting Cross-language Relations
Federico Tomassetti
PyLecture4 -Python Basics2-
PyLecture4 -Python Basics2-
Yoshiki Satotani
FormValidator::LazyWay で検証ルールをまとめよう
FormValidator::LazyWay で検証ルールをまとめよう
Daisuke Komatsu
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
MongoDB
Aggregation in MongoDB
Aggregation in MongoDB
Kishor Parkhe
MongoDB Aggregation Framework
MongoDB Aggregation Framework
Tyler Brock
Groovy scripts with Groovy
Groovy scripts with Groovy
Andrés Viedma Peláez
Being Google
Being Google
Tom Dyson
MongoDB
MongoDB
Rawin Windygallery
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Hiroshi Shibamura
Lập trình Python cơ bản
Lập trình Python cơ bản
Nguyen Thi Lan Phuong
From mysql to MongoDB(MongoDB2011北京交流会)
From mysql to MongoDB(MongoDB2011北京交流会)
Night Sailer
OpenStreetMap+MongoDBで地図情報を検索してみたい!
OpenStreetMap+MongoDBで地図情報を検索してみたい!
Naruhiko Ogasawara
Review for Ch. 12
Review for Ch. 12
bridgetteflaherty
Weitere ähnliche Inhalte
Was ist angesagt?
NoSQL を Ruby で実践するための n 個の方法
NoSQL を Ruby で実践するための n 個の方法
Tomohiro Nishimura
Mongo db presentation
Mongo db presentation
Julie Sommerville
Cracking for the Blue Team
Cracking for the Blue Team
James '-- Mckinlay
Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Internationalizing CakePHP Applications
Internationalizing CakePHP Applications
Pierre MARTIN
جلسه سوم پایتون برای هکر های قانونی دوره مقدماتی پاییز ۹۲
جلسه سوم پایتون برای هکر های قانونی دوره مقدماتی پاییز ۹۲
Mohammad Reza Kamalifard
San Francisco Java User Group
San Francisco Java User Group
kchodorow
PromptWorks Talk Tuesdays: Ray Zane 1/17/17 "Elixir Is Cool"
PromptWorks Talk Tuesdays: Ray Zane 1/17/17 "Elixir Is Cool"
PromptWorks
Automatically Spotting Cross-language Relations
Automatically Spotting Cross-language Relations
Federico Tomassetti
PyLecture4 -Python Basics2-
PyLecture4 -Python Basics2-
Yoshiki Satotani
FormValidator::LazyWay で検証ルールをまとめよう
FormValidator::LazyWay で検証ルールをまとめよう
Daisuke Komatsu
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
MongoDB
Aggregation in MongoDB
Aggregation in MongoDB
Kishor Parkhe
MongoDB Aggregation Framework
MongoDB Aggregation Framework
Tyler Brock
Groovy scripts with Groovy
Groovy scripts with Groovy
Andrés Viedma Peláez
Being Google
Being Google
Tom Dyson
MongoDB
MongoDB
Rawin Windygallery
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Hiroshi Shibamura
Lập trình Python cơ bản
Lập trình Python cơ bản
Nguyen Thi Lan Phuong
From mysql to MongoDB(MongoDB2011北京交流会)
From mysql to MongoDB(MongoDB2011北京交流会)
Night Sailer
Was ist angesagt?
(20)
NoSQL を Ruby で実践するための n 個の方法
NoSQL を Ruby で実践するための n 個の方法
Mongo db presentation
Mongo db presentation
Cracking for the Blue Team
Cracking for the Blue Team
Agile database access with CakePHP 3
Agile database access with CakePHP 3
Internationalizing CakePHP Applications
Internationalizing CakePHP Applications
جلسه سوم پایتون برای هکر های قانونی دوره مقدماتی پاییز ۹۲
جلسه سوم پایتون برای هکر های قانونی دوره مقدماتی پاییز ۹۲
San Francisco Java User Group
San Francisco Java User Group
PromptWorks Talk Tuesdays: Ray Zane 1/17/17 "Elixir Is Cool"
PromptWorks Talk Tuesdays: Ray Zane 1/17/17 "Elixir Is Cool"
Automatically Spotting Cross-language Relations
Automatically Spotting Cross-language Relations
PyLecture4 -Python Basics2-
PyLecture4 -Python Basics2-
FormValidator::LazyWay で検証ルールをまとめよう
FormValidator::LazyWay で検証ルールをまとめよう
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Aggregation in MongoDB
Aggregation in MongoDB
MongoDB Aggregation Framework
MongoDB Aggregation Framework
Groovy scripts with Groovy
Groovy scripts with Groovy
Being Google
Being Google
MongoDB
MongoDB
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Lập trình Python cơ bản
Lập trình Python cơ bản
From mysql to MongoDB(MongoDB2011北京交流会)
From mysql to MongoDB(MongoDB2011北京交流会)
Andere mochten auch
OpenStreetMap+MongoDBで地図情報を検索してみたい!
OpenStreetMap+MongoDBで地図情報を検索してみたい!
Naruhiko Ogasawara
Review for Ch. 12
Review for Ch. 12
bridgetteflaherty
Ccb1maria ba
Ccb1maria ba
begona10
Leadership powerpoint
Leadership powerpoint
Atty Garfinkel
Latesht employee details
Latesht employee details
mrunaldsamant
การใช้งานของ Google
การใช้งานของ Google
Tooktik นางฟ้าแสนสวย
Trip planner
Trip planner
Mexan Juadha
Week14
Week14
s1180075
Speakers' Profiles
Speakers' Profiles
yuklan
Google表單
Google表單
shiehrm
Textual analysis
Textual analysis
adamb33
Andere mochten auch
(11)
OpenStreetMap+MongoDBで地図情報を検索してみたい!
OpenStreetMap+MongoDBで地図情報を検索してみたい!
Review for Ch. 12
Review for Ch. 12
Ccb1maria ba
Ccb1maria ba
Leadership powerpoint
Leadership powerpoint
Latesht employee details
Latesht employee details
การใช้งานของ Google
การใช้งานของ Google
Trip planner
Trip planner
Week14
Week14
Speakers' Profiles
Speakers' Profiles
Google表單
Google表單
Textual analysis
Textual analysis
Ähnlich wie MongoDBと位置情報 ~地理空間インデックスの紹介
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
Retail Reference Architecture Part 2: Real-Time, Geo Distributed Inventory
Retail Reference Architecture Part 2: Real-Time, Geo Distributed Inventory
MongoDB
はじめてのMongoDB
はじめてのMongoDB
Takahiro Inoue
Modern Application Foundations: Underscore and Twitter Bootstrap
Modern Application Foundations: Underscore and Twitter Bootstrap
Howard Lewis Ship
Crazy things done on PHP
Crazy things done on PHP
Taras Kalapun
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
MongoSF
Mongo db ecommerce
Mongo db ecommerce
christkv
Building a web application with mongo db
Building a web application with mongo db
MongoDB
Mongoskin - Guilin
Mongoskin - Guilin
Jackson Tian
CS442 - Rogue: A Scala DSL for MongoDB
CS442 - Rogue: A Scala DSL for MongoDB
jorgeortiz85
Das Web Wird Mobil - Geolocation und Location Based Services
Das Web Wird Mobil - Geolocation und Location Based Services
Stephan Schmidt
Building Applications with MongoDB - an Introduction
Building Applications with MongoDB - an Introduction
MongoDB
MongoDB Europe 2016 - ETL for Pros – Getting Data Into MongoDB The Right Way
MongoDB Europe 2016 - ETL for Pros – Getting Data Into MongoDB The Right Way
MongoDB
Mapping Flatland: Using MongoDB for an MMO Crossword Game (GDC Online 2011)
Mapping Flatland: Using MongoDB for an MMO Crossword Game (GDC Online 2011)
Grant Goodale
Introdução ao Perl 6
Introdução ao Perl 6
garux
Building Your First MongoDB Application (Mongo Austin)
Building Your First MongoDB Application (Mongo Austin)
MongoDB
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
Mateusz Zalewski
Damn Fine CoffeeScript
Damn Fine CoffeeScript
niklal
Nosh slides mongodb web application - mongo philly 2011
Nosh slides mongodb web application - mongo philly 2011
MongoDB
ETL for Pros: Getting Data Into MongoDB
ETL for Pros: Getting Data Into MongoDB
MongoDB
Ähnlich wie MongoDBと位置情報 ~地理空間インデックスの紹介
(20)
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Retail Reference Architecture Part 2: Real-Time, Geo Distributed Inventory
Retail Reference Architecture Part 2: Real-Time, Geo Distributed Inventory
はじめてのMongoDB
はじめてのMongoDB
Modern Application Foundations: Underscore and Twitter Bootstrap
Modern Application Foundations: Underscore and Twitter Bootstrap
Crazy things done on PHP
Crazy things done on PHP
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
Mongo db ecommerce
Mongo db ecommerce
Building a web application with mongo db
Building a web application with mongo db
Mongoskin - Guilin
Mongoskin - Guilin
CS442 - Rogue: A Scala DSL for MongoDB
CS442 - Rogue: A Scala DSL for MongoDB
Das Web Wird Mobil - Geolocation und Location Based Services
Das Web Wird Mobil - Geolocation und Location Based Services
Building Applications with MongoDB - an Introduction
Building Applications with MongoDB - an Introduction
MongoDB Europe 2016 - ETL for Pros – Getting Data Into MongoDB The Right Way
MongoDB Europe 2016 - ETL for Pros – Getting Data Into MongoDB The Right Way
Mapping Flatland: Using MongoDB for an MMO Crossword Game (GDC Online 2011)
Mapping Flatland: Using MongoDB for an MMO Crossword Game (GDC Online 2011)
Introdução ao Perl 6
Introdução ao Perl 6
Building Your First MongoDB Application (Mongo Austin)
Building Your First MongoDB Application (Mongo Austin)
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
Damn Fine CoffeeScript
Damn Fine CoffeeScript
Nosh slides mongodb web application - mongo philly 2011
Nosh slides mongodb web application - mongo philly 2011
ETL for Pros: Getting Data Into MongoDB
ETL for Pros: Getting Data Into MongoDB
Kürzlich hochgeladen
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
XfilesPro
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
soniya singh
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Pixlogix Infotech
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Kürzlich hochgeladen
(20)
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Slack Application Development 101 Slides
Slack Application Development 101 Slides
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
MongoDBと位置情報 ~地理空間インデックスの紹介
1.
2.
3.
4.
5.
6.
7.
8.
9.
db.shopinfo.ensureIndex({ loc
: "2d" }); db.shopinfo.ensureIndex({ loc : "2d", category: 1 });
10.
var lon =
139; var lat = 35; db.shopinfo.save({ name: '喫茶もんご', category: ['喫茶店'], loc: [lon, lat] });
11.
db.shopinfo.find({ loc:
[139, 35] });
12.
db.shopinfo.find({ loc
: { $near : [139.4, 35.4] } });
13.
db.shopinfo.find({ loc
: { $near : [139.4, 35.4], $maxDistance : 2 } });
14.
db.shopinfo.find({ loc
: { $near : [139.4, 35.4], $maxDistance : 2 }, category: '喫茶店' });
15.
db.runCommand({ geoNear:
"shopinfo", near: [139.4, 35.4], maxDistance: 2, query: {category: '喫茶店'} });
16.
{
"ns" : "test.shopinfo", "near" : "1110100101001011000011000101000010111011111111011110", "results" : [{ "dis" : 0.5656861498877501, "obj" : { "_id" : ObjectId("4d01f5616919cb54afce6a77"), "name" : "喫茶もんご", "category" : ["喫茶店"], "loc" : [139, 35] } }], "stats" : { "time" : 0, "btreelocs" : 0, "nscanned" : 1, "objectsLoaded" : 1, "avgDistance" : 0.5656861498877501, "maxDistance" : 0.5656861498877501 }, "ok" : 1 }
17.
18.
db.shopinfo.find({ loc
: { $within : { $box : [[130, 30], [140, 35]] } } }); db.shopinfo.find({ loc : { $within : { $center : [[135, 35], 4] } } });
19.
20.
21.
22.
23.
24.
25.
db.shopinfo.find({ loc
: { $nearSphere : [139.4, 35.4] } }); db.shopinfo.find({ loc : { $within : { $centerSphere : [[135, 35], 0.1] } } });
26.
1
= 6371 km
27.
db.runCommand({ geoNear:
"shopinfo", near: [135, 35], query: {category: '喫茶店'}, spherical: true }); "results" : [{ "dis" : 0.05718377899700883, "obj" : { "loc" : [139, 35] } }],
Jetzt herunterladen