Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCJ-02 GPS lost accuracy when get China Airports #109

Open
jyxjjj opened this issue Feb 20, 2024 · 0 comments
Open

GCJ-02 GPS lost accuracy when get China Airports #109

jyxjjj opened this issue Feb 20, 2024 · 0 comments

Comments

@jyxjjj
Copy link

jyxjjj commented Feb 20, 2024

I used this repo with Telegram Bot.
To send Inline Keyboard Buttons with multiple Map Apps' WebPage Version.
Just like this:

$button1 = new InlineKeyboardButton([
    'text' => 'Show In Google Maps',
    'url' => "https://www.google.com/maps?q={$airport['lat']},{$airport['lon']}",
]);
$button2 = new InlineKeyboardButton([
    'text' => 'Show In Apple Maps',
    'url' => "https://maps.apple.com/?ll={$airport['lat']},{$airport['lon']}&q={$airport['name']}",
]);
$button3 = new InlineKeyboardButton([
    'text' => ($airport['tz'] == 'Asia/Shanghai' ? '' : '[Unsupported] ') . 'Show In AMap',
    'url' => "https://ditu.amap.com/regeo?lat={$airport['lat']}&lng={$airport['lon']}&name={$airport['name']}",
]);

AS title said, China Always using GCJ-02 GPS location type.

So this repos' lat and lon always losing accuracy in different maps.

For example:
image
image
image

Different map gave different point.

I don't know if it is Google's issue that they doesn't support GCJ-02 GPS locations.

I am here to confirm if it is Google's issue or this database's.

And I want to know how to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant