Hotels map

Hotels map

Widget "Hotels map" shows hotels on the map of a city or a place that tourists chose. To add "Hotels map" on your page go to "Hotels widget" in account page. First step: configure the size of the map.

1.jpg

Click on the link "Map example" to open the page with different design of Hotels map.

Use the advanced settings to customize the maps.

2.jpg

  • Location - the default place which will be displayed on the map (if not specified the system identify the location of geoip);
  • Locale - language on the map;
  • Host - the host address;
  • Additional marker - used for the convenience of the statistics;
  • Draggable - enable or disable moving the map with the mouse;
  • Disable zoom - enable a limit on the maximum approximation of map;
  • Scroll wheel - zooming with the mouse wheel;
  • Marker Size - sets the size of the icon that marks hotels on the map;
  • Map styled - select the color scheme of map;
  • Color scheme - design options and colors of markers on the map;
  • Embed code - code of widget to put it on your page.

Example of widget

Price Map API

Price Map: supported routes

Query

Method: GET.

URL: http://map.aviasales.ru/supported_directions.json?origin_iata=LED&one_way=false&locale=en

Query parameters

  • origin_iata – IATA code of the airport/city from which tickets are searched for. IATA code is shown by uppercase letters, for example MOW.
  • one_way – “true” for one-way tickets, “false” for round trips.
  • locale – Search language.

Response

{
"origin":{
	"iata":"LED",
	"name":"St Petersburg",
	"country":"RU",
	"coordinates":[
		30.315785,
		59.939039
		]
	},
"directions":[
{
	"direct":false,
	"iata":"USM",
	"name":"Koh Samui",
	"country":"TH",
	"coordinates":[
		100.0628,
		9.555315
		]
	}
}

Response parameters

  • iata – IATA code of the departure city.
  • name – Name of the departure city.
  • country – Country letter code.
  • coordinates – Coordinates of departure city.
  • directions – Route information.
    • direct – Whether non-stop flights are available.
    • name – Name of destination city.
    • country – Destination country.
    • coordinates – Coordinates.

Price Map: prices

Query

Method: GET.

URL: http://map.aviasales.ru/prices.json?origin_iata=LED&period=2014-12-01:season&direct=true&one_way=false&price=50000&no_visa=true&schengen=true&need_visa=true&locale=ru&min_trip_duration_in_days=13&max_trip_duration_in_days=15

Query parameters

  • origin_iata – IATA code for the point of departure. IATA code is shown by uppercase letters, for example MOW.
  • period – Period of dates to search for.
  • direct – Whether non-stop flights are available.
  • one_way – “true” for one-way tickets, “false” for round trips.
  • price – Highest ticket price.
  • no_visa – Payment not made with a Visa card.
  • schengen – Can the ticket be changed.
  • need_visa – Visa required (or not).
  • locale – Search language.
  • min_trip_duration_in_days – Shortest trip duration (in days).
  • max_trip_duration_in_days – Longest trip duration (in days). 

Response

[{
    "actual":true,
    "created_at":1408629708,
    "depart_date":"2014-12-29",
    "destination":"KJA",
    "distance":0,
    "number_of_changes":0,
    "return_date":"2015-01-11",
    "show_to_affiliates":true,
    "trip_class":0,
    "ttl":1408888908,
    "value":16840
},
{
    "actual":true,
    "created_at":1408618352,
    "depart_date":"2014-12-29",
    "destination":"VIE",
    "distance":0,
    "number_of_changes":0,
    "return_date":"2015-01-12",
    "show_to_affiliates":true,
    "trip_class":0,
    "ttl":1408877552,
    "value":13837
}]

Response parameters

  • show_to_affiliates – true: prices available to affiliates, false: price not available to affiliates.
  • trip_class – Trip class (1 – business class, 0 – standard).
  • destination – IATA code for the destination.
  • depart_date – Departure date.
  • return_date – Return date.
  • number_of_changes – Number of stops.
  • value – Flight cost.
  • created_at – Time and date of query creating (in unix timestamp format).
  • ttl (time-to-live) – Time and date at which the offer is living (in unix timestamp format).
  • distance – Distance between the departure and arrival points.
  • actual – Equals 0 or 1. 0 – price was found long ago and may be out of date. 1 – price was found recently and is current.

FAQ

How can I make a hot price map for my own site, like the map at wl.jetradar.com/map?

Set up White Label according to the instructions above. After configuration, a hot price map is available at the address avia.yourdomain.com/map.

Why are there different prices through Jetradar.com compared to White Label?

Jetradar queries dozens of agencies and airlines to get ticket prices. Not all agencies/airlines support affiliate markers, and we remove these agencies/airlines from our affiliates’ search results. (Please note that the number of agencies/airlines is rather small.) This means that, in some cases, prices found through an affiliate White Label may be slightly higher than on the Jetradar site.

Was this article helpful?

Have more questions? Submit a request