Application Programming Interface
Real-life API example
When we need to navigate, we use a «Maps» application (Google Maps, Yandex Maps).
«Maps» provide geographic information not only to users but also to other applications via an API.
The «Navigator» application acts as the client, while the «Maps» application is the server.
- The «Navigator» sends a request over the HTTPS protocol with parameters for the starting and ending points of the route in JSON
- Receives a response in JSON format from the «Maps» application
- Displays the route, nearby gas stations, and warns about traffic congestion
Task
Уровень повышен!