Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Google Maps JavaScript API Cookbook
Google Maps JavaScript API Cookbook

Google Maps JavaScript API Cookbook: This book will help you use the amazing resource that is Google Maps to your own ends. From showing maps on mobiles to creating GIS applications, this lively, recipe-packed guide is all you need.

eBook
€20.98 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Google Maps JavaScript API Cookbook

Chapter 2. Adding Raster Layers

In this chapter, we will cover:

  • Styling of Google base maps
  • Using different tile sources as base maps
  • Adding tile overlays to maps
  • Adding image overlays to maps
  • Changing the transparency of overlays
  • Creating a heat map
  • Adding a traffic layer
  • Adding a transit layer
  • Adding a bicycling layer
  • Adding weather and cloud layers
  • Adding a Panoramio layer

Introduction

This chapter will cover everything about working with raster layers. The collection of recipes is composed of the most common use cases of handling raster layers in the Google Maps JavaScript API.

Raster is one of the prime data types in the GIS world. The Google Maps JavaScript API presents an extensive set of tools to integrate external sources of imagery. Also, the API enables application developers to change the styling of its base maps with a palette of practically unlimited array of choices.

This chapter will introduce you to changing the styling of base maps and will then continue by covering how to display raster data, focusing on external TMS (Tile Map Services), where the raster layer is composed of organized tiles in the map display (for example, OpenStreetMap). Lastly, there are a number of raster layers (traffic, transit, weather, bicycle, and Panoramio) that can be presented on the map by integrating them with the Google Maps JavaScript API.

Styling of Google base maps

Google base maps show a variety of details such as water bodies (oceans, seas, rivers, lakes, and so on), roads, parks, and built-up areas (residential, industrial, and so on). As you have observed in the first chapter, all these are shown in predefined cartographic parameters. With the styling capability of base maps, you have a virtually unlimited set of choices in terms of the cartographic representation of base maps.

In your web or mobile applications, it is very beneficial to have a diversity of representations (in all different color schemes with different emphasis) in order to keep your audience more involved; maps blend neatly into your website design.

This recipe will guide you through the process of changing the styling of base maps.

Getting ready

We can continue from the Creating a simple map in a custom DIV element recipe from Chapter 1, Google Maps JavaScript API Basics, as we do not need to recall the basics of creating the map.

How to do it…...

Using different tile sources as base maps

Google base maps display an immense amount of content (local POI information, road hierarchies, driving directions, and so on) and a large styling palette. In addition, it provides tools to change the styling of its base maps in its JavaScript API.

Moreover, you can have your other map tile sources displayed as base maps in the Google Maps interface. This feature enables you to display your tiled maps in the Google Maps interface, utilizing most of the tools of the Google Maps JavaScript API.

In this recipe, we will go through displaying OpenStreetMap tiles as base maps in the Google Maps interface, using the JavaScript API.

Getting ready

We can continue on from the Creating a simple map in a custom DIV element recipe from Chapter 1, Google Maps JavaScript API Basics, as we do not need to reiterate the basics of getting the map on screen.

How to do it…

With this recipe, you will see the OpenStreetMap tiles on top of Google Maps after completing...

Adding tile overlays to maps

Google Maps has a selection of base maps as street maps and satellite imagery, which we discussed in the previous chapter; we will now discuss how additional base maps can be introduced to the Google Maps interface.

We can also use tiled map services as overlays to the base maps. By overlay, you can think of a separate sheet of map tiles put over the base maps. You can observe the details of the overlaid layer together with the base map. Examples of overlay layers might be of the boundaries of areas of interest, special POIs that are not found in the Google Maps' base maps, statistical results to be presented with aerial or point styling, and so on.

The tile map services that are used as base maps can technically be used as overlays in the Google Maps JavaScript API. However, using these tile map services (such as OpenStreetMaps) as overlays results in blocking the original base maps of Google Maps, as there would be no blank space in the map of overlaid...

Adding image overlays to maps

Overlaying tiled map services is a big capability on hand. It enables a variety of tiled map services that come into the scene using the Google Maps API. The existing stock of tiled map services are, in general, global map services, which means that they cover the whole world or at least some continent/country.

We may be interested, for instance, to overlay a map for a university campus, having its rough plan on hand. Or, we may have found some map of a historical sheet and want to make use of it. Or, we may have an internal building plan of a particular building and we would like to see this building plan on top of Google Maps.

Is it possible to overlay these microscale images on top of Google Maps? Yes, certainly! In fact, technically, there would be no difference between using campus plans or building plans instead of tiled map services as overlays. The important thing to note is that those plan sheets should be aligned as tiles similar to the tiled map services...

Introduction


This chapter will cover everything about working with raster layers. The collection of recipes is composed of the most common use cases of handling raster layers in the Google Maps JavaScript API.

Raster is one of the prime data types in the GIS world. The Google Maps JavaScript API presents an extensive set of tools to integrate external sources of imagery. Also, the API enables application developers to change the styling of its base maps with a palette of practically unlimited array of choices.

This chapter will introduce you to changing the styling of base maps and will then continue by covering how to display raster data, focusing on external TMS (Tile Map Services), where the raster layer is composed of organized tiles in the map display (for example, OpenStreetMap). Lastly, there are a number of raster layers (traffic, transit, weather, bicycle, and Panoramio) that can be presented on the map by integrating them with the Google Maps JavaScript API.

Styling of Google base maps


Google base maps show a variety of details such as water bodies (oceans, seas, rivers, lakes, and so on), roads, parks, and built-up areas (residential, industrial, and so on). As you have observed in the first chapter, all these are shown in predefined cartographic parameters. With the styling capability of base maps, you have a virtually unlimited set of choices in terms of the cartographic representation of base maps.

In your web or mobile applications, it is very beneficial to have a diversity of representations (in all different color schemes with different emphasis) in order to keep your audience more involved; maps blend neatly into your website design.

This recipe will guide you through the process of changing the styling of base maps.

Getting ready

We can continue from the Creating a simple map in a custom DIV element recipe from Chapter 1, Google Maps JavaScript API Basics, as we do not need to recall the basics of creating the map.

How to do it…

The end...

Using different tile sources as base maps


Google base maps display an immense amount of content (local POI information, road hierarchies, driving directions, and so on) and a large styling palette. In addition, it provides tools to change the styling of its base maps in its JavaScript API.

Moreover, you can have your other map tile sources displayed as base maps in the Google Maps interface. This feature enables you to display your tiled maps in the Google Maps interface, utilizing most of the tools of the Google Maps JavaScript API.

In this recipe, we will go through displaying OpenStreetMap tiles as base maps in the Google Maps interface, using the JavaScript API.

Getting ready

We can continue on from the Creating a simple map in a custom DIV element recipe from Chapter 1, Google Maps JavaScript API Basics, as we do not need to reiterate the basics of getting the map on screen.

How to do it…

With this recipe, you will see the OpenStreetMap tiles on top of Google Maps after completing the given...

Adding tile overlays to maps


Google Maps has a selection of base maps as street maps and satellite imagery, which we discussed in the previous chapter; we will now discuss how additional base maps can be introduced to the Google Maps interface.

We can also use tiled map services as overlays to the base maps. By overlay, you can think of a separate sheet of map tiles put over the base maps. You can observe the details of the overlaid layer together with the base map. Examples of overlay layers might be of the boundaries of areas of interest, special POIs that are not found in the Google Maps' base maps, statistical results to be presented with aerial or point styling, and so on.

The tile map services that are used as base maps can technically be used as overlays in the Google Maps JavaScript API. However, using these tile map services (such as OpenStreetMaps) as overlays results in blocking the original base maps of Google Maps, as there would be no blank space in the map of overlaid tile map...

Adding image overlays to maps


Overlaying tiled map services is a big capability on hand. It enables a variety of tiled map services that come into the scene using the Google Maps API. The existing stock of tiled map services are, in general, global map services, which means that they cover the whole world or at least some continent/country.

We may be interested, for instance, to overlay a map for a university campus, having its rough plan on hand. Or, we may have found some map of a historical sheet and want to make use of it. Or, we may have an internal building plan of a particular building and we would like to see this building plan on top of Google Maps.

Is it possible to overlay these microscale images on top of Google Maps? Yes, certainly! In fact, technically, there would be no difference between using campus plans or building plans instead of tiled map services as overlays. The important thing to note is that those plan sheets should be aligned as tiles similar to the tiled map services...

Changing the transparency of overlays


The Google Maps JavaScript API supports third-party tiled map services or images to be overlaid on top of base maps. However, there is a problem with the overlay layers; they come on top of base maps and make them invisible. Of course, you can turn them on or off according to your choice; however, this is not a solution if you want to see the base maps together with the overlay layers.

In fact, you can just modify the opacity of the overlay layers to see the base maps and the overlay layers.

This recipe is focused on changing the transparency of the overlay layers introduced in the last two recipes.

Getting ready

We can use the code introduced in the Adding tile overlays to maps recipe of this chapter and modify it a little to achieve the result. Be sure to copy the code of the recipe first.

How to do it…

You will be able to make your overlay layer transparent after completing the one-step operation presented in the following code:

  1. Just change the osmMapType...

Creating a heat map


The Google Maps API lays the foundation for several map-based analysis, including heat maps. A heat map is a form of visualization that shows the concentration of points through gradient color scales.

Points, in this respect, may be the representation of any geographically represented items such as hospitals, houses, schools, measured values of sea pollution tagged with coordinates, the location of waste collection bins, and so on. The list is practically infinite.

Heat maps are very important inputs for geostatistics. In a map display, you capture the intensity in a moment compared to the sole display of the locations of points:

The preceding screenshot depicts the location of the OpenStreetMap points layer in İstanbul, Turkey, as of July. You might just get an idea of where the concentration of points is from the preceding screenshot, but the following screenshot shows it more clearly. The most intensely concentrated locations are colored in red, whereas lesser concentrated...

Left arrow icon Right arrow icon

Key benefits

  • Add to your website's functionality by utilizing Google Maps' power
  • Full of code examples and screenshots for practical and efficient learning
  • Empowers you to build your own mapping application from the ground up

Description

Day by day, the use of location data is becoming more and more popular, and Google is one of the main game changers in this area. The Google Maps JavaScript API is one of the most functional and robust mapping APIs used among Geo developers. With Google Maps, you can build location-based apps, maps for mobile apps, visualize geospatial data, and customize your own maps.Google Maps JavaScript API Cookbook is a practical, hands-on guide that provides you with a number of clear, step-by-step recipes that will help you to unleash the capabilities of the Google Maps JavaScript API in conjunction with open source or commercial GIS servers and services through a number of practical examples of real world scenarios. This book begins by covering the essentials of including simple maps for Web and mobile, adding vector and raster layers, styling your own base maps, creating your own controls and responding to events, and including your own events.You will learn how to integrate open source or commercial GIS servers and services including ArcGIS Server, GeoServer, CartoDB, Fusion Tables, and Google Maps Engine with the Google Maps JavaScript API. You will also extend the Google Maps JavaScript API to push its capabilities to the limit with additional libraries and services including geometry, AdSense, geocoding, directions, and StreetView.This book covers everything you need to know about creating a web map or GIS applications using the Google Maps JavaScript API on multiple platforms.

Who is this book for?

Google Maps JavaScript API Cookbook is for developers who wish to learn how to do anything from adding a simple embedded map to a website to developing complex GIS applications with the Google Maps JavaScript API. It is targeted at JavaScript developers who know how to get by but who are also seeking the immediacy of recipe-based advice.

What you will learn

  • Create simple maps and display them on mobile devices
  • Style your own base maps
  • Add your own tile maps as base maps or overlays
  • Show vector layers on base maps in various types such as points, polylines or polygons
  • Parse various vector formats such as KML, GeoRSS, GeoJSON, WKT, and so on
  • Create a custom UI and customize your own ways to control it
  • Respond to various events including mobile gestures
  • Add additional libraries to extend the capabilities of the API
  • Work with Google Services for geocoding, directions, StreetView, and so on
  • Integrate open source or commercial GIS servers or services
Estimated delivery fee Deliver to Slovakia

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 26, 2013
Length: 316 pages
Edition : 1st
Language : English
ISBN-13 : 9781849698825
Vendor :
Google
Category :
Languages :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Slovakia

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Publication date : Dec 26, 2013
Length: 316 pages
Edition : 1st
Language : English
ISBN-13 : 9781849698825
Vendor :
Google
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 120.97
PostGIS Cookbook
€41.99
Google Maps JavaScript API Cookbook
€36.99
Learning Geospatial Analysis with Python
€41.99
Total 120.97 Stars icon
Banner background image

Table of Contents

9 Chapters
1. Google Maps JavaScript API Basics Chevron down icon Chevron up icon
2. Adding Raster Layers Chevron down icon Chevron up icon
3. Adding Vector Layers Chevron down icon Chevron up icon
4. Working with Controls Chevron down icon Chevron up icon
5. Understanding Google Maps JavaScript API Events Chevron down icon Chevron up icon
6. Google Maps JavaScript Libraries Chevron down icon Chevron up icon
7. Working with Services Chevron down icon Chevron up icon
8. Mastering the Google Maps JavaScript API through Advanced Recipes Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(8 Ratings)
5 star 37.5%
4 star 50%
3 star 12.5%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Tanongkiet Upanno Jun 18, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I love this kind of IT book. Since it is not only explain the application features by example but also explain each coding in the example.
Amazon Verified review Amazon
VitoshAcademy May 04, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
[Disclosure - I have a blog, reviewing books and I write reviews there - [...] I have also written three articles, concerning some of the code in the book there.I was not asked by the authors or anyone to review the book, I just needed a book, concerning Google Maps API and this one was quite a good match. At lеast prior to reading the book I had almost no experience with Java Script]What this book has to offer to a reader who has almost NO experience with Java Script (like me, for example)? Actually, pretty much EVERYTHING you need to know. It starts with the ABC of Java Script and Google API, giving you one really simple example, how to build a map. In the next examples, everything build upon this first example is explained in huge details. Sometimes, I think that the authors go to much into details, but this is probably a good thing! :)What I liked - the book is really a "CookBook" - you do not need to read it page by page, chapter by chapter, but you can simply read the first chapter and the introduction and then you may go to any page, to any recipe and use it as a pro :) This is really a big plus for beginners, who do not have full 3 days to read it properly and test the code in it.What you should do after buying the book - the examples are quite well built, but they will not function on your pc immediately - that is because the google api code, which has some limitations. Thus you should go and make your own account at code.google.com and change the code from the book at that place. Fortunately, the procedure is well described.What is inside? Pretty much anything a beginner in Google API & Java Script would dream about. The table of contents is really well composed for beginners.So, my last word is the following - if you are a beginner in either Java Script or Google API - go for the book, it is suited for you! No specific pre-knowledge is required, indeed (probably, just some really basic knowledge in programming)! If you are wondering whether this book is for you, you may go to the book's website and browse the examples, which are generously provided there - at the site of the book, go to the support tab and click "Download Now". Then the code is fully at your disposal!Thank you for reading the review! I hope you have enjoyed it!Regards,vitoshacademy.com
Amazon Verified review Amazon
ervin kenan aydin Jan 31, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I have the Kindle Version of this book. It has easy to understand examples and clear explanations. I loved it!
Amazon Verified review Amazon
Cristian Scutaru Sep 16, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
In the true spirit of a "cookbook" publication, many many samples for the most recent Google Maps API.
Amazon Verified review Amazon
Fernando Doglio Mar 12, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Disclosure: I was asked by the publisher to review this book.The book“Google Maps JavaScript API Cookbook” is relatively a short book, it’s full of, like the name of the book suggests, recipes to work with the Google Maps API.Both authors, Alper Dincer and Balkan Uraz share a MS degree in Geographical Sciences and have over 10 years of experience working on Geographic Information Systems. So it’s safe to say they know their GIS. That being said, this is a programming cookbook, so the quality of the recipes is not assured.The badLet’s first start with the bad, or the not-so-good to be honest.Like I said before, the book’s authors are experts when it comes to Geographical Systems, and have worked in several Geo related projects over the last 10 years, but it shows that they are not experienced programmers.The recipes do their work, don’t get me wrong, but their code is not the best, they just don’t follow regular best practices.The entire book could’ve been thought out to end up developing a small framework to work with Google Maps API. Instead, the recepies’ code are only related to that recepie’s task instead. Leaving the reader with a bunch of individual examples and a lot of repeated code.The other programming related issue I had with this book, was that the authors kept talking about creating classes. If you’ve used JavaScript for a while, you’d know that that’s not entirely right, actually, it’s pretty misleading to the less versed developer. I know this isn’t a JavaScript-heavy book or anything like that, but they could’ve at least bothered to get the names right.The goodYeap, that’s right, that’s about all that really “bothered” me from the book. To be honest, this book is a really useful reference manual.It’s quite easy to read, each example is easily understood and very well explained. You’ll probably find yourself coming back to it, just to quickly check how something was done.Call me skeptic, but I had my doubts about the cookbook format of it. I was afraid that the lack of technical depth about the Google Maps API would hurt and hinder my learning. On the contrary, this gave me a super quick, yet complete, overview of what I could possibly accomplish with this powerful API.I had already done some easy and mid-level stuff with the API but by the end of the book, I had learned how to fully customize the map, load external data and use the services provided by the API.Would I recommend it?Yes I would, if you’re just starting, get the book and learn all you can eventually accomplish with it. If you’ve already worked with the API, get it anyways, you’ll end up learning a few tricks on the way.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela