Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4479 6c8d7289-2bf4-0310-a012-ef5d649a1542
- Loading branch information
orbiter
committed
Feb 12, 2008
1 parent
00f5f91
commit a10f271
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import java.io.IOException; | ||
|
||
import de.anomic.http.httpHeader; | ||
import de.anomic.server.serverObjects; | ||
import de.anomic.server.serverSwitch; | ||
import de.anomic.ymage.ymageMatrix; | ||
import de.anomic.ymage.ymageOSM; | ||
|
||
public class osm { | ||
|
||
public static ymageMatrix respond(httpHeader header, serverObjects post, serverSwitch env) throws IOException { | ||
|
||
int zoom = 10; | ||
double lat = 47.968056d; | ||
double lon = 7.909167d; | ||
|
||
if (post != null) { | ||
zoom = post.getInt("zoom", zoom); | ||
lat = post.getDouble("lat", lat); | ||
lon = post.getDouble("lon", lon); | ||
} | ||
|
||
ymageOSM.tileCoordinates coord = new ymageOSM.tileCoordinates(lat, lon, zoom); | ||
return ymageOSM.getCombinedTiles(coord); | ||
} | ||
|
||
} |