Merge pull request #6094 from osmandapp/ShortenUrlForImageCards

Make HTTP smaller for mapillary photos
This commit is contained in:
Alexander Sytnyk 2018-09-26 11:11:41 +03:00 committed by GitHub
commit 81ee775309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -429,11 +429,11 @@ public abstract class ImageCard extends AbstractCard {
List<ImageCard> result = new ArrayList<>();
try {
final Map<String, String> pms = new LinkedHashMap<>();
pms.put("lat", "" + latLon.getLatitude());
pms.put("lon", "" + latLon.getLongitude());
pms.put("lat", "" + (float) latLon.getLatitude());
pms.put("lon", "" + (float) latLon.getLongitude());
Location myLocation = app.getLocationProvider().getLastKnownLocation();
if (myLocation != null) {
pms.put("myLocation", "" + myLocation.getLatitude() + "," + myLocation.getLongitude());
pms.put("mloc", "" + (float) myLocation.getLatitude() + "," + (float) myLocation.getLongitude());
}
pms.put("app", Version.isPaidVersion(app) ? "paid" : "free");
String preferredLang = app.getSettings().MAP_PREFERRED_LOCALE.get();