pointkit geocodes a plain address and hands back a POINT(longitude latitude) WKT string — the portable geometry format that Postgres, SQL Server, Oracle Spatial, SpatiaLite, and most GIS software all read directly.
Every serious spatial system reads WKT, which is exactly why it's worth having on hand even if you already use Postgres or MySQL day to day: it's what you paste into a one-off SQL Server or Oracle Spatial query, what QGIS and ArcGIS import without complaint, and what plenty of internal tools accept as a lowest-common-denominator geometry input.
The catch is the same one every spatial format shares: axis order. WKT is (longitude, latitude). Get a coordinate pair from somewhere that returns lat/long first — a lot of consumer mapping APIs do — and swap them by mistake, and the point silently lands somewhere else on Earth. pointkit geocodes the address directly, so the order is right from the start.
1600 Amphitheatre Parkway, Mountain View, CA is at latitude 37.4224, longitude -122.0842. As WKT that's POINT(-122.0842 37.4224): longitude, a space, latitude.
SELECT ST_GeomFromText('POINT(-122.0842 37.4224)', 4326);
SELECT ST_GEOGFROMTEXT('POINT(-122.0842 37.4224)');
WKT input is longitude first, but SQL Server's own geography::Point() takes latitude first. Don't mix the two up.
SELECT geography::STGeomFromText('POINT(-122.0842 37.4224)', 4326);
SELECT geography::Point(37.4224, -122.0842, 4326); -- same point
MySQL 8 reads WKT latitude first under SRID 4326. To pass it standard WKT, say so explicitly:
SELECT ST_GeomFromText('POINT(-122.0842 37.4224)', 4326, 'axis-order=long-lat');
from shapely import wkt
p = wkt.loads("POINT (-122.0842 37.4224)")
p.x, p.y # (-122.0842, 37.4224): x is longitude
| Target | Order | Example (37.4224, -122.0842) |
|---|---|---|
| MySQL 8.0+, SRID 4326 | lat, lng | ST_GeomFromText('POINT(37.4224 -122.0842)', 4326) |
| MariaDB, MySQL 5.7 | lng, lat | ST_GeomFromText('POINT(-122.0842 37.4224)', 4326) |
| Postgres / PostGIS | lng, lat | ST_GeomFromText('POINT(-122.0842 37.4224)', 4326) |
| WKT | lng, lat | POINT(-122.0842 37.4224) |
| GeoJSON | lng, lat | {"type":"Point","coordinates":[-122.0842,37.4224]} |
| Leaflet, Google Maps | lat, lng | L.marker([37.4224, -122.0842]) |
POINT(longitude latitude). It's read and written by Postgres/PostGIS, SQL Server, Oracle Spatial, SpatiaLite, and most GIS desktop software.ST_GeomFromText('POINT(...)', 4326). pointkit's Postgres output already does this wrapping for you; the WKT here is the bare geometry for anywhere else you need it.POINT(longitude latitude). Every major spatial format follows this except MySQL/MariaDB's default SRID 4326, which reverses it.