This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
228 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1 @@ | ||
from flask import Blueprint, render_template,Flask | ||
|
||
from __init__ import * | ||
from dir_home.home_page import home_page | ||
|
||
app=Flask(__name__) | ||
app.register_blueprint(blueprint=home_page) | ||
|
||
if __name__=="__main__": | ||
app.run(debug=True) | ||
|
||
from flask import Blueprint, render_template,Flask |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from __init__ import * | ||
|
||
from app import * | ||
from dir_home.home_page import home_page | ||
|
||
app=Flask(__name__) | ||
app.register_blueprint(blueprint=home_page) | ||
|
||
if __name__=="__main__": | ||
app.run(debug=True) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# contains the application configuration parameters. | ||
#add your api_key | ||
yandex_api_key:str= "yandex_geolocator_api_key" # get a free api key --> https://developer.tech.yandex.ru/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from requests import get,models,exceptions | ||
from json import loads | ||
from werkzeug.exceptions import BadRequest,Forbidden | ||
from flask import render_template | ||
from flask import render_template,abort | ||
from config import yandex_api_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
from flask import Blueprint, render_template,request,abort | ||
from jinja2 import TemplateNotFound | ||
import requests,logging | ||
import requests,logging | ||
from os import abort | ||
from dir_api.yandex_api import YandexGeolocationApi | ||
from dir_distance.distance import Distance | ||
from config import yandex_api_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
INFO:root:Origin-->[41.011218, 28.978178] Destination-->[37.516108, 55.594728] Distance(KM)-->[1737.6415340974795] | ||
INFO:werkzeug:127.0.0.1 - - [15/Aug/2021 23:42:44] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.749891, 37.015746] Destination-->[37.668911, 55.571999] Distance(KM)-->[1760.4952586044587] | ||
INFO:werkzeug:127.0.0.1 - - [15/Aug/2021 23:42:49] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.920763, 32.854049] Destination-->[37.60107, 55.575816] Distance(KM)-->[1776.0379648356338] | ||
INFO:werkzeug:127.0.0.1 - - [15/Aug/2021 23:42:52] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[48.856663, 2.351556] Destination-->[37.369188, 55.75435] Distance(KM)-->[2471.472711018819] | ||
INFO:werkzeug:127.0.0.1 - - [15/Aug/2021 23:42:55] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[55.75322, 37.622513] Destination-->[37.841828, 55.747399] Distance(KM)-->[13.743984988551215] | ||
INFO:werkzeug:127.0.0.1 - - [15/Aug/2021 23:43:09] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.920763, 32.854049] Destination-->[55.575816, 37.60107] Distance(KM)-->[1776.0379648356338] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:15:34] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.749891, 37.015746] Destination-->[55.571999, 37.668911] Distance(KM)-->[1760.4952586044587] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:15:38] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.920763, 32.854049] Destination-->[55.575816, 37.60107] Distance(KM)-->[1776.0379648356338] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:17:46] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[55.75322, 37.622513] Destination-->[55.747399, 37.841828] Distance(KM)-->[13.743984988551215] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:17:48] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[35.12823, 33.149774] Destination-->[55.575816, 37.60107] Distance(KM)-->[2299.6157632824147] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:17:51] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[36.885851, 30.701668] Destination-->[55.5778, 37.586536] Distance(KM)-->[2142.9238986128194] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:17:55] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.920763, 32.854049] Destination-->[55.575816, 37.60107] Distance(KM)-->[1776.0379648356338] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:22:58] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.749891, 37.015746] Destination-->[55.571999, 37.668911] Distance(KM)-->[1760.4952586044587] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:30:24] "[37mPOST / HTTP/1.1[0m" 200 - | ||
INFO:root:Origin-->[39.920763, 32.854049] Destination-->[55.575816, 37.60107] Distance(KM)-->[1776.0379648356338] | ||
INFO:werkzeug:127.0.0.1 - - [16/Aug/2021 16:47:34] "[37mPOST / HTTP/1.1[0m" 200 - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
requests>=2.26.0 | ||
Werkzeug>=1.0.1 | ||
Flask>=1.1.2 | ||
Jinja2>=2.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
* { | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
#notfound { | ||
position: relative; | ||
height: 100vh; | ||
background-color: #222; | ||
} | ||
|
||
#notfound .notfound { | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
-webkit-transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.notfound { | ||
max-width: 460px; | ||
width: 100%; | ||
text-align: center; | ||
line-height: 1.4; | ||
} | ||
|
||
.notfound .notfound-404 { | ||
height: 158px; | ||
line-height: 153px; | ||
} | ||
|
||
.notfound .notfound-404 h1 { | ||
font-family: 'Josefin Sans', sans-serif; | ||
color: #222; | ||
font-size: 220px; | ||
letter-spacing: 10px; | ||
margin: 0px; | ||
font-weight: 700; | ||
text-shadow: 2px 2px 0px #c9c9c9, -2px -2px 0px #c9c9c9; | ||
} | ||
|
||
.notfound .notfound-404 h1>span { | ||
text-shadow: 2px 2px 0px #ffab00, -2px -2px 0px #ffab00, 0px 0px 8px #ff8700; | ||
} | ||
|
||
.notfound p { | ||
font-family: 'Josefin Sans', sans-serif; | ||
color: #c9c9c9; | ||
font-size: 16px; | ||
font-weight: 400; | ||
margin-top: 0px; | ||
margin-bottom: 15px; | ||
} | ||
|
||
.notfound a { | ||
font-family: 'Josefin Sans', sans-serif; | ||
font-size: 14px; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
background: transparent; | ||
color: #c9c9c9; | ||
border: 2px solid #c9c9c9; | ||
display: inline-block; | ||
padding: 10px 25px; | ||
font-weight: 700; | ||
-webkit-transition: 0.2s all; | ||
transition: 0.2s all; | ||
} | ||
|
||
.notfound a:hover { | ||
color: #ffab00; | ||
border-color: #ffab00; | ||
} | ||
|
||
@media only screen and (max-width: 480px) { | ||
.notfound .notfound-404 { | ||
height: 122px; | ||
line-height: 122px; | ||
} | ||
|
||
.notfound .notfound-404 h1 { | ||
font-size: 122px; | ||
} | ||
} |
Oops, something went wrong.