Coordinate Systems: One Place, Three Grids, Hundreds of Metres Apart

Open Tool Coordinate Converter

Why one shop sits in different places

GPS receivers report WGS84, the global positioning reference. Chinese map services publish encrypted coordinates instead: Gaode and Tencent use GCJ02, while Baidu adds another shift on top to produce BD09. All three describe one physical spot, but the numbers differ by hundreds of metres. Pasting a WGS84 point onto a Baidu map drops the marker in the next block, and feeding BD09 to a device expecting WGS84 shifts the whole track. The tool keeps all three conversions, degree-minute-second parsing, geohash coding and great-circle distance in one place so those moves stay on one convention.

Steps

  1. Enter decimal degrees in the longitude and latitude fields, or paste paired values into the bulk box, one per line.
  2. Choose the source grid, WGS84, GCJ02 or BD09; the wrong choice reverses the shift.
  3. Press the sample to see a reference point, then copy all three results.
  4. For distance, fill point A and point B each as longitude, latitude, then compute.
  5. For database indexing, take the geohash: nine characters land near five metres, twelve near three centimetres.
  6. Export CSV or download the text, and keep the original grid column in the table rather than mixing sources.

Shift, precision and distance

The GCJ02 shift varies with position rather than holding one constant, so adding a fixed offset never corrects it. BD09 applies a second shift, which is why going straight from WGS84 to BD09 should match the two-step route; a mismatch means the middle step was skipped. Sexagesimal notation works in sixties: sixty minutes to a degree, sixty seconds to a minute, so thirty degrees twenty-seven minutes five seconds equals 30.4514. Great-circle distance shrinks with latitude: a degree of longitude spans about 111 kilometres at the equator and near 55 at sixty degrees north.

Common mistakes

Storing GCJ02 as WGS84 shifts every replayed track. Correcting by hand with a fixed offset fails as soon as the location changes. Swapping latitude and longitude sends the point into the sea. Running degrees, minutes and seconds into arithmetic without decimal conversion misplaces the point by tens of kilometres. Too short a geohash puts neighbouring stores into one cell. And aligning exported rows by line number loses the whole batch when one row fails to parse.

Where this must not be used

Surveying, land title and construction setting-out require statutory grids and licensed survey results, not online conversion. Route planning belongs to the map service, since straight-line distance is not travel distance. Indoor positioning and buried services involve elevation and local benchmarks that two dimensions cannot carry. Cross-border work adds local datums and projections beyond these three. And bulk data containing personal locations should stay on your own machine.

⏫︎