How can I get the Northeast and Southwest coordinates of a Circle with a given center and radius? I can't find any solution anywhere. Currently, the Circle object doesn't have getLatLngBounds() nor getBounds() methods unlike before.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
Essentially copying and pasting antonio's answer:
You can use the
SphericalUtil.computeOffset
method from the Google Maps Android API Utility Library. To use it you need to the following dependency to yourbuild.gradle
:Then, you can calculate the northeast and southwest coordinates of your circle doing: