Map Util
This is a utility class that performs various calculations related to maps. All methods are static so an instance of this class should not be created.
Functions
Link copied to clipboard
Link copied to clipboard
Averages the location for a list of coordinates
Link copied to clipboard
Calculates the distance between two LatLng coordinates.
Link copied to clipboard
Calculates the heading (bearing) between two coordinates
Link copied to clipboard
Calculates offset location given source location, heading (bearing), and distance.
Link copied to clipboard
Link copied to clipboard
Calculates the tile bounds on a mercator projection given an x, y, and zoom.
Link copied to clipboard
Combine multiple coordinate bounds into a single one