How to perform geographical queries using Supabase and PostGIS

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 26

  • @4wesom-079
    @4wesom-079 8 часов назад +1

    I've been actually looking for that sorting by closest to you. I didn't want to handle the sorting in the frontend. I am glad supabase covers that too 😊

  • @gery49
    @gery49 Год назад +6

    This is exactly what I've been learning for my app. Did I forget to set RLS policies on my mind? You guys totally read it!

  • @user-ft2md2gd4s
    @user-ft2md2gd4s Год назад +2

    let’s appreciate the steady path of awesome improvements 👏

  • @reni_christian
    @reni_christian 5 месяцев назад

    😮 Wow, gradually my love for Supabase is increasing.
    And it's history that to whomever i love they just leave i am also afraid if Supabase also do this with us.
    Like, Closes the open source or restricts the features on self-host.

  • @gazul05
    @gazul05 Год назад +1

    Awesome! Greetings from México.

  • @spamtes
    @spamtes 10 месяцев назад

    You have good pronunciation for a japanese guy!

  • @ricardocnn
    @ricardocnn Год назад +2

    Awesome

  • @jeremytenjo
    @jeremytenjo Год назад +1

    Please make timescaledb extension tutorial ❤

  • @flowstatehandle
    @flowstatehandle 6 месяцев назад

    So with this setup I can only get the restaurants (if I want the lat,lng) through the function, right? Does that impact billing in comparison to a "normal" query?
    Let's say my users all fetch 1000 restaurants, this function will be called a fair amount..
    Would love some insight on that. Either way also want to express my gratitude for this kind of functionality, which I was missing dearly with firebase

  • @toadtws
    @toadtws 11 месяцев назад

    This is nice… but how do I store these functions on my local database so I can use them via an API call? I hope they will show up in database migrations too, so I can push them to the production database? (I have a free account…)

    • @Supabase
      @Supabase  11 месяцев назад +1

      As long as you include the function creation statements in your migration file, you will be able to have them available locally, as well as push them to prod with Supabase CLI!

  • @Mr_BetaMax
    @Mr_BetaMax 6 дней назад

    Wow

  • @tananga_studio
    @tananga_studio Год назад +2

    ❤❤❤❤❤❤❤❤❤

  • @jejidyanjackson2868
    @jejidyanjackson2868 Год назад +5

    how can i do that in flutterflow

    • @Supabase
      @Supabase  Год назад +3

      First, you create the Postgres function shown in this video. Then you can call them using custom functions: docs.flutterflow.io/customizing-your-app/custom-functions

    • @jejidyanjackson2868
      @jejidyanjackson2868 Год назад

      @@Supabase Thank you, Let's do it.

    • @andr101
      @andr101 5 месяцев назад

      @@Supabase can I just do a rest api call from flutterflow instead?

  • @assaultressgamer
    @assaultressgamer 6 месяцев назад

    Could you please provide a sample on how to parse the POINT back to CLLocation in Swift, or least the String format? I managed to save the long and lat following the "POINT(lat long)" format from the iOS client to the Supabase database. But how to parse it back to long and lat after it's been converted to something like this: 0101000020E6100000A4DFBE0E9C91614044FAEDEBC0494240?

    • @Supabase
      @Supabase  6 месяцев назад

      You should do the conversion on the database side and not on the client side. You can use functions like `st_y()` and `st_x()` to do so. supabase.com/docs/guides/database/extensions/postgis#finding-all-data-points-within-a-bounding-box

    • @assaultressgamer
      @assaultressgamer 5 месяцев назад

      @@Supabase Is there a more detailed Swift documentation on this? I think this is a pretty common scenario but complex enough for people without SQL experience to figure out.
      I have a struct for encapsulating user details, which includes other user info plus their location. Does this mean I should do the insert/upsert as "long: float8 and lat: float8"? And then when I have to perform queries like, return nearby users within 10 km radius, that's where I have to perform the rpc call? Please have a documentation/video for handling this part in Swift.

  • @b-mixchannel6735
    @b-mixchannel6735 10 месяцев назад

    Can I use geo queries in Expo React-Native?

    • @Supabase
      @Supabase  10 месяцев назад +1

      Yup, you can use geo queries on any front-end frameworks. You just have to call the database functions.

    • @b-mixchannel6735
      @b-mixchannel6735 10 месяцев назад

      @@Supabase so I am able to fetch all transactions created within a certain radius? Thats what I wanna do.

  • @greendsnow
    @greendsnow 8 месяцев назад +1

    looks extremely complicated.

    • @Supabase
      @Supabase  8 месяцев назад

      It might at first, but once you dip your feet into it, you will get the hang of it!