Is Appwrite any better??
Yes, I remember that in Supabase there was an S3 tab where you could give some S3 ID?
I did the same
What’s the pricing? Also what is a backend compiler?
Just use the Temporal type. Its’s so cool and easy to work with it.
True this. I forgot it. If you also use Autocomplete for search boxes the credits will fly like crazy!
Cool, btw, I avoided using google places API as it takes 5$/1000 calls. I got instead installed an Openroute serivice instance on an VPS.
Did this work? I couldn’t find a simpler way to do it. You’re welcome!
import * as Location from "expo-location"; export const getCurrentLocation = async () => { let {status} = await Location.requestForegroundPermissionsAsync(); if (status !== 'granted') { // setErrorMsg('Permission to access location was denied'); return null; } let location = await Location.getCurrentPositionAsync({ accuracy: LocationAccuracy.Highest }) // setUserLocation(location) return location; } AND then, inside a component I got this: useEffect(() => { const loadLocation = async() => { const location = await getCurrentLocation(); if(location){ setUserLocation(location); } } loadLocation(); }, []) Of course you have to create a const with the \[userLocation, setUserLocation\] like this: const [userLocation, setUserLocation] = useState<Location.LocationObject | null>(null)
Wait, I will open my app as I have to work on it anyways :)). No, I am using React Native Maps because I need to simply inject an GeoJson in there and that's it. I will send you the code. You need to use the location, LAT LNG from the device, MapBox I think it could only be for display purposes. But look if it has self-gps capabilities. It would save you from headaches and state management.
Save it as a geometry in Supabase, and index it. I just did it for my app.