Hi there, KarenA1212.
If available, are you able to see other friend locations without any issues? If you share your location with your friend, are they able to see your location without any issues? Your answers can help start isolating where this issue might be coming from.
If you haven't yet, you could see if restarting your iPhone may help resolve this issue: Restart your iPhone - Apple Support Restarting can seem like a simple step, but sometimes it can help resolve issues.
Another step you can take is to ensure your iPhone is fully updated, to see if that may help resolve this as well. You can check for an update in Settings > General > Software Update. If there is an available update, you'll want to backup before updating as seen in here: How to back up your iPhone, iPad, and iPod touch - Apple Support
This article also shows how to update with a computer if that is your preferred method: Update your iPhone, iPad, or iPod touch - Apple Support
Take care!