Map coordinates are simple: why the same point sits hundreds of metres off on three maps
GPS reports WGS84, Amap works in GCJ-02, Baidu in BD-09, TianDiTu in CGCS2000. When the coordinate systems disagree, the same point lands tens to hundreds of metres away; add commercial licensing and call quotas on top, and many low-volume sites simply replace the map with a picture. HGMap exists to fold three map providers into one API and one coordinate system.

Start with a scene we see often: the map block on a company website ends up as a static image. A store moves, and the image has to be redone. A visitor wants to zoom in, but can't. Sales asks why there is no map, and the developer says the map API needs a licence and a quota, and our traffic is too small to justify it.
This isn't a step backwards in technology. It's a cost calculation that doesn't work. Replacing a map with an image at least keeps the page usable. Reverse geocoding — the API you use a few times a day but can't do without for address entry or track playback — is where it really hurts.
The coordinate systems don't agree
GPS modules, phone positioning and most device telemetry report WGS84. It is the international geodetic datum, usually written as EPSG:4326.
But Chinese basemaps are not drawn directly on WGS84. Amap and Tencent use GCJ-02, known in the trade as “Mars coordinates”. Baidu adds another offset on top of GCJ-02, called BD-09. Tianditu uses CGCS2000, China's national geodetic coordinate system — close to WGS84, but not the same thing.
One more datum often gets mixed in: EPSG:3857. It is the Web Mercator projection, which flattens the globe into map tiles. It is not another national datum. WGS84 says where the point is; 3857 says how to draw it on screen.
Some people write GCJ-02 as GCJ02 or jcg02; they all mean the same thing. The name is not the point. The point is that the same latitude and longitude can land tens to hundreds of metres away on different basemaps.
How the offset happens
The most common mistake is taking WGS84 from GPS and putting it straight onto an Amap or Baidu basemap. The basemap assumes you gave it GCJ-02 or BD-09, so the pin lands in the wrong place.
The second is taking GCJ-02 from Amap and passing it to Baidu without conversion. Baidu expects BD-09, so you add another offset to a coordinate that is already offset.
The third is harder to see: no coordinate system is recorded when the data is stored. Today you use Amap and store GCJ-02. Tomorrow you switch to Baidu and read it as WGS84. The day after, the whole track drifts.
Coordinate conversion is not a single multiplier. The GCJ-02 offset varies by location, and most public conversion methods are fits or approximations; a round trip does not necessarily return to the original point. That is fine for display, but not for surveying or mapping output.
So the distance, the electronic fence, and the check check were suggested to be done at one coordinates, and not at the same time.
The safer pattern: one coordinate system in the database, convert only at the edge
A more stable engineering order is: record the source coordinate system, store everything in one internal system, convert to the provider's system only when sending data out for display, and convert points coming back from a basemap into the internal system before storing them.
Internal coordinates WGS84 is much more convenient: GPS, Beidou, vehicle-mounted equipment, most sensors are close to it; it is also recognized at the international interface. If conversion takes place only at the border and does not take place at every level.
Two ground rules. First, state the conversion accuracy; do not use approximate conversion for surveying, land or aviation work that needs precision. Second, keep basemap and data licensing compliant: being able to convert a coordinate does not mean you can screenshot or reuse a map freely.
The harder problem is not coordinates. It is how you buy the service
Coordinates are a technical problem; purchasing is a commercial one. Baidu and Amap have spent years splitting their map platforms into commercial licences, call quotas and individual capabilities. For a site doing a few hundred or a few thousand calls a day, the problem is often not the unit price but the threshold: a commercial licence, a quota package, usually an annual purchase. Low volume does not mean a low barrier.
Most of the small businesses we meet are not refusing to pay. The price simply does not match the usage. A company site may use a map only to mark one store or to support one address field. An after-sales system may call reverse geocoding a few dozen times a day. But it cannot do without it: addresses cannot be entered, tracks cannot be located, and dispatch has to be handled by phone.
That is how the opening scene happens: the map block becomes an image. Images are cheap, stable and need no key. The cost is that every address change means a new image, visitors cannot zoom, and the copyright of the screenshot is another question.
Our view is simple: maps should not be free, but low-volume use lacks a sensible way to buy them. An annual package is too large, pay-per-call has no entry point, and the feature gets cut.
How HGMap handles these disagreements
HGMap is HG's map service integration platform. It does not build basemaps, collect map data or compete with Baidu and Amap on map content. It works on the middle layer: turning Tianditu, Baidu and Amap capabilities into one API, one set of fields and one coordinate system.
The caller gets one AppKey and one set of parameters. Coordinates go in and out as WGS84. For a Baidu basemap, the platform converts to BD-09; for Amap or Tencent, to GCJ-02; when the data goes back into your database, it is WGS84 again. No if statements scattered through business code.
Ten capabilities are currently wrapped: geocoding, reverse geocoding, coordinate conversion, POI search, driving directions, walking directions, administrative divisions, static maps, distance between two points, and usage queries. Turn on the ones the project needs; you do not have to buy a whole bundle for one function.
The provider sits in configuration. Use Amap today and switch to Tianditu tomorrow by changing one line of configuration. If one provider fails, the platform retries by rule; if a backup provider is configured, it can switch. The front end does not need to know who served the request.
Usage is visible by API, by project and by day, with quota and balance alerts. You do not have to wait for the monthly bill to find out which project burned through the quota.
The boundary is clear: HGMap does not sell map data copyright, does not promise that any provider's quota or policy will stay unchanged, and does not run the multi-account free-quota trick. Basemap and data use must still follow the provider's terms.
When it fits, and when it doesn't
If you have one project making a few dozen calls a day, going directly to the provider on pay-as-you-go is usually simpler. If all you need is a location image that never changes, a static image is genuinely enough.
HGMap fits a different shape: several company sites or small systems that all need geocoding or reverse geocoding; a setup that may move from Amap to Baidu and does not want business code tied to one vendor; a need for POI, routing and administrative divisions without integrating three sets of documentation; and a wish to see usage in one place and allocate cost by project.
In one sentence: a single small project may not justify this layer; several small projects and several providers are where it starts to pay off.
Get one point right first
You do not have to replace the basemap to start. Take one real address and one device point, and confirm three things: what the source coordinate system is, what the target basemap expects, and where the converted point lands.
Once the point is right, talk about reverse geocoding, POI, routing and usage. If the point is wrong, adding more APIs only adds more wrong answers.
If you have a company site, after-sales system or device track stuck between “maps are too expensive” and “images are too rigid”, send us the scenario, daily call volume and the capabilities you need. We will first judge whether going direct to a provider is better, or whether HGMap is worth adding — then how to connect it.



