Added methods to calculate optimal map size given a geo boundary.

- From zoom level 20 to 1, once find a size that contains the whole boundary, then the size will be used to retrieve map image from google

#story[928]
This commit is contained in:
Haoming Yin
2017-05-15 19:57:23 +12:00
parent 4fe4ac1079
commit 8f93956ff1
6 changed files with 75 additions and 24 deletions
@@ -1,5 +1,9 @@
package seng302.models.map;
/**
* A class represent Geo location (latitude, longitude).
* Created by Haoming on 15/5/2017
*/
class MapGeo {
private double lat, lng;