Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allangomes/geolocation
Spring Boot | Mongo DB | Kotlin | Angular JS | Leaflet | Gradle | Custom JS Plugin
https://github.com/allangomes/geolocation
angularjs arquitetura geolocation java kotlin polyline spring-boot
Last synced: 25 days ago
JSON representation
Spring Boot | Mongo DB | Kotlin | Angular JS | Leaflet | Gradle | Custom JS Plugin
- Host: GitHub
- URL: https://github.com/allangomes/geolocation
- Owner: allangomes
- Created: 2016-12-12T18:33:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-12T19:23:34.000Z (about 8 years ago)
- Last Synced: 2024-10-21T19:48:13.149Z (2 months ago)
- Topics: angularjs, arquitetura, geolocation, java, kotlin, polyline, spring-boot
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GeoLocation
Spring Boot | Mongo DB | Kotlin | Angular JS | Leaflet | Custom JS Plugin# REST SERVER
### Routes
Create New Route
```http
POST http://localhost:8080/routes/
{
"name": "Rota Principal",
"vehicleId": 4,
"routeDate": "2016-12-13",
"stops": [
{ "name": "Inicio", "coordinate": { "lat": -3.784426, "lng": -38.583058 } },
{ "name": "Parada", "coordinate": { "lat": -3.742261, "lng": -38.499705 } },
{ "name": "Final", "coordinate": { "lat": -3.737121, "lng": -38.575313 } }
]
}```
Get All Routes
```http
GET http://localhost:8080/routes/
```
Get Route Path/Polyline
```http
GET http://localhost:8080/routes/{routeId}/path
```
Check run away and nearby point
```http
POST http://localhost:8080/routes/vehicle/{vehicleId}/checkpoint?lat=-3.726636&lng=-38.508690
```# Front
start
```http
$ npm starthttp://localhost:8001/
```### Plugin
customize polyline | below example: Customized Profiles default and runned
```javascript
angular.module('trix.routes').config(['polylineProvider', function (polylineConfig) {
polylineConfig
.options('default', {
color: 'blue',
weight: 10
})
.options('runned', {
color: 'red',
weight: 3
})
}])
```#### ARQUITETURA
Baseada na arquitetura do Leaflet, Extremamente fácil de mapear com a biblioteca