Learning Bing Maps API
暫譯: 學習 Bing Maps API
Artan Sinani
- 出版商: Packt Publishing
- 出版日期: 2013-11-22
- 售價: $1,660
- 貴賓價: 9.5 折 $1,577
- 語言: 英文
- 頁數: 116
- 裝訂: Paperback
- ISBN: 1783550376
- ISBN-13: 9781783550371
海外代購書籍(需單獨結帳)
相關主題
商品描述
Bing Maps are a great resource and very versatile when you know how. And this book will show you how, covering everything from embedding on a web page to customizing with your own styles and geo-data.
Overview
- Display address information for any point on the map through the location-based REST services API
- Embed a map on a web page with a custom theme
- Geocode with Spatial Data APIs and display the information on the map
In Detail
Provided as a part of Microsoft's Bing suite of search engines, Bing Maps is a web mapping service powered by the Bing Maps for Enterprise framework. The need for geospatial data has increased dramatically in the last few years. Adding a mapping context to any location-based data is becoming more and more common, and businesses are embracing it to improve their user experience with new data richness.
Comprising of simple, follow-along examples, Learning Bing Maps API will show you how to use the many features of Bing Maps, from dropping a simple map on a web page, to fetching geospatial data from the Microsoft servers. Through the course of this book you will build a solid foundation for creating your own geo-applications.
Following the hands-on recipes of this book, you will build a different web app in each chapter as you communicate with different APIs provided by Bing Maps. You will build your own library of JavaScript modules that talk to the Microsoft Maps API.
You will create a custom theme for the map, with your own controls. Taking advantage of the global reach of Bing Maps, you will learn how to build a route scheduler for a delivery company in Madrid, Spain, and then you will discover how to create jobs on the Bing Maps servers for geocoding addresses in California, USA.
By the end of the book you will have learned everything you need to know to embed a map on a web page, with your own geo-data, or data obtained by the Bing Map Services.
What you will learn from this book
- Place a map on a page and customize its look and feel
- Perform a query using the coordinates of a point on a map
- Display a shape, polyline, pin, or infobox when users click on the map
- Query for route information between two or more points and show it on the map
- Parse the response to the API requests in JSON and XML formats
- Set up and monitor jobs for address geocoding, as well as parsing the response when the job is complete
- Fetch geographical information in the form of polygon strings for different levels of administrative areas, from postcodes to regions or countries
- Display user data on the map, such as electoral results, over a period of time
Approach
This is a practical, hands-on guide with illustrative examples, which will help you explore the vast universe of Bing maps.
Who this book is written for
If you are a developer who wants to learn how to exploit the numerous features of Bing Maps then this book is ideal for you. It can also be useful for more experienced developers who wish to explore other areas of the APIs. It is assumed that you have some knowledge of JavaScript, HTML, and CSS. For some chapters a working knowledge of .Net and Visual Studio is also needed.
商品描述(中文翻譯)
Bing 地圖是一個很棒的資源,當你知道如何使用時,它非常多功能。本書將教你如何使用,涵蓋從嵌入網頁到使用自己的樣式和地理數據進行自定義的所有內容。
概述
- 通過基於位置的 REST 服務 API 顯示地圖上任何點的地址信息
- 使用自定義主題在網頁上嵌入地圖
- 使用空間數據 API 進行地理編碼並在地圖上顯示信息
詳細內容
作為微軟 Bing 搜索引擎套件的一部分,Bing 地圖是一個由 Bing Maps for Enterprise 框架提供支持的網頁地圖服務。近幾年來,對地理空間數據的需求急劇增加。為任何基於位置的數據添加地圖上下文變得越來越普遍,企業正在利用這一點來改善用戶體驗,增強數據的豐富性。
《學習 Bing 地圖 API》包含簡單的跟隨示例,將向你展示如何使用 Bing 地圖的許多功能,從在網頁上放置一個簡單的地圖,到從微軟伺服器獲取地理空間數據。在本書的過程中,你將建立創建自己的地理應用程序的堅實基礎。
按照本書的實用食譜,你將在每一章中構建不同的網頁應用,與 Bing 地圖提供的不同 API 進行通信。你將建立自己的 JavaScript 模塊庫,與微軟地圖 API 進行交互。
你將為地圖創建自定義主題,並添加自己的控制項。利用 Bing 地圖的全球覆蓋範圍,你將學習如何為西班牙馬德里的配送公司構建路線調度器,然後你將發現如何在 Bing 地圖伺服器上創建任務,以便在美國加州進行地址的地理編碼。
到本書結束時,你將學會嵌入地圖到網頁上所需的所有知識,無論是使用自己的地理數據,還是通過 Bing 地圖服務獲得的數據。
你將從本書中學到的內容
- 在頁面上放置地圖並自定義其外觀和感覺
- 使用地圖上某點的坐標執行查詢
- 當用戶點擊地圖時顯示形狀、折線、釘子或信息框
- 查詢兩個或多個點之間的路線信息並在地圖上顯示
- 解析 API 請求的 JSON 和 XML 格式的響應
- 設置和監控地址地理編碼的任務,並在任務完成時解析響應
- 獲取以多邊形字符串形式的地理信息,涵蓋從郵政編碼到地區或國家的不同行政區域級別
- 在地圖上顯示用戶數據,例如選舉結果,隨時間變化
方法
這是一本實用的、動手操作的指南,配有示例,將幫助你探索 Bing 地圖的廣大宇宙。
本書的讀者對象
如果你是一名開發者,想學習如何利用 Bing 地圖的眾多功能,那麼這本書非常適合你。對於希望探索 API 其他領域的更有經驗的開發者來說,它也很有用。假設你對 JavaScript、HTML 和 CSS 有一定的了解。對於某些章節,還需要具備 .Net 和 Visual Studio 的工作知識。