|
|
|
|
@ -181,14 +181,15 @@ def acte(house=None, prince=None, dateitem=None):
|
|
|
|
|
|
|
|
|
|
@main.route("/geolocalisation", methods=('GET', 'POST'))
|
|
|
|
|
def geolocalisation():
|
|
|
|
|
"global folium/leaflet map"
|
|
|
|
|
if request.method == 'POST':
|
|
|
|
|
search = request.form['search']
|
|
|
|
|
return render_template("plainsearch.html",
|
|
|
|
|
search=search,
|
|
|
|
|
actes=plaintext_response(search, actecol, prince_bigram))
|
|
|
|
|
|
|
|
|
|
"global folium/leaflet map"
|
|
|
|
|
m = folium.Map(location=[46.603354, 1.888334], zoom_start=6)
|
|
|
|
|
|
|
|
|
|
for result in actecol.find():
|
|
|
|
|
place = result['place']
|
|
|
|
|
name = place['name']
|
|
|
|
|
|