package com.tencent.mm.plugin.appbrand.jsapi.g.a;

import com.tencent.mapsdk.raster.model.IndoorMapPoi;
import com.tencent.mapsdk.raster.model.MapPoi;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.jsapi.g.a.b.p;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.tencentmap.mapsdk.map.TencentMap.OnMapPoiClickListener;

class a$19 implements OnMapPoiClickListener {
    final /* synthetic */ a hNv;

    a$19(a aVar) {
        this.hNv = aVar;
    }

    public final void onClicked(MapPoi mapPoi) {
        AppMethodBeat.i(51168);
        if (this.hNv.hNd != null) {
            p pVar = new p();
            pVar.latitude = mapPoi.getPosition().getLatitude();
            pVar.longitude = mapPoi.getPosition().getLongitude();
            pVar.name = mapPoi.getName();
            if ((mapPoi instanceof IndoorMapPoi) && !bo.isNullOrNil(((IndoorMapPoi) mapPoi).getBuildingId())) {
                pVar.buildingId = ((IndoorMapPoi) mapPoi).getBuildingId();
                pVar.floorName = ((IndoorMapPoi) mapPoi).getFloorName();
            }
            this.hNv.hNd.a(pVar);
        }
        AppMethodBeat.o(51168);
    }
}
