| | |
| | | isMyLocationEnabled = true |
| | | uiSettings.isMyLocationButtonEnabled = false |
| | | setOnMyLocationChangeListener { |
| | | Log.e(Const.Tag, "出租车:lat:" + it.latitude + ",lon:" + it.longitude) |
| | | Log.e(Const.Tag, "当前定位:lat:" + it.latitude + ",lon:" + it.longitude) |
| | | IGoApplication.setLocation(it.latitude, it.longitude) |
| | | // IGoApplication.address = it.address |
| | | // IGoApplication.cityCode = it.extras.getString("adcode")?:"" |
| | |
| | | hadLoopRefresh = true |
| | | viewLifecycleOwner.lifecycleScope.launch { |
| | | while (true) { |
| | | delay(5000) |
| | | delay(10_000) |
| | | getDriverNum { _, data -> |
| | | val i = data?.optInt("number") ?: 0 |
| | | val t = getString(R.string.当前附近有n辆车可用, i) |