Skip to main content

Gaode Map Statement

Current situation:
Domestic map providers (Gaode, Tencent, Baidu) have notified developers that commercial use of their map services—where the usage directly or indirectly generates revenue—requires prior commercial authorization. This authorization must be renewed annually and is no longer offered as a free service. Currently, RC integrates with Gaode Map as its mapping service provider.

Impact:
Due to this policy update, applications must obtain commercial authorization from Gaode Map to continue using its services. Earlier SDK versions used Gaode Map App Keys not registered under RC's entity, posing a risk of service suspension by Gaode. This would restrict location message sending and real-time location sharing in apps, causing clients to fail in receiving location messages.

Solution:

  1. New SDK versions (5.12.2+) will automatically retrieve the Gaode Key from AndroidManifest.xml.
  2. For older versions, follow the instructions below to manually replace the Key.

Legacy Version Workaround (Pre-5.12.1)

  1. Extend AMap3DAdapter to implement a custom map adapter:
public class MyAdapter extends AMap3DAdapter {

@Override
public String getMapUrl(double latitude, double longitude) {
String mapKey="Gaode AppKey";
return "http://restapi.amap.com/v3/staticmap?location="
+ longitude
+ ","
+ latitude
+ "&zoom=16&scale=2&size=408*240&markers=mid,,A:"
+ longitude
+ ","
+ latitude
+ "&key="
+ mapKey;
}
}
  1. Set the adapter in the onCreate method of your Application class:
public class SealApp extends MultiDexApplication {
@Override
public void onCreate() {
LocationSDKManager.getInstance().setCustomAdapter(new MyAdapter());
}
}