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
FirestoreのGeoPoint型を使いこなす
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
大塚真言
October 29, 2019
Programming
790
1
Share
FirestoreのGeoPoint型を使いこなす
大塚真言
October 29, 2019
More Decks by 大塚真言
See All by 大塚真言
自社プロダクトを作ってみた.pdf
shingen29
0
320
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
140
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
320
ユースケース駆動開発で自社プロダクトを作ってみた!
shingen29
1
7.9k
MDN Web Docsから学ぶ 公式ドキュメントを読むメリット
shingen29
0
930
PHP8をざっくり解説してみる
shingen29
0
350
最近のプロジェクトを振り返ってみる
shingen29
0
420
Style Guideとstylelintを使ってHTML/CSSを綺麗に書こう!
shingen29
2
920
Stripe CLIを触ってみた!
shingen29
1
280
Other Decks in Programming
See All in Programming
JOAI2026 1st solution - heron0519 -
heron0519
0
130
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
230
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
250
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
220
GitHubCopilotCLIをはじめよう.pdf
htkym
0
140
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
290
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
410
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
150
CDK Deployのための ”反響定位”
watany
4
760
AI-DLC Deep Dive
yuukiyo
8
4k
Swift Concurrency Type System
inamiy
0
530
ハンズオンで学ぶクラウドネイティブ
tatsukiminami
0
130
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Ruling the World: When Life Gets Gamed
codingconduct
0
210
Everyday Curiosity
cassininazir
0
200
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
How to Think Like a Performance Engineer
csswizardry
28
2.5k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Un-Boring Meetings
codingconduct
0
270
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Transcript
FirestoreͷGeoPointܕΛ͍͜ͳ͢ ʙGeoFireXΛͬͨҐஔใݕࡧʙ 2019/10/29 Firebase Meetup in Osaka #6 ͠Μ͛Μ
ࣗݾհ -BSBWFM 7VFKT 'JSFCBTF
ձࣾհ ߹ಉձࣾϊϚυϦ ۀظ ैۀһ໊ 8FCܥडୗ։ൃ
αφେ͖ʢि4Քಇʣ ࠷ۙɺभ/P ౬Βͬ͘͢ ߦ͖ͬͯ·ͨ͠ʂʂ
Firestoreͬͯ·͢ʁ!
Firestoreͷಛ • ϦΞϧλΠϜσʔλऔಘ • ΦϑϥΠϯαϙʔτ • ଟ༷ͳσʔλܕʢจࣈྻɺɺλΠϜελ ϯϓܕɺGeoPointܕͳͲʣ • O/RϚοϐϯάෆཁ
• ҐஔใʢҢͱܦʣΛอଘ͢Δσʔλܕ GeoPointܕͱ
• 1ΧϥϜͰҢͱܦ͕ѻ͑Δ GeoPointܕͱ
• ΫϥΠΞϯτ͔ΒΦϒδΣΫτͱͯ͠؆୯ ʹऔಘͰ͖Δ GeoPointܕͱ Ң ܦ
·͋ɺҢܦ͕؆୯ʹѻ͑ͯ… ࣮༻తͳ͍ํ͕Γ͍ͨʂ
ݱࡏ͔Βܘ̋kmͷΛ ݕࡧ͢Δػೳ
༻ͨ͠ϥΠϒϥϦ • ᶃొ • GoogleMaps Geocoding API • ngeohashʢҢܦΛϋογϡԽ͢Δʣ •
ᶄݕࡧ • GeoFireX ※ https://github.com/codediodeio/geofirex
ᶃొ ॅॴ ٶ࡚ݝٶ࡚ࢢ٦௨౦ ᶃ Geocoding API Ң: 31.915439, ܦ: 131.42418
ᶄ ngeohash geohash: wvtmwdh0v
• ٿ্ͷશ࠲ඪΛҢܦΛͱʹϋογϡ Խͨ͠ͷʢ ྫ: wvtmwdh0v ʣ • 1~10ܻͰදݱ͞Εɺܻ͕େ͖͍ͱਫ਼͕ߴ ͍ •
จࣈྻ͕ۙࣅͯ͠Δ΄Ͳೋؒڑ͕͍ۙ GeohashͬͯԿʁ
ᶄݕࡧ ݱࡏͷ(FP'JSF1PJOUΦϒδΣΫτ DPOTUDFOUFSHFPpSFYQPJOU ܘLNҎΛݕࡧൣғʹઃఆ DPOTUSBEJVT HFPIBTIͱHFPQPJOUܕͷϑΟʔϧυΛࢦఆ DPOTUpFMEbMPDBUJPO`
ᶄݕࡧ औಘ͢ΔίϨΫγϣϯΛࢦఆ DPOTUDPMMFDUJPOHFPpSFYDPMMFDUJPO bDMJOJDT` DMJOJDTίϨΫγϣϯΛରʹ ݱࡏ͔ΒLNҎͷΛऔಘ͢Δ DPOTUDMJOJDTDPMMFDUJPOXJUIJO DFOUFS SBEJVT
pFME
• FirestoreҢܦΛऔΓѻ͍͍͢ • దͳϥΠϒϥϦͱΈ߹ΘͤΔ͜ͱͰ࣮༻ తͳػೳΛ࡞Δ͜ͱ͕Ͱ͖Δ ·ͱΊ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ