Fix float format
This commit is contained in:
parent
1b85b5a732
commit
c914e18fc1
1 changed files with 5 additions and 5 deletions
|
@ -51,11 +51,11 @@ public class OsmAndHttpServer extends NanoHTTPD {
|
|||
|
||||
public String getUrl() {
|
||||
RotatedTileBox rtb = mapActivity.getMapView().getCurrentRotatedTileBox();
|
||||
double lat = rtb.getLatitude();
|
||||
double lon = rtb.getLongitude();
|
||||
double z = rtb.getZoom();
|
||||
return "http://" + getHostname() + ":" + getListeningPort()
|
||||
+ "/?lat=" + lat + "&lon=" + lon + "&zoom=" + z;
|
||||
float lat = (float) rtb.getLatitude();
|
||||
float lon = (float) rtb.getLongitude();
|
||||
int z = rtb.getZoom();
|
||||
return String.format("http://%s:%d/?lat=%.4f&lon%.4f&zoom=%d", getHostname(), getListeningPort(),
|
||||
lat, lon, z);
|
||||
}
|
||||
|
||||
private NanoHTTPD.Response routeApi(NanoHTTPD.IHTTPSession session) {
|
||||
|
|
Loading…
Reference in a new issue