myreact-geopackage
Version:
A simple React component library that integrates with MapmyIndia maps and displays real-time vehicle tracking via WebSocket.
43 lines (26 loc) ⢠895 B
Markdown
# myreact-geopackage
A simple React component library that integrates with MapmyIndia maps and displays real-time vehicle tracking via WebSocket.
⨠Features:
- Easy integration with MapmyIndia maps
- Real-time vehicle updates via WebSocket
- Displays vehicles with markers and tracks movement
- Automatically calculates distance and detects deviation from the route
š¦ Installation:
- Install the package in your React project:
- bash:
- npm install myreact-geopackage
š Usage:
- Import the main component Geomap and use it in your app:
- import React from 'react';
- import { Geomap } from 'myreact-geopackage';
- function App() {
- return (
- <div>
- <Geomap
- mapplsAPI="YOUR_MAPMYINDIA_API_KEY"
- webSocket="wss://your-websocket-server-url"
- />
- </div>
- );
- }
- export default App;