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
huyuyasumi_lt_ssk.pdf
Search
sasaki MIERUNE
January 16, 2025
89
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
huyuyasumi_lt_ssk.pdf
sasaki MIERUNE
January 16, 2025
Transcript
12 slides
位置情報とSupabase 佐々木 遥人 クラメソさっぽろIT勉強会(仮)#7 2025/1/16
©Project PLATEAU / MLIT Japan 2年くらい前から土木業界からきま した 普段はバックエンドフロントエンド問 わず書いています 自己紹介
佐々木 遥人 SASAKI Haruto ソフトウェアエンジニア
©OpenStreetMap contributors 01 What is Supabase 02 何が嬉しいか 03 位置情報とSupabase 目次
©OpenStreetMap contributors 01 What is Supabase
©Project PLATEAU / MLIT Japan What is Supabase •Alternative FirebaseなOSS
•PostgreSQLが全ての基礎 ◦ 設定はSQLで記述 •DataBase, Authentication, Storage, Edge Functions •Que, Cronなどもあるらしい https://supabase.com/
©OpenStreetMap contributors 02 何が嬉しいか
©Project PLATEAU / MLIT Japan 何が嬉しいか •各コンポーネントの繋ぎ込みを考えなくても良い ◦ Lambda +
Firebase + RDS + S3 ⇒ Supabaseで包括 •基本的にSQLを利用して設定が記述される。画一的に書ける ◦ migrationファイルをたくさん作ってデプロイ •極論、SSGしたファイルをホスティングしてSupabaseプロジェクトと疎 通すればそれだけでリッチなアプリケーションを作成することができる →限られた工数を「顧客に価値を届けること」に割くことができる!
©Project PLATEAU / MLIT Japan 何が嬉しいか •DBのブランチング機能がある ◦ アプリに破壊的な変更を加える時、ブランチングされているとレ ビューがしやすい
◦ Vercel、AWS Amplify、Cloudflareにデプロイするとフロントも バックもPRごとにブランチングされた環境が構築できる ◦ 💰はみないことにする •TSなら当然型の生成機能もある
©OpenStreetMap contributors 03 位置情報とSupabase
©Project PLATEAU / MLIT Japan 位置情報とSupabase •やっぱりPostgreSQLネイティブなのが大きい! ◦ PostGIS拡張機能を利用できるのがデカすぎる •地図はタイルというものを表示する
◦ 動的にDBからタイルを作成する方法と、静的にファイルを配信する 方法がある ◦ 動的タイル: PostgreSQLを利用して、rpcを作成し、呼び出す ◦ 静的タイル: PMTilesという方式のファイルをSupabaseの Storageに配置し、呼び出す
©Project PLATEAU / MLIT Japan 位置情報とSupabase •型情報を使ってORMのように記述もできる ◦ Geometryな型付けはできないが、他の基本的な型はこれで賄え る
•Geospatialなものも含めて、複雑な処理はrpcで行い、簡単な処理は SupabaseクライアントからDBにアクセスするので十分 •Realtimeを利用すればリアルタイムな位置情報を共有するアプリを作成 することも簡単そう(試していない)
© 地理院地図 全国最新写真(シームレス) •位置情報とSupabaseは相性が良い! •爆速でタイル配信システムを構築できる! まとめ
More Decks by sasaki MIERUNE
See All by sasaki MIERUNE
From Boring XML to 3D Tiles: Building a Geological Borehole Viewer with CesiumJS
groovyjovy
0
120
ボーリングデータを可視化してみる
groovyjovy
0
39
AIと共に乗りこなす 地理空間情報の世界
groovyjovy
0
28
AIと共に乗りこなす 地理空間情報の世界
groovyjovy
1
95
FOSS4G KYUSHU 2025
groovyjovy
0
56
ブログを作ってみる
groovyjovy
0
75
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
RailsConf 2023
tenderlove
30
1.6k
Chasing Engaging Ingredients in Design
codingconduct
0
410
From π to Pie charts
rasagy
1
460
HDC tutorial
michielstock
2
1k
It's Worth the Effort
3n
188
29k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
370
Designing Experiences People Love
moore
143
24k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k