wandergis/coordtransform

提供了百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 35 minutes ago
Type:Library / SDKCategory(s):Geospatial & MapsScience & Industry
Added to GitGenius on September 14th, 2026
Created on July 8th, 2015
Open Issues & Pull Requests: 22 (+0)
GitHub issues: Enabled
Number of forks: 921
Total Stargazers: 4,651 (+0)
Total Subscribers: 146 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.3 hours
Mean response time: 6.5 days
90th percentile: 12.9 days
Tracked items: 2

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 4
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 531 days
Stale 30+ days: 4
Stale 90+ days: 4

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

coordtransform is a coordinate transformation library that converts between Baidu coordinates (BD09), Chinese national survey coordinates also known as Mars coordinates (GCJ02), and WGS84 geographic coordinates.

The tool addresses the problem of coordinate system misalignment that arises when working with location data from different sources in China. Different mapping services and device APIs return coordinates in different systems: GPS devices and international map providers use WGS84, Chinese mobile devices and services like Amap use GCJ02, and Baidu's SDK and maps use BD09. The library provides conversion functions between all three systems, allowing developers to normalize coordinates regardless of their source before using them in web GIS visualization or other applications.

The tool suits developers building location-aware applications in China who need to reconcile coordinates from multiple sources. It works in Node.js and browser environments, supporting both AMD module loading and direct script inclusion. Developers should choose this if they are integrating Baidu SDK data with other mapping systems, or combining location data from iOS native libraries, Android devices, or services like Amap. The README identifies related implementations in Python, Go, and a command-line version, but makes no comparative claims about this JavaScript version.

The project maintains implementations across multiple programming languages and provides a command-line tool variant for direct GeoJSON conversion. The library is distributed through npm and documented with a project homepage.