CS) Informative
Maps on PDA-phones Chui Pui Ling Page 28
getMapFromCentamap Functionality To retrieve the map in GIF format from Centamap Input (Figure 18)
- Latitude
-
Longitude - Zoom Level Output GIF image with dimension of 800 x 600 pixels
Figure 18 Parameters required for the input of getMapFromCentamap 3.1.2. Maps manipulation and Coordinates Collection There are different ways to manipulate maps. The most common method is to apply the maps from Lands Department and draw the required maps layer by layer. The coordinates in HK Grid 80 format can then be mapped with different areas of the map.
On the other hand, such method is not being used in this project. Since SUNDAYLBS can return a specific map from centamap after the detection of the current location, the returned map can be applied directly. It not only shows the current location at the center point, but also it can be specified with different zoom levels. With
the direct use of the centamap, it is much convenient. However, verification of the returned map is required. To collect the coordinates with the address information, my first attempt is to collect all the coordinates on the required map. However, the collected address information is duplicated for different coordinates. This is because a building is represented as an area on a map and it covers an area of coordinates. It would
CS) Informative Maps on PDA-phones
Chui Pui Ling Page 29 cause problems in route finding since there is no unique coordinates to represent a building and the entrance of each building maybe required to define manually. Therefore, sampling method is used for collecting the coordinates. First of all, sample points are taken from a sample map. The samples are then mapped with HK Grid 80 coordinates.
With the coordinates, address information is retrieved via SUNDAY LBS [19]. This method is feasible because it is not necessary to consider all the coordinates on the map for route finding purpose and the mapping of coordinates to the map on the PDA-phone need not be very accurate. The following map (Figure 19) is used as an example in this project. The number shown in each node is the coordinate ID. It is a unique key of coordinates. Each coordinate ID consists of a standard coordinates in HK Grid 80 format as well as its corresponding address. The address information is retrieved from getGeoInfo of SUNDAY LBS web services [19].
CS) Informative Maps on PDA-phones
Chui Pui Ling Page 30 2
1 3
4 5
6 7
8 9
10 11 12 13 14 15 16 17 18 15 6
15 5
65 11 8
10 6
11 6
14 8
12 0
14 8
11 9
10 3
17 2
98 24 99 18 1
15 7
11 1
11 3
11 2
11 0
11 4
13 3
13 4
15 8
13 5
13 6
10 9
10 8
69 68 15 9
16 0
70 16 1
71 64 63 16 2
60 59 61 52 67 13 0
13 1
13 2
72 58 16 7
56 16 6
55 16 8
16 9
62 12 9
66 19 20 13 7
14 5
73 16 3
16 4
16 5
12 3
75 74 79 53 54 15 4
14 4
78 76 14 6
13 8
77 18 0
10 7
17 0
14 7
12 2
12 5
12 6
22 21 15 3
23 12 4
80 82 12 1
13 9
83 84 85 14 2
87 86 89 88 93 92 14 1
14 0
96 95 90 91 94 97 17 8
17 7
14 3
17 6
17 5
17 4
17 9
10 4
12 8
15 2
12 7
17 1
10 0
17 3
40 15 0
14 9
33 42 44 45 46 48 49 32 15 1
34 30 11 7
35 37 38 39 41 47 51 50
Share with your friends: