Support Tianditu provided by china government (It is Free)

Created on 25 June 2024, 5 months ago
Updated 26 June 2024, 5 months ago

Problem/Motivation

Baidu/amap/qq map don't have free use for company, RMB 50,000 / year is so expensive, so no customer of ours want to use it.
https://www.tianditu.gov.cn/ this is development by government, and it has so much free credit.

Feature request
Status

Closed: won't fix

Version

4.0

Component

Geolocation Field / Backend

Created by

🇨🇳China lawxen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lawxen
  • 🇩🇪Germany christianadamski Berlin, Germany

    I'm greeted by

    Sorry, your request has been intercepted because it appears to be an attack.

    Event ID:32-11-12-20240625123822-e8ac49e1

    If you are the webmaster, configure related parameters on the WAF console to allow your requests.

    If the website is not available outside China, development and testing will be impossible.

    Let's see, maybe it's temporary.

  • 🇨🇳China lawxen

    Hi @ChristianAdamski, I have tested that TIANDITU can't be used on USA and KOREA

  • 🇨🇳China lawxen

    This is my test method:

  • 🇨🇳China lawxen

    I just tested that it can't be used on Germany either. @ChristianAdamski

  • 🇩🇪Germany christianadamski Berlin, Germany

    I'm confused.

    The maps do not display the countries Korea, Germany, USA? Or the website is not available from these countries?

    Because I simply click on your link above for the main website, and I am instantly blocked with above message. I have therefor no idea what there website looks like, I can't read documentation or API and I could not do anything to fix any issues.

    I also don't know, if the maps would work outside China?

    I'm ok with this generally being focused on chinese users, but everybody in the Drupal community should at least be able to access it.

    But again, maybe it's just my IP that's blocked for bad luck?

  • 🇩🇪Germany christianadamski Berlin, Germany

    Just tested a separate IP, same effect.

  • 🇩🇪Germany christianadamski Berlin, Germany

    If you have Astrill or any other VPN available, you could try yourself

  • 🇨🇳China lawxen

    I have confirmed that Tianditu website & API can't be avaliable on Germany/USA/KOREA.
    So this is a unique module for China.
    Then:

    1. Add submodule to geolocation.
    2. Make a new separate module which depends on geolocation.

    Which option do you suggest?

  • 🇨🇳China lawxen

    And which submodule should I copy from on 4.x?

  • 🇩🇪Germany christianadamski Berlin, Germany

    Hmm. I suggest a separate module. Then you can work on it without needing my approval and I don't feel responsible for something I can't fix myself.

    Or ask them to open there documentation worldwide :)

  • Status changed to Closed: won't fix 5 months ago
  • 🇨🇳China lawxen

    Creted an separate module https://www.drupal.org/project/geolocation_tian which copy from geolocation_baidu

    Has made it work with 2 functions:
    1. Views Location Maker
    2. Zoom Control (Position: Left Top or Right Top don't work)

    Many other works need to be down later.

Production build 0.71.5 2024