Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
FirestoreのGeoPoint型を使いこなす
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
大塚真言
October 29, 2019
Programming
810
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
FirestoreのGeoPoint型を使いこなす
大塚真言
October 29, 2019
More Decks by 大塚真言
See All by 大塚真言
自社プロダクトを作ってみた.pdf
shingen29
0
340
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
160
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
340
ユースケース駆動開発で自社プロダクトを作ってみた!
shingen29
1
8.2k
MDN Web Docsから学ぶ 公式ドキュメントを読むメリット
shingen29
0
960
PHP8をざっくり解説してみる
shingen29
0
370
最近のプロジェクトを振り返ってみる
shingen29
0
450
Style Guideとstylelintを使ってHTML/CSSを綺麗に書こう!
shingen29
2
950
Stripe CLIを触ってみた!
shingen29
1
290
Other Decks in Programming
See All in Programming
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
12
5k
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
120
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
220
phperだってパンチカードでコーディングしたい
o0h
PRO
0
480
Event is what happens
moro
2
1.7k
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
12
10k
contenteditable と日本語入力に向き合う
colorful12
0
230
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
290
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
1.9k
dotNET_vulnclicker_intro.pdf
deka_morita
0
150
ChromeでローカルLLM
ryu1013
0
170
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
130
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
The SEO identity crisis: Don't let AI make you average
varn
0
610
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Technical Leadership for Architectural Decision Making
baasie
3
620
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Embracing the Ebb and Flow
colly
88
5.2k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Test your architecture with Archunit
thirion
2
2.5k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Scaling GitHub
holman
464
140k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
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ҢܦΛऔΓѻ͍͍͢ • దͳϥΠϒϥϦͱΈ߹ΘͤΔ͜ͱͰ࣮༻ తͳػೳΛ࡞Δ͜ͱ͕Ͱ͖Δ ·ͱΊ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ