Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
552 commits
Select commit Hold shift + click to select a range
091b3b8
Merge branch 'staging' into feature/data-validation
cahyoortupas Aug 14, 2025
6f34738
remove boundary background
cahyoortupas Aug 15, 2025
a843548
fix panel overlap
cahyoortupas Aug 15, 2025
7a6e23f
Adding actions to organize duplicate data
cahyoortupas Aug 16, 2025
e62830e
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 16, 2025
1a3f45f
fix validator
cahyoortupas Aug 16, 2025
6b966c8
fix scrollbar
cahyoortupas Aug 16, 2025
e754884
add numberoffloors slider with auto zoom
cahyoortupas Aug 16, 2025
86598b4
fix zoom filter
cahyoortupas Aug 16, 2025
3588a3f
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 16, 2025
7457781
page fit without scroll bar
cahyoortupas Aug 18, 2025
a70785a
Add Site dataset support to GeoJSON import pipeline
cahyoortupas Aug 18, 2025
7c7c8b5
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 18, 2025
74aea93
add version number next to schema
cahyoortupas Aug 19, 2025
334729f
Create side panel to manage Building and Site visibility
cahyoortupas Aug 19, 2025
f2cf45a
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 19, 2025
d97d8c7
Improve map zoom level handling
cahyoortupas Aug 20, 2025
40144c5
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 20, 2025
ba25676
create table migration for building and site
cahyoortupas Aug 20, 2025
9353fe6
add nhle dataset to data map
cahyoortupas Aug 22, 2025
59293d3
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 22, 2025
28bbf8f
Add filter by grade and optimize data loading
cahyoortupas Aug 22, 2025
9d1ce93
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 22, 2025
075b120
add filter by grade and search boundaries
cahyoortupas Aug 22, 2025
018889a
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 22, 2025
d5505d6
Add map control component
cahyoortupas Aug 23, 2025
f8bcde5
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 23, 2025
db19ed5
Add search function for predefined fields
cahyoortupas Aug 23, 2025
65688ce
close modal when click outside
cahyoortupas Aug 23, 2025
66c23d2
Add Building Part dataset to Data Map
cahyoortupas Aug 23, 2025
eb18187
change group by section
cahyoortupas Aug 23, 2025
22c8a85
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 23, 2025
e3dd963
optimize query
cahyoortupas Aug 23, 2025
ecd463d
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 23, 2025
887d5b3
create table and import function for built up areas
cahyoortupas Aug 25, 2025
e5337f0
change ward boundary with builtup areas
cahyoortupas Aug 25, 2025
e77f296
inintial load farnham
cahyoortupas Aug 25, 2025
e66b880
move filter by floor into sidebar
cahyoortupas Aug 25, 2025
19863f2
adjust search filter only can search selected boundaries
cahyoortupas Aug 25, 2025
778e151
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 25, 2025
b23887c
change groupby
cahyoortupas Aug 25, 2025
47ac11d
add import nhle and building part
cahyoortupas Aug 25, 2025
fbd03cc
change filter label
cahyoortupas Aug 25, 2025
9246b6f
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 25, 2025
d8c56ca
create buildingpartv2 table
cahyoortupas Aug 26, 2025
eb7f348
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 26, 2025
01d1906
adjust validation to use buildingpartv2
cahyoortupas Aug 26, 2025
1c38e5e
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 26, 2025
c28f06e
adjust validation to use buildingpartv2
cahyoortupas Aug 26, 2025
d5469ae
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 26, 2025
f0f9c72
change datamap to use buildingpart v2
cahyoortupas Aug 27, 2025
246a71c
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 27, 2025
61320f3
adjust groupby
cahyoortupas Aug 27, 2025
6412c52
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 27, 2025
9511407
improve search function
cahyoortupas Aug 28, 2025
8d7afdd
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 28, 2025
b4c0292
optimize query
cahyoortupas Aug 28, 2025
d9942a0
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 28, 2025
5673b5a
optimize query
cahyoortupas Aug 28, 2025
341b20d
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 28, 2025
f6e234c
optimize query
cahyoortupas Aug 28, 2025
f3850d7
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 28, 2025
f519629
optimization using cache and parallel processing
cahyoortupas Aug 28, 2025
1d9ecd7
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 28, 2025
eff4778
optimize query processing
cahyoortupas Aug 29, 2025
2e5b21a
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 29, 2025
9d81404
include all fields into the search
cahyoortupas Aug 29, 2025
838cbf1
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 29, 2025
2f4153f
remove postcode from search
cahyoortupas Aug 29, 2025
4245339
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 29, 2025
c10de5f
Resolve search functionality issue in Site dataset
cahyoortupas Aug 31, 2025
7a6d108
Merge branch 'feature/data-validation' into staging
cahyoortupas Aug 31, 2025
fd8778b
fix nhle data and fix group by
cahyoortupas Sep 1, 2025
b79bd7d
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 1, 2025
e9210d7
auto clear cache and array object handling
cahyoortupas Sep 1, 2025
4eb68be
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 1, 2025
d335bff
adjust groupby
cahyoortupas Sep 1, 2025
1501160
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 1, 2025
031f9e2
optimize datamap load
cahyoortupas Sep 3, 2025
1f1af75
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 3, 2025
4a178de
fix scatterplot hover
cahyoortupas Sep 3, 2025
9a6cd21
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 3, 2025
ed74bc0
optimize datamap page load
cahyoortupas Sep 3, 2025
1beb5cf
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 3, 2025
bae1d7d
enhance query builtup areas
cahyoortupas Sep 5, 2025
e6eeb2e
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 5, 2025
987f428
Optimize by separating page load and built-up areas fetching
cahyoortupas Sep 5, 2025
5502a4f
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 5, 2025
76bb2a1
improve zoom animation
cahyoortupas Sep 5, 2025
165aa33
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 5, 2025
546a28c
Add photos data to Data Map response
cahyoortupas Sep 5, 2025
c72bea4
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 5, 2025
29a417d
add photos layer in datamap
cahyoortupas Sep 6, 2025
3e5ce05
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 6, 2025
128423e
Fix map zoom behavior on feature selection
cahyoortupas Sep 8, 2025
d2a88c1
adjust auto zoom
cahyoortupas Sep 8, 2025
5efada0
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 8, 2025
56e6a5f
adjust side panel
cahyoortupas Sep 8, 2025
3f08922
Add photo details to Data Map (same as Photo Gallery)
cahyoortupas Sep 8, 2025
5347fb3
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 8, 2025
0827fd7
fix photo display
cahyoortupas Sep 8, 2025
0bf836c
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 8, 2025
8affa94
change flg_deleted = 1
cahyoortupas Sep 8, 2025
65d8c63
change flg_deleted = 0
cahyoortupas Sep 8, 2025
ad595ce
fix nhle data
cahyoortupas Sep 8, 2025
98b9193
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 8, 2025
c3fe434
fix nhle data
cahyoortupas Sep 8, 2025
bb5cc91
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 8, 2025
0bc8ad8
Remove caching logic from data retrieval
cahyoortupas Sep 9, 2025
51248e8
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 9, 2025
bb256f8
add hover on photo data
cahyoortupas Sep 9, 2025
078b004
add clear filter function
cahyoortupas Sep 9, 2025
3858835
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 9, 2025
b6b9b89
show selected area to improve ux
cahyoortupas Sep 9, 2025
f7b3a59
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 9, 2025
c2e1ea0
fix osnam on side panel
cahyoortupas Sep 10, 2025
7fee09c
make NHLE hyperlink clickable
cahyoortupas Sep 10, 2025
fdc2144
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 10, 2025
f38731c
Add nearest candidate selection based on photo bearing and radius
cahyoortupas Sep 11, 2025
5398c28
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 11, 2025
b833b2f
connect building & building part to site
cahyoortupas Sep 12, 2025
9aaa368
Separate layer and filtering function
cahyoortupas Sep 12, 2025
09119af
add manage connections modal
cahyoortupas Sep 12, 2025
c79b0ed
add migrations for connection tables
cahyoortupas Sep 12, 2025
2347140
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 12, 2025
28d09ac
reduce distance from 200m TO 10m
cahyoortupas Sep 13, 2025
d671494
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 13, 2025
4550e5c
Add connections from Site to Building/Building Part
cahyoortupas Sep 13, 2025
ebc457b
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 13, 2025
d7bb3a6
add spidering function
cahyoortupas Sep 15, 2025
179179b
rename nhle folder to datamap
cahyoortupas Sep 15, 2025
b2f8dfd
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 15, 2025
3469f76
rename nhle folder to DataMap
cahyoortupas Sep 15, 2025
e842e33
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 15, 2025
7e11b5e
adjust cluster size
cahyoortupas Sep 15, 2025
f8d1f0c
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 15, 2025
9e5cf8a
fix issue on spidering
cahyoortupas Sep 16, 2025
af3d3ae
adjust photo color
cahyoortupas Sep 16, 2025
7864174
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 16, 2025
6e06ebf
Adjust spidering to follow filters
cahyoortupas Sep 16, 2025
dde57fb
Adjust legend to show all data types
cahyoortupas Sep 16, 2025
264bcbb
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 16, 2025
8f9a47f
adjust spidering
cahyoortupas Sep 16, 2025
143da16
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 16, 2025
ec02161
fix photo spidering
cahyoortupas Sep 18, 2025
1874c64
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 19, 2025
583349e
Update README.md
buildvoc10 Sep 20, 2025
cfc0738
add feature bulk action to verify & reject connection photo and impor…
cahyoortupas Sep 20, 2025
fea6674
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 20, 2025
203f2a6
Merge branch 'staging' of github-cahyo.com:buildvoc/PIC2BIM into staging
cahyoortupas Sep 20, 2025
dbe1afc
fix photo panel
cahyoortupas Sep 20, 2025
c57637f
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 20, 2025
f23d244
update content in panel photo
cahyoortupas Sep 22, 2025
38c63af
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 23, 2025
cb4bc37
fix missing device data and add network status, osnma
cahyoortupas Sep 24, 2025
10c3ae8
clear filter show all BUA data
cahyoortupas Sep 24, 2025
82249b0
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 24, 2025
c98a598
Displaying the uprn legend
cahyoortupas Sep 25, 2025
f25da5c
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 25, 2025
e88ac71
fix title sidepanel uprn
cahyoortupas Sep 25, 2025
f8771df
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 25, 2025
05a90ac
adding spidering at stacked uprn points
cahyoortupas Sep 26, 2025
1a5d1bf
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 26, 2025
82277dd
fix uprn group size
cahyoortupas Sep 26, 2025
e95a316
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 26, 2025
9833569
fix bug uprn
cahyoortupas Sep 26, 2025
c4c9861
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 26, 2025
4e24e69
update uprn in all built up area
cahyoortupas Sep 28, 2025
a406d87
Merge branch 'feature/data-validation' into staging
cahyoortupas Sep 28, 2025
9b6847f
show all photo when clear filter
cahyoortupas Oct 1, 2025
cb08ffa
add import land registry and show to map
cahyoortupas Oct 2, 2025
0e713a3
add feature photo bearing polygon
cahyoortupas Oct 2, 2025
4f6c5e2
Merge branch 'feature/data-validation' into staging
cahyoortupas Oct 2, 2025
7c0ab19
fix issue building part polygon
cahyoortupas Oct 2, 2025
b06f8ef
Merge branch 'feature/data-validation' into staging
cahyoortupas Oct 2, 2025
b63805e
Merge branch 'staging' into feature/data-land-registry
cahyoortupas Oct 3, 2025
02bb727
fix bug color in search and remove building part spidering photo
cahyoortupas Oct 4, 2025
dfa0e0c
Merge branch 'feature/data-validation' into staging
cahyoortupas Oct 4, 2025
3d6c117
Merge branch 'staging' into feature/data-land-registry
cahyoortupas Oct 4, 2025
71dced6
add connection nhle to photo
cahyoortupas Oct 5, 2025
150e8a5
update php init in import
cahyoortupas Oct 5, 2025
72207fd
adjusting land registry data with new files
cahyoortupas Oct 5, 2025
f4c7833
fix bug photo -> building part
cahyoortupas Oct 6, 2025
1403b4f
optimize performance
cahyoortupas Oct 6, 2025
3246fe0
setup osm data
cahyoortupas Oct 8, 2025
977757a
issues resolved
arsx9 Oct 8, 2025
c805985
Merge pull request #41 from buildvoc/bugfix/admin
arsx9 Oct 8, 2025
133795c
Merge branch 'staging' of github-cahyo.com:buildvoc/PIC2BIM into staging
cahyoortupas Oct 9, 2025
870112f
Displaying OSM data to 3D building attributes
cahyoortupas Oct 9, 2025
0619198
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 9, 2025
d6aa6ca
cleaning comment
cahyoortupas Oct 9, 2025
69d473f
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 9, 2025
932867f
pagination component updated
arsx9 Oct 9, 2025
482fe9a
Render building parts separately
cahyoortupas Oct 10, 2025
039edc7
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 10, 2025
6cff672
Merge branch 'staging' of github-cahyo.com:buildvoc/PIC2BIM into staging
cahyoortupas Oct 10, 2025
b986e9c
nonaktif default osm data display
cahyoortupas Oct 10, 2025
ab80f84
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 10, 2025
0866f28
fix bugs data map
cahyoortupas Oct 12, 2025
1224a57
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 12, 2025
8df3aed
fix osm data building 3d
cahyoortupas Oct 12, 2025
1d61f50
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 12, 2025
a245e9c
Add hyperlinks and ensure that the OSM connection is working properly.
cahyoortupas Oct 13, 2025
5c994cb
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 13, 2025
ae0f927
update logic rendering osm building
cahyoortupas Oct 14, 2025
d1fbb21
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 14, 2025
7847212
fix issue filter building part
cahyoortupas Oct 15, 2025
9c8ac64
Merge branch 'feature/data-osm' into staging
cahyoortupas Oct 15, 2025
c78be30
setup epc data
cahyoortupas Oct 15, 2025
70ee4e9
set address and postcode to null when importing
cahyoortupas Oct 15, 2025
cc21959
code review
arsx9 Oct 15, 2025
8a94e14
fix building attributes extrusion
cahyoortupas Oct 16, 2025
d573fce
Merge branch 'staging' of github-cahyo.com:buildvoc/PIC2BIM into staging
cahyoortupas Oct 16, 2025
4e3a76c
fix issue building attributes
cahyoortupas Oct 17, 2025
4e96a09
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 17, 2025
8afcd52
implement epc uprn, fixing import nhle, spider connection and osm data
cahyoortupas Oct 19, 2025
c8f6979
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 19, 2025
913c3ae
add lazy load to get data
cahyoortupas Oct 19, 2025
e7e3b78
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 19, 2025
533c5d8
fix issue 19 oktober and optimize query epc
cahyoortupas Oct 22, 2025
1716ef0
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 22, 2025
2cd100e
update id built up area
cahyoortupas Oct 22, 2025
fb5e998
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 22, 2025
9e319b7
update query uprn
cahyoortupas Oct 22, 2025
509bb2b
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 22, 2025
32b9eaa
update function get uprn
cahyoortupas Oct 22, 2025
63c5aa9
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 22, 2025
de9d92c
add worker
cahyoortupas Oct 22, 2025
ae8cd35
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 22, 2025
0f00006
add throyylr request on lazyload data
cahyoortupas Oct 22, 2025
83cf212
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 22, 2025
c078d25
add stream to load data
cahyoortupas Oct 24, 2025
58a19bb
Merge branch 'feature/data-epc-certificate' into staging
cahyoortupas Oct 24, 2025
9b7785a
updated docs
arsx9 Oct 28, 2025
6658fe9
data_map data completed
arsx9 Oct 28, 2025
5c840d9
Merge pull request #43 from buildvoc/feature/sweager-update
arsx9 Oct 29, 2025
0a38fb7
fix import and load data
cahyoortupas Oct 30, 2025
92226e5
fix site issue
cahyoortupas Oct 30, 2025
7bc31d8
endpoint added
arsx9 Oct 30, 2025
d0aec76
Merge pull request #44 from buildvoc/feature/sweager-update
arsx9 Oct 30, 2025
5debeea
fix import osm data
cahyoortupas Oct 31, 2025
392e1ce
Merge branch 'fix/import_and_load_data' into staging
cahyoortupas Oct 31, 2025
8223f72
authentication added
arsx9 Oct 31, 2025
ccb03db
Merge pull request #45 from buildvoc/feature/sweager-update
arsx9 Oct 31, 2025
84b9978
fix duplicate entry
cahyoortupas Nov 1, 2025
d229558
Merge branch 'fix/import_and_load_data' into staging
cahyoortupas Nov 1, 2025
dc9e53f
show epc in search when null geometry
cahyoortupas Nov 3, 2025
f9c06be
Merge branch 'fix/import_and_load_data' into staging
cahyoortupas Nov 3, 2025
1e19237
dependencies Updates
arsx9 Nov 18, 2025
8df743f
Merge pull request #46 from buildvoc/feature/sweager-update
arsx9 Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=pic2bim
DB_USERNAME=root
DB_PASSWORD=

SESSION_DRIVER=database
SESSION_LIFETIME=120
Expand Down Expand Up @@ -62,3 +62,4 @@ AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

VITE_APP_NAME="${APP_NAME}"
VITE_MAPBOX_TOKEN=""
139 changes: 95 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,117 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
# PIC2BIM

## Overview
PIC2BIM is a powerful tool designed to convert images into Building Information Models (BIM). This project streamlines the transformation of visual data into structured digital models, facilitating efficient architectural and engineering workflows.

<p align="center">
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>

## About Laravel
## Prerequisites
Ensure you have the following installed before proceeding:
- PHP 8.0 or later
- Composer
- Node.js & npm
- PostgreSQL database
- Laravel 12
- Git

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
## Database Import

- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
Create a database named PIC2BIM using adminer or any other database tool
- Import the provided database file into PIC2BIM
- Execute the following query in the editor

Laravel is accessible, powerful, and provides tools required for large, robust applications.
```sh
CREATE EXTENSION POSTGIS;
```
- Open bld_fts_buildingpart database table and import the data dump of that table
- Drop codepoint table and import the provided codepoint dump file
- Execute the following query in the editor

## Learning Laravel
```sh
DELETE from personal_access_tokens where id > 0
```

Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.
## Photos4all

If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
Unzip the provided photos4all folder in storage/app/public directory

## Laravel Sponsors
## Installation Guide
Follow these steps to set up PIC2BIM locally:

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
### Step 1: Clone the Repository
```sh
git clone git@github.com:buildvoc/PIC2BIM.git
cd PIC2BIM
```

### Premium Partners
### Step 2: Checkout to Staging Branch
```sh
git checkout staging
```

- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[WebReinvent](https://webreinvent.com/)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
- **[Jump24](https://jump24.co.uk)**
- **[Redberry](https://redberry.international/laravel/)**
- **[Active Logic](https://activelogic.com)**
- **[byte5](https://byte5.de)**
- **[OP.GG](https://op.gg)**
### Step 3: Setup Environment Variables
```sh
cp .env.example .env
```
Update the `.env` file with your database credentials:
```env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
```

## Contributing
### Step 4: Install Dependencies
```sh
composer install
npm install --save
```

### Step 5: Generate Application Key
```sh
php artisan key:generate
```

### Step 6: Generate Application Key
```sh
php artisan storage:link
```

### Step 7: Run the Application
```sh
php artisan serve
```

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
### Step 8: Build Frontend Assets
```sh
npm run build
```

## Code of Conduct
## Usage
Once the server is running, you can access the application via:
```
http://127.0.0.1:8000
```

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

## Security Vulnerabilities
## PMTILES

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
PMTILES is placed in the public folder and can be accessed at http://127.0.0.1:8000/output.pmtiles


## Contributing
We welcome contributions to improve PIC2BIM! To contribute:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Commit your changes (`git commit -m 'Add new feature'`).
4. Push to your branch (`git push origin feature-branch`).
5. Open a Pull Request.

## License
This project is licensed under the MIT License.

## Contact
For support or inquiries, please open an issue on GitHub or reach out to the maintainers.

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
47 changes: 47 additions & 0 deletions app/Console/Commands/CronCheckLocation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

namespace App\Console\Commands;

use App\Models\Photo;
use Illuminate\Console\Command;

class CronCheckLocation extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'app:cron-check-location';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Check photo location';

/**
* Execute the console command.
*/
public function handle()
{
Photo::
whereNull('flg_checked_location')
->where(function ($query) {
$query->whereNull('network_info')
->orWhereNotNull('network_location');
})
->where('nmea_distance', '<=', 50)
->where('distance', '<=', 5000)
->update(['flg_checked_location' => 1]);

Photo::
whereNull('flg_checked_location')
->where(function ($query) {
$query->whereNull('network_info')
->orWhereNotNull('network_location');
})
->update(['flg_checked_location' => 0]);
}
}
Loading