myreact-geopackage
v1.0.5
Published
A simple React component library that integrates with MapmyIndia maps and displays real-time vehicle tracking via WebSocket.
Readme
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 (
<GeomapmapplsAPI="YOUR_MAPMYINDIA_API_KEY"webSocket="wss://your-websocket-server-url"/>);
}
export default App;
