Skip to content

Created a Single page application in ReactJS which uses the provided data from mock API which display a live tracking of a vehicle in google map

Notifications You must be signed in to change notification settings

tejassavaliya/react-google-map-vehicle-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-google-map-vehicle-tracking Netlify Status

Created a Single page application in ReactJS which uses the provided data from mock API which display a live tracking of a vehicle. Rendered Map have below things:

  • A Path ( polyline) - based on the path data provided in API-1
  • Stops ( Markers ) - based on the stops data provided in API-2
  • A Live Vehicle Tracker - Simulation which moves the vehicle very two seconds on the displayed path ( polyline )
  • Start Simulation Button - Which starts the simulation

API-1 : https://61a4a0604c822c0017041d33.mockapi.io/shuttle/v1/path

API-2 : https://61a4a0604c822c0017041d33.mockapi.io/shuttle/v1/stops

GMap-Simulator

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Releases

No releases published

Packages

No packages published