# nearbyshops **Repository Path**: angryart/nearbyshops ## Basic Information - **Project Name**: nearbyshops - **Description**: 以当前位置为基础,寻找离得最近的10个酒店 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-11-11 - **Last Updated**: 2024-07-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目背景 以openGauss为基础的GIS DEMO应用,通过唯一的经纬度查找附近的距离建筑物,筛选出前面10个最近的建筑物。 ## 安装环境 操作系统Ubuntu 20.04.5 LTS ~~~bash 系统环境 apt-get install postgresql-client-common apt-get install python3-gdal apt-get install libpq-dev python-dev apt-get install psycopg2-binary apt-get install python3.8-dev apt-get insstall postgresql-client-common 软件环境 pip install django==2.1.2 pip install psycopg2==2.8.6 pip install psycopg2-binary==2.8.6 ~~~ ## 导入数据 **sql/test2.sql** 此处是数据文件 ~~~ gsql -d test2 -h ip地址 -U 用户 -p 端口 -f test2.sql ~~~ ## 运行服务 ~~~ python manage.py runserver 0:8000 ~~~