Haritalar API

Ctrl öncekisonraki Ctrl

Yandex.Maps API

Yandex.Maps is a search and information service that provides users with maps of major cities in Turkey, the United States, Russia, Ukraine, Belarus, Kazakhstan, and western European countries, along with current traffic data, subway maps, and additional features.

Users can embed Yandex maps or their own custom maps on their web pages. For this purpose, we have created the free Yandex.Maps API and documentation.

Yandex maps and custom maps

Interactive and static maps

Objects on the map

Events

Search on a map

Determining location

Planning driving routes

Data exchange using XML

Terms of use and restrictions

Yandex maps and custom maps

The Yandex.Maps API lets you manipulate any maps, meaning images of any area or object containing points that correspond to specific two-dimensional coordinates.

Users who are interested in viewing different parts of the world, and in particular Russia, the former Soviet Union, Turkey, and the USA, can use area images provided by Yandex.

On the roadmap, an area is shown as a drawing without excess details, and symbols and names mark geographical objects. The satellite map is made from satellite and aerial photographs of an area. In the hybrid view, the satellite map is used, but the borders of countries and regions, road systems, and names of geographical objects are shown on top of it.

Yandex maps are based on data provided by dozens of separate suppliers. The information received is subject to detailed inspection for quality, completeness, detail, and accuracy.

The Yandex.Maps service has a sizable audience that can provide feedback . By listening to comments and suggestions from users who pore over the maps and compare them with the actual areas, we are able to constantly improve the quality of Yandex maps.

The Yandex.Maps API is an excellent tool for creating custom electronic interactive maps such as a diagram of an office building or underground infrastructure, the layout of a ship, or simply a navigator for high-resolution photographs.

Interactive and static maps

The Yandex.Maps API lets you generate two types of maps: interactive and static.

Interactive maps allow interaction with the user by reacting to certain controls, such as when the user presses a mouse button or a key on the keyboard. This means the user can move around the map, change the zoom level, add placemarks, and so on.

A set of special controls can be put in a section of the map for interacting with users, including both standard controls (magnifying glass, ruler, and others) and custom controls.

Both the programming interface and the user interface for interactive maps are implemented using JavaScript.

The Yandex.Maps API supports generating maps for defined sections of an area in the form of ordinary images, known as static maps. Static maps are generated using HTTP requests. You can get a map image by simply entering an address in the browser's address bar.

The Yandex.Maps API allows getting static images of Yandex maps, but does not support generating images of custom maps that were created using the JavaScript API.

Objects on the map

A common way to work with maps is to place various graphic objects on the image of an area. These may be placemarks, popup hints, lines, polygons, and other elements.

The Yandex.Maps API contains a set of programming components to display the most often-used graphic objects. In addition, these objects can be placed both on interactive maps using JavaScript, or on static map images using basic HTTP requests.

Events

Electronic maps are interactive because they react to the user's actions, such as clicking the zoom button. When a user performs any action in the active area of the map, an event is generated. The Yandex.Maps API allows you to track these events and program the reaction to their instances.

Events occur not only in response to user actions, but also when accessing the electronic map programmatically via the API, for example, when placing objects on the map or removing them.

The events handler implemented in the Yandex.Maps API is a good base for creating interactive cartographic web applications.

Search on a map

Most often, a map covers a large area with a large number of geographical objects located on it. It can be fairly difficult to find the location you are looking for.

The Yandex.Maps API makes it much easier to search for objects in an area. We have developed tools to help with the following tasks:

  1. Get object coordinates using the name or address — geocoding.
  2. Get an object's address using its geographical coordinates — reverse geocoding.
  3. Find the subway station nearest to a point with the specified coordinates.

The map search is one of the main factors that makes the Yandex.Maps service so convenient. To guarantee search quality, it is not enough to just have information about objects and their coordinates. You also need to be able to solve issues related to analyzing and processing text information.

The map can be searched using either the JavaScript API or a normal HTTP request.

Determining location

Using the Yandex.Maps JavaScript API, you can determine a user's approximate location based on the IP address. This feature is most often used for displaying web page contents to match the geographic position of the person viewing the page, otherwise known as "geotargeting". For example, when users load the page http://maps.yandex., they see a map of the town or city they are currently located in.

Planning driving routes

The Yandex.Maps API contains tools for automatically planning a route to travel between specified points, and for getting various information about the planned route. In addition, the route can be calculated either with or without traffic considerations.

Data exchange using XML

The Yandex.Maps API includes resources for exchanging data with external programs. For this purpose, we developed YMapsML, an XML language for describing geographical data. With YMapsML, you can use text format to set a map section with placemarks and other objects drawn on it, then display it in the browser via the JavaScript API. It also supports loading and displaying data that is in KML or GPX format.

Terms of use and restrictions

The Yandex.Maps API can be freely used by any users who follow the requirements in the following Agreements:

  1. User Agreement for the "Yandex.Maps API" service
  2. Terms of Use for the “Yandex.Maps” service
  3. User Agreement for Yandex Services

Please note that the Yandex.Maps API cannot be used for fee-based cartographic services or services that restrict third-party access in any other way. Requiring user registration is not considered as restricting access.