The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix markdown issues
dshukertjr845cca7846ef
diff --git a/apps/docs/pages/guides/database/extensions/postgis.mdx b/apps/docs/pages/guides/database/extensions/postgis.mdxindex 35cdeb99530..b99a15fca33 100644--- a/apps/docs/pages/guides/database/extensions/postgis.mdx+++ b/apps/docs/pages/guides/database/extensions/postgis.mdx@@ -12,7 +12,7 @@ export const meta = {While you may be able to store simple lat/long geographic coordinates as a set of decimals, it does not scale very well when you try to query through a large data set. PostGIS comes with special data types that are efficient, and indexable for high scalability.-The additional data types that PostGIS provides include `[Point](https://postgis.net/docs/using_postgis_dbmanagement.html#Point)`, `[Polygon](https://postgis.net/docs/using_postgis_dbmanagement.html#Polygon)`, `[Linestring](https://postgis.net/docs/using_postgis_dbmanagement.html#LineString)`, and many more to represent different types of geographical data. In this guide, we will mainly focus on how to interact with `Point` type, which represents a single set of latitude and longitude. If you are interested in digging deeper, you can learn more about different data types on the [data management section of PostGIS docs](https://postgis.net/docs/using_postgis_dbmanagement.html).+The additional data types that PostGIS provides include [`Point`](https://postgis.net/docs/using_postgis_dbmanagement.html#Point), [`Polygon`](https://postgis.net/docs/using_postgis_dbmanagement.html#Polygon), [`Linestring`](https://postgis.net/docs/using_postgis_dbmanagement.html#LineString), and many more to represent different types of geographical data. In this guide, we will mainly focus on how to interact with `Point` type, which represents a single set of latitude and longitude. If you are interested in digging deeper, you can learn more about different data types on the [data management section of PostGIS docs](https://postgis.net/docs/using_postgis_dbmanagement.html).## Enabling PostGIS for your Supabase project@@ -87,7 +87,7 @@ values ('Supa Burger', st_point(-73.946823 40.807416));</TabPanel><TabPanel id="js" label="JavaScript">-```typescript+```jsconst location = { lat: 40.807416, long: -73.946823 }const { error } = await supabase.from('restaurants').insert({name: 'Supa Burger',@@ -111,7 +111,7 @@ await supabase.from('restaurants').insert({Notice the order in which you pass the latitude and longitude. Longitude comes first, and is because longitude represents the x-axis of the location. Another thing to watch for is that there is no comma between the two values, just a single space.-At this point, if you go into your Supabase dashboard and look at the data, you will notice that the data in the location column looks something like this and is not in a human-readable format.+At this point, if you go into your Supabase dashboard and look at the data, you will notice that the data in the location column looks something like this.```0101000020E6100000A4DFBE0E9C91614044FAEDEBC0494240@@ -134,7 +134,7 @@ as $$$$;```-```typescript+```jsconst { data, error } = await supabase.rpc('nearby_restaurants_with_distance', {lat: 35.6762,long: 140.6503,@@ -181,14 +181,14 @@ as $$$$;```-`[&&](https://postgis.net/docs/geometry_overlaps.html)` operator used in the where statement here returns a boolean of whether the bounding box of the two geometries intersect or not. We basically are creating a bounding box from the two points and finding those points that fall under the bounding box. We are also utilizing a few different PostGIS functions here.+[&&](https://postgis.net/docs/geometry_overlaps.html) operator used in the where statement here returns a boolean of whether the bounding box of the two geometries intersect or not. We basically are creating a bounding box from the two points and finding those points that fall under the bounding box. We are also utilizing a few different PostGIS functions here.- [ST_MakeBox2D](https://postgis.net/docs/ST_MakeBox2D.html): Creates a 2-dimensional box from two points.- [ST_SetSRID](https://postgis.net/docs/ST_SetSRID.html): Sets the [SRID](https://postgis.net/docs/manual-dev/using_postgis_dbmanagement.html#spatial_ref_sys), which is an identifier of what coordinate system to use, for the geometry. 4326 the standard longitude and latitude coordinate systems.You can call this function from your client like this:-```typescript+```jsconst { data, error } = await supabase.rpc('restaurants_in_view', {min_lat: 40.807,min_long: -73.946,