SD Static Maps Tutorial


http://www.streetdirectory.com/api/map/world.cgi

Above is the sample of world static map. You can passing parameters to the web link, to create more specific static map. The parameters than you can send are:

Attributes description
level level of map  
lon center longitude of map  
lat center latitude of map  
sizex width default is 400px
sizey height default is 400px
star 1 = display marker  
geolist list longitude and latitude  
nicon 1 = display icon for geolist  

Example:

To request a static map centered at coordinate 103.80722, 1.289442, you need to construct a URL below:

http://www.streetdirectory.com/api/map/world.cgi?level=12&lon=103.807226&lat=1.289442&sizex=353&sizey=300&star=1

The image shown below will be returned.



To request a static map where geolist are 103.80722, 1.289442 - 103.80752, 1.289942 - 103.80782, 1.290442 you need to construct a URL below:

if map center position and level not defined, it will auto adjust.

http://www.streetdirectory.com/api/map/world.cgi?geolist=103.80722,1.289442;103.80752,1.289942;103.80782,1.290442

The image shown below will be returned.

If nicon is set to 1, the image shown below will be returned.