An interactive web application that allows users to measure areas and radii directly on a map using the Google Maps API. Built with React and TypeScript, this tool offers a user-friendly interface for quick and accurate geographic measurements.
You can access the production application at the following link: Google Maps Measurement Tool
Here are some screenshots showcasing the application:
Main interface for selecting measurement modes and interacting with the map.

Drawing polygons to calculate the area within.

Creating circles to measure radii.
- React: Library for building user interfaces.
- TypeScript: Static typing for reliable code.
- Vite: Fast and modern build tool.
- Google Maps API: Map rendering and geographic computations.
- TailwindCSS: Utility-first CSS framework for styling the UI.
-
Area Measurement:
- Draw polygons directly on the map.
- Calculate the area inside the polygons in square meters or kilometers.
-
Radius Measurement:
- Place circles on the map.
- Measure radii and total coverage.
-
Interactive User Interface:
- Toggle between measurement modes.
- Responsive design for desktop and mobile.
-
Custom Styling and Integration:
- Predefined styles for better visualization.
- Leveraging @react-google-maps/api for seamless integration with Google Maps.
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/Jonlle/google-maps-measure-tools.git cd google-maps-measure-tools -
Install the dependencies:
npm install
-
Obtain a Google Maps API key:
- Visit the Google Cloud Console and create a new project.
- Enable the "Maps JavaScript API."
- Generate an API key and add it to a
.envfile in the root directory:VITE_GOOGLE_MAPS_API_KEY=your_api_key_here
-
Start the development server:
npm run dev
-
Open http://localhost:3000 to view the application.
Contributions are welcome! If you'd like to improve this project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-feature
- Make your changes and commit them:
git commit -m 'Add new feature' - Push to your fork:
git push origin feature/new-feature
- Submit a Pull Request.
😊