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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
大塚真言
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
Transcript
18 slides
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ҢܦΛऔΓѻ͍͍͢ • దͳϥΠϒϥϦͱΈ߹ΘͤΔ͜ͱͰ࣮༻ తͳػೳΛ࡞Δ͜ͱ͕Ͱ͖Δ ·ͱΊ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ
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
350
ユースケース駆動開発で自社プロダクトを作ってみた!
shingen29
1
8.2k
MDN Web Docsから学ぶ 公式ドキュメントを読むメリット
shingen29
0
970
PHP8をざっくり解説してみる
shingen29
0
370
最近のプロジェクトを振り返ってみる
shingen29
0
450
Style Guideとstylelintを使ってHTML/CSSを綺麗に書こう!
shingen29
2
960
Stripe CLIを触ってみた!
shingen29
1
290
Other Decks in Programming
See All in Programming
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
290
あなたはMCPの機能を、まだ知らない。
4geru
1
630
Ruby から Emacs を操作したい
phigasui
0
330
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
AI Augmentation Techniques with Liberty
ivargrimstad
1
520
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
270
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
110
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
Crash Auto Pipelines
veronikapj
1
430
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
570
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7.1k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
550
A designer walks into a library…
pauljervisheath
211
25k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
610
How GitHub (no longer) Works
holman
316
150k
Optimising Largest Contentful Paint
csswizardry
37
4k
Utilizing Notion as your number one productivity tool
mfonobong
4
640
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
680
Learning to Love Humans: Emotional Interface Design
aarron
275
41k