การคำนวณปริมาณการใช้งานหรือจำนวน Transaction
การคำนวณปริมาณการใช้งานหรือจำนวน Transaction สำหรับการใช้บริการแผนที่ออนไลน์ NOSTRA Map มีรูปแบบการคำนวณ 2 แบบ ได้แก่
1. คำนวณจากการเรียกดูภาพแผนที่ฐาน (Basemap)
2. คำนวณจากการเรียกใช้บริการอื่น ๆ
1. คำนวณจากการเรียกดูภาพแผนที่ฐาน (Basemap)
สำหรับการใช้บริการแผนที่ฐาน (Basemap) ใน 1 page view โดยปกติผู้ใช้จะเรียกดูภาพแผนที่โดยการย่อ/ขยาย (Zoom in/Zoom Out) และ เลื่อนภาพ (Pan) ซึ่งในการใช้งานแต่ละครั้งจะเกิดกระบวนการร้องขอภาพแผนที่ฐานไปยัง Server ซึ่งกระบวนการดังกล่าวระบบจะทำการจัดเก็บจำนวน Transaction ไว้เพื่อตรวจสอบสิทธิ์ปริมาณการใช้งานของผู้ร้องขอหรือแอพพลิเคชั่น
การแสดงภาพแผนที่ฐาน (Basemap) ใน 1 page view จะมีการโหลดภาพแผนที่หลาย ๆ ภาพมาเรียงต่อกัน ซึ่งแต่ละภาพจะเรียกว่าแผนที่ 1 Tile (Map Tile) ซึ่งวิธีการจัดเก็บ Transaction จะคำนวณจากจำนวน Map Tile ที่ถูกเรียกในการแสดงภาพแผนที่ โดย ภาพแผนที่ 8 Tile จะถูกนับเป็น 1 Transaction
สำหรับภาพแผนที่ 1 Tile ของบริการภาพแผนที่ฐานแบบปกติ (Basemap) สำหรับการแสดงบนหน้าจอคอมพิวเตอร์ จะมีขนาด 256x256 pixel ค่า resolution 96 dpi และสำหรับแผนที่ฐานความละเอียดสูง (HD Basemap) สำหรับแสดงผลบนอุปกรณ์มือถือจะมีขนาด 256x256 pixel ค่า resolution 192 dpi
ดังนั้นจำนวน Transaction ของการแสดงแผนที่ฐานจะแปรผันตามขนาดพื้นที่การแสดงแผนที่บนหน้าจอของแอพพลิเคชั่น กล่าวคือยิ่งขนาดพื้นที่ในการแสดงแผนที่บนหน้าจอมีขนาดใหญ่ จำนวน Tile หรือจำนวน Transaction ของการใช้งานแผนที่ก็จะมากขึ้นตามไปด้วย ดังตัวอย่างการคำนวณด้านล่าง
ตัวอย่างแสดงการคำนวณ Transaction กรณีแสดงแผนที่แบบ Full Screen บนหน้าจอขนาดต่าง ๆ
PC Monitor ขนาด 1024x768 = 12 Tiles = 2 Transactions
PC Monitor ขนาด 1600x900 = 28 Tiles = 4 Transactions
iOS Smartphone ขนาด 750x1334 = 18 Tiles = 3 Transactions
Android Smartphone ขนาด 720x1280 = 15 Tiles = 2 Transactions

2. คำนวณจากการเรียกใช้บริการ Network Services
วิธีการคิด Transaction จากการเรียกใช้บริการ Network Services ที่ประกอบด้วย Route, Service Area, Closest Facility จะคิด Transaction ตามรายละเอียดด้านล่าง :
การคำนวณ Route Service
จำนวน Transcation = |
(จำนวนจุดแวะ (Stops) – 1) |
|
2 |
การคำนวณ Service Area Service
จำนวน Transcation = |
จำนวนสิ่งอำนวยความสะดวก (Facility) |
การคำนวณ Closest Facility Service
จำนวน Transcation = |
จำนวนสิ่งอำนวยความสะดวก (Facility) |
|
2 |
** กรณีคำนวณจำนวน Transaction ได้เป็นเลขทศนิยม ระบบจะนับเป็นจำนวนเต็ม
3. คำนวณจากการเรียกใช้บริการอื่นๆ
วิธีการคิด Transaction จากการเรียกใช้บริการอื่น ๆ ของ NOSTRA Map Services จะคำนวณจากการร้องขอข้อมูล 1 ครั้งไปยัง Server เช่น การเรียกใช้บริการค้นหาสถานที่ (Find Landmark) 1 ครั้ง หรือ การเรียกใช้บริการระบุตำแหน่ง (Identify Service) 1 ครั้ง จะคิดเป็น 1 Transaction
การคำนวณปริมาณการใช้งานหรือจำนวน Transaction
ทั้งนี้นักพัฒนาหรือผู้ใช้บริการ NOSTRA Map Services สามารถตรวจสอบปริมาณการใช้งานหรือจำนวน Transaction ย้อนหลังได้จากเว็บไซต์ https://console.nostramap.com. ซึ่งระบบจะทำการสรุปปริมาณการใช้งานของแต่ละวันในเวลา 10.00 น. ของวันถัดไป
The Calculation of Amount of Transaction
Two types of calculations of amount of transaction for NOSTRA online mapping services as follows
1. Calculating by browsing Basemap
2. Calculating by using other services
1. Calculating by browsing Basemap
Generally, users will browse the map by minimizing or enlarging (Zoom in/Zoom out) and panning. This transaction allows the users to request images of Basemap to the server. From this process, the system will record the amount of transaction in order to check the amount of user's request and application.
Basemap in one page view will dowload multiple map images into tiles. Each image is called one tile (Map Tile). The system will store amount of transaction by calculating the number of map tile. The map tile is shown by map browsing. Eight map tiles are counted as one Transaction.
For displaying one tile of Basemap image on a computer screen, the size is 256x256 pixel and the resolution is 96 dpi. For displaying HD Basemap on mobile devices, the size is 256x256 pixel and the resolution is 192 dpi.
The amount of transaction of Basemap is correlated with the size of the map display on the screen of the application. In other words, the larger the area in the map display on the screen, the more Tile or Transaction of mapping application. The examples of calculation is provided below.
Examples of calculation of amount of transaction on the multiples screen displays in full screen size.
PC Monitor Size 1024x768 is 12 Tiles which is 2 Transactions
PC Monitor Size 1600x900 is 28 Tiles which is 4 Transactions
iOS Smartphone Size 750x1334 is 18 Tiles which is 3 Transactions
Android Smartphone Size 720x1280 is 15 Tiles which is 2 Transactions

2. Calculating by using network services
The calculation of amount of transaction by using network services that consist of Route, Service Area, and Closest Facility will be calculated from the request of data to the server as below :
Route Service Calculation
Transcation Count = |
(Stops – 1) |
|
2 |
Service Area Service Calculation
Transcation Count = |
Facility Count |
Closest Facility Service Calculation
Transcation Count = |
Facility Count |
|
2 |
** In case of transaction value is calculated as decimal, the result shall be counted as an integer.
3. Calculating by using other services
The calculation of amount of transaction by using other services of NOSTRA Map Services will be calculated from the request of data to the server. For example, requesting of location searching (Find Landmark) or requesting Identifying Service 1 time will be counted as 1 Transaction.
Monitoring usage or the amount of Transaction.
To monitor usage or the amount of transaction, the developers or NOSTRA Map Services’ users can check from the website https://console.nostramap.com. The system will count transaction each day at 10:00 am. In the following day.