The Live Location feature allows you to share your real-time location for a specific amount of time. You can choose to share your live location with the participants of an individual or group chat. In your phone's Settings under privacy, tap location > turn on Location services. Then turn on WhatsApp.
You can control whether and how long to share your live location. You can also stop sharing your live location at any time.
Once stopped or expired, your live location will no longer be shared. However, participants in the chat who you shared your live location with will continue to see the initial live location you shared. This will appear as a static grayed-out image within the chat.
Note: You can turn off location permissions at any time by going to your phone's Settings. Under privacy, tap location > turn off WhatsApp. Then turn off Location services.