Page tree
Skip to end of metadata
Go to start of metadata


We recommend using scripts and styles only from our server. This ensures continuous integration and compliance of the master version with the version of application in use.

Copy links into <head> section:

<script src=""></script>
<link rel="stylesheet" href=""/>

Create a div to display the map. The map does not have default dimensions to make the process of integration easier with the site, if you do not give any properties responsible for height and width, map will not be visible!

<div id="gls_map" class="szybkapaczka_map" style="width:300px;height;300px"></div>

Then initialize GLS map plugin:

	// Language used in app - ('PL','EN') only avaiable right now
	lang: 'PL',

	// Parcels load in map, in normalize ISO-2 format - ('DE','PL','AT','DK','BE','IE') only available right now
	country_parcelshops: 'PL',
    // Element ID for init map
	el: 'gls_map',

	// Weight of parcel, required to define available parcelshops

	// Address to show nearest parcelshops on init map, this value could be zipcode or city with street and house number
	center_point: 'Example_city, example_street'
	// Source of tiles used in app - default false, means tiles are downloading from Open Street Map
	// If you want change it, make sure you have Mapbox API key from this page or Google Maps API key, depend which source should be used. 
	map_type: true,
	// If map_type property is true and you want to use Mapbox API, then you have to paste your Mapbox api key here
	mapbox_key: 'exmaple_api_key',
	// If map_type property is true and you want to use Google Maps API, then you have to paste you api key here
	google_maps_key: 'exmaple_api_key',

	// Turn on/off geolocation - boolean, false by default
	geolocation: true

Properties description table

Property nameRequiredDefault value
the center of the country approximately

Activate Google Maps API

If you want to use Google Maps within SzybkaPaczka plugin, you have to paste link to Google Maps with your API key into <head> section, before import SzybkaPaczka plugin!

<script type="text/javascript" src="<YOUR_API_KEY>"></script>

Handle selected "SzybkaPaczka" point

  • App on initialized creates a custom event, named 'get_parcel_shop', so the client can listen on it.

    Przykład 1
  • Second way to handle selected Parcel is create Parcel object and call to getParcelObject method on it.

    var m = new SzybkaPaczkaParcel();
        setInterval(function () {
            if (typeof result != 'undefined') {
                document.getElementById('result').innerHTML = JSON.stringify(m.getParcelObject());
        }, 100);

Structure of response object 

id  →  point ID, only required value which you have to used to communicate with ADE-Plus,

name  → name of a point,

open_hours  → array containing opening hours of a point, weekdays ordered from Monday as a "0" day. Every day of a week can contain more than two elements, which indicates a range of open hours,

country  → country of a point,

city  → city of a point,

postal_code → zipcode of a point,

phone → phone number of a point,

email → email address of a point.

All data are optional, except for ID, which is required for integration with ADE-Plus.

          "name":"Example name of point",
   "city":"Example City",
   "street":"Example street 15",
   "phone":"+48 000 000 000",

Notifications description 

The first type of a message about a point on the map is a planned break. The text is 5 days before the planned break. The point's functionality is not limited then. After 5 days, the point is marked as "temporarily disabled", and a message will appear informing you till when it is closed. You cannot perform any action at a given point except for acquiring basic information. Examples are shown below.

Examples of basic usage

Example map for PL

Example map for DE

Example map for AT

Example map for DK with Google Maps API

Example map for BE with Mapbox API

  • No labels