How to Do Everything with Web 2.0 Mashups phần 10

và vv. ItemSearch các thông số khác cho phép bạn kết quả phân loại, xác định truy vấn phức tạp, và một giới hạn phạm vi giá. Bạn cũng có thể sử dụng các thông số như Tiêu đề, tác giả, Từ khoá, và như thế để tạo ra các truy vấn | 280SimpHolWO lrDd ergsythng SplhWh reỡ sVersion - http How to . . . Decide on Your Mashup s Objective Identify the Data and the Keys Get Access to the Data Design the User Interface Implement the Mashup Implement the Starting Page This last chapter brings together two complex APIs Google mapping and eBay searching. It has the same structure as all the mashups you have already seen and the APIs were already discussed. Creating mashups is just a matter of deciding what specific insight you have about how to combine or display information and then applying the standard mashup structures to that idea. Decide on Your Mashup s Objective This mashup lets you search eBay for items using keywords. When it finds results it returns them in an XML document. From that document it extracts the title of each item and its price as well as the location of the seller. These items are then mapped on a Google map with markers providing that information as well as a link to the actual eBay listing page for the item. Identify the Data and the Keys The data come from eBay and use the Google mapping API. This is an example and it makes some assumptions that are not valid in real life. For example the mapping API is relying on . ZIP codes. Other postal codes as well as items with incorrect postal codes should be omitted or shown in a separate table. Also you might want to trap errors in processing by checking the Ack element of the returned XML. Get Access to the Data As noted in the previous chapter you need various keys to access the eBay API. You also need your Google access key for the mapping API. Simpo PDF Merge and Split UnregctereWersionrphtWOWWiStmplOPdftCOm 281 Design the User Interface The mashup is shown in Figure 19-1. The eBay data are only displayed inside the markers. If you want you could add another section to the page so the text of the listings is displayed above or below the map. The eBay Google maps mashup FIGURE 19-1 19 282SimpHolWO lrDd

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
3    450    2    02-07-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.