mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-08-16 15:40:23 +02:00
allow nonstandard direction tag, link to OSM
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
{{ alpr.tags.brand }}
|
{{ alpr.tags.brand }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
Unknown Manufacturer
|
Unspecified Manufacturer
|
||||||
</span>
|
</span>
|
||||||
</b>
|
</b>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
@@ -32,19 +32,14 @@
|
|||||||
{{ alpr.tags.operator }}
|
{{ alpr.tags.operator }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
Unknown Operator
|
Unspecified Operator
|
||||||
</span>
|
</span>
|
||||||
</b>
|
</b>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
|
|
||||||
<div class="text-center text-grey-darken-1">
|
<div class="text-center">
|
||||||
|
<v-btn target="_blank" size="x-small" :href="osmNodeLink(props.alpr.id)" variant="text" color="grey-darken-1"><v-icon start>mdi-open-in-new</v-icon>View on OSM</v-btn>
|
||||||
<v-tooltip open-delay="500" text="OSM Node ID" location="bottom">
|
|
||||||
<template #activator="{ props }">
|
|
||||||
<span style="font-size: 0.9em; cursor: default" v-bind="props">node/{{ alpr.id }}</span>
|
|
||||||
</template>
|
|
||||||
</v-tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
</v-sheet>
|
</v-sheet>
|
||||||
</template>
|
</template>
|
||||||
@@ -53,7 +48,7 @@
|
|||||||
import { defineProps, computed } from 'vue';
|
import { defineProps, computed } from 'vue';
|
||||||
import type { PropType } from 'vue';
|
import type { PropType } from 'vue';
|
||||||
import type { ALPR } from '@/types';
|
import type { ALPR } from '@/types';
|
||||||
import { VIcon, VList, VSheet, VListItem, VTooltip } from 'vuetify/components';
|
import { VIcon, VList, VSheet, VListItem, VBtn } from 'vuetify/components';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
alpr: {
|
alpr: {
|
||||||
@@ -66,7 +61,7 @@ const isFaceRecognition = computed(() => props.alpr.tags.brand === 'Avigilon');
|
|||||||
|
|
||||||
const cardinalDirection = computed(() => {
|
const cardinalDirection = computed(() => {
|
||||||
const direction = props.alpr.tags.direction || props.alpr.tags["camera:direction"];
|
const direction = props.alpr.tags.direction || props.alpr.tags["camera:direction"];
|
||||||
direction === undefined ? 'Unknown Direction' : degreesToCardinal(parseInt(direction))
|
return direction === undefined ? 'Unspecified Direction' : degreesToCardinal(parseInt(direction))
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -74,4 +69,8 @@ function degreesToCardinal(degrees: number): string {
|
|||||||
const cardinals = ['North', 'Northeast', 'East', 'Southeast', 'South', 'Southwest', 'West', 'Northwest'];
|
const cardinals = ['North', 'Northeast', 'East', 'Southeast', 'South', 'Southwest', 'West', 'Northwest'];
|
||||||
return 'Faces ' + cardinals[Math.round(degrees / 45) % 8];
|
return 'Faces ' + cardinals[Math.round(degrees / 45) % 8];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function osmNodeLink(id: string): string {
|
||||||
|
return `https://www.openstreetmap.org/node/${id}`;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -12,11 +12,9 @@
|
|||||||
|
|
||||||
<v-list class="text-center">
|
<v-list class="text-center">
|
||||||
<v-list-item class="my-4">
|
<v-list-item class="my-4">
|
||||||
<v-list-item-content>
|
<v-icon size="x-large" color="primary" class="mb-2">mdi-progress-pencil</v-icon>
|
||||||
<v-icon size="x-large" color="primary" class="mb-2">mdi-progress-pencil</v-icon>
|
<v-list-item-title class="font-weight-bold">The map is incomplete!</v-list-item-title>
|
||||||
<v-list-item-title class="font-weight-bold">The map is incomplete!</v-list-item-title>
|
<v-list-item-subtitle>The ALPRs displayed here are a starting point, and new locations are constantly being added.</v-list-item-subtitle>
|
||||||
<v-list-item-subtitle>The ALPRs displayed here are a starting point, and new locations are constantly being added.</v-list-item-subtitle>
|
|
||||||
</v-list-item-content>
|
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
|
|
||||||
|
|||||||
@@ -57,25 +57,25 @@ const alprBrands: WikidataItem[] = [
|
|||||||
name: 'Flock Safety',
|
name: 'Flock Safety',
|
||||||
nickname: 'Flock',
|
nickname: 'Flock',
|
||||||
wikidata: 'Q108485435',
|
wikidata: 'Q108485435',
|
||||||
exampleImage: '/flock-1.jpg',
|
exampleImage: '/alprs/flock-1.jpg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Motorola Solutions',
|
name: 'Motorola Solutions',
|
||||||
nickname: 'Motorola/Vigilant',
|
nickname: 'Motorola/Vigilant',
|
||||||
wikidata: 'Q634815',
|
wikidata: 'Q634815',
|
||||||
exampleImage: '/vigilant-1.jpg',
|
exampleImage: '/alprs/motorola-4.jpg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Leonardo',
|
name: 'Leonardo',
|
||||||
nickname: 'Leonardo/ELSAG',
|
nickname: 'Leonardo/ELSAG',
|
||||||
wikidata: 'Q910379',
|
wikidata: 'Q910379',
|
||||||
exampleImage: '/elsag.webp',
|
exampleImage: '/alprs/elsag-1.jpg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Neology, Inc.',
|
name: 'Neology, Inc.',
|
||||||
nickname: 'Neology',
|
nickname: 'Neology',
|
||||||
wikidata: 'Q130958232',
|
wikidata: 'Q130958232',
|
||||||
exampleImage: '/neology-1.jpg',
|
exampleImage: '/alprs/neology-2.jpg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '(brand goes here)',
|
name: '(brand goes here)',
|
||||||
|
|||||||
@@ -117,15 +117,10 @@
|
|||||||
</template>
|
</template>
|
||||||
</v-stepper-vertical>
|
</v-stepper-vertical>
|
||||||
|
|
||||||
<h2 class="text-center mt-16">Edit an Existing ALPR</h2>
|
<h2 class="text-center">Edit an Existing ALPR</h2>
|
||||||
<p>
|
|
||||||
If you find an ALPR that's missing information and would like to update it, you can follow the same steps as above. Each ALPR on DeFlock has a Node ID that you can use to find it on OpenStreetMap.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p class="mb-16">
|
<p class="mb-16">
|
||||||
Simply click on the ALPR with missing information, and find the Node ID (e.g. <code>node/1237489334</code>) at the bottom of the popup. In the OSM editor search field, paste the <i>numerical portion</i> of the Node ID to find the ALPR and make your changes.
|
If you find an ALPR that's missing information and would like to update it, you can click the <b>View on OSM</b> button to edit it in the OpenStreetMap editor.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</v-container>
|
</v-container>
|
||||||
<Footer />
|
<Footer />
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user