Skip to content

Instantly share code, notes, and snippets.

@nfarah86
Last active May 7, 2016 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfarah86/d40f6f3480e0201ecdcfbad9caf7e6ba to your computer and use it in GitHub Desktop.
Save nfarah86/d40f6f3480e0201ecdcfbad9caf7e6ba to your computer and use it in GitHub Desktop.
Get User's GPS Location
// omitted code
@app.route("/contact_map_display/<user_id>", methods = ['GET'])
def contact_map_display():
user_object = db_session.query(GPS_Location).filter_by(user_id=user_id).order_by(GPS_Location.created.desc()).first()
return render_template("contact_map.html", user_id = user_object.user_id)
// omitted code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment