Skip to content

Commit 29528da

Browse files
authored
Create Readme.md
1 parent 812984d commit 29528da

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

Calculate-distance/Readme.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Distance Calculating Django App
2+
App that can show distance between user's location and searched location on map.
3+
4+
# Packages Used
5+
1. Geopy
6+
2. folium
7+
3. crispy-form
8+
4. Bootstrap
9+
10+
# How to run
11+
**1.** Fork [this](https://github.com/avinashkranjan/Amazing-Python-Scripts.git) repository.
12+
13+
**2.** Clone your forked copy of the project.
14+
15+
```
16+
git clone https://github.com/<your_user_name>/Amazing-Python-Scripts.git
17+
```
18+
Navigate to the project directory.
19+
```bash
20+
cd Amazing-Python-Scripts/Calculate-distance
21+
```
22+
```
23+
create folder named 'geoip' in main project directory.
24+
```
25+
```
26+
download city and country database
27+
```
28+
[For downloading city and country database ](https://www.maxmind.com/en/accounts/497315/people/84e6213c-91a4-4e02-ae2e-1d709084c544)
29+
1. ![](https://github.com/pritamp17/Calculate-Distance/blob/main/1.paste.png)
30+
2. ![](https://github.com/pritamp17/Calculate-Distance/blob/main/2.paste.png)
31+
32+
```
33+
extract the zip files and copy paste
34+
1. GeoLite2-City.mmdb
35+
2. GeoLite2-country.mmdb
36+
to geoip folder
37+
```
38+
```bash
39+
pip install -r requirements.txt
40+
```
41+
```bash
42+
python manage.py runserver
43+
```
44+
# And there you go
45+
![](https://github.com/pritamp17/Calculate-Distance/blob/main/django-1-test2.png)
46+
![](https://github.com/pritamp17/Calculate-Distance/blob/main/django-2-test2.png)
47+
![](https://github.com/pritamp17/Calculate-Distance/blob/main/django-3-test2.png)
48+
49+
# Authur
50+
[Pritam Pawar](https://github.com/pritamp17)

0 commit comments

Comments
 (0)