https://github.com/flibouche/api_geo
This tutorial is a comprehensive guide to understanding and working with APIs (Application Programming Interfaces) and the JSON (JavaScript Object Notation) format.
https://github.com/flibouche/api_geo
api javascript json json-api
Last synced: 9 months ago
JSON representation
This tutorial is a comprehensive guide to understanding and working with APIs (Application Programming Interfaces) and the JSON (JavaScript Object Notation) format.
- Host: GitHub
- URL: https://github.com/flibouche/api_geo
- Owner: Flibouche
- Created: 2024-05-29T14:24:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-03T07:24:54.000Z (over 1 year ago)
- Last Synced: 2025-01-28T23:30:15.594Z (11 months ago)
- Topics: api, javascript, json, json-api
- Language: JavaScript
- Homepage:
- Size: 259 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API_GEO

This tutorial is a comprehensive guide to understanding and working with APIs (Application Programming Interfaces) and the JSON (JavaScript Object Notation) format. It includes explanations of HTTP requests, principles of APIs, and practical examples of consuming an API with JavaScript.
## Project Contents
- **Geo API**: Using the French government's Geo API to access geographic data.
- **Consuming an API with JavaScript**: Step-by-step guide to creating a simple project in HTML, CSS, and JavaScript to search for postal codes and display corresponding cities using the Geo API. Includes using the fetch method in JavaScript to interact with the API.
- **Advanced Example with Leaflet**: Extending the project by integrating the Leaflet library to display selected cities on a map with markers.
## Technologies Used
- HTML, CSS, JavaScript
- JSON for data representation and exchange
- Postman and Insomnia for testing API requests
- Fetch API in JavaScript for consuming APIs
- Leaflet for map integration