Simple Flask API backend to maintain a word list
Obligatory reference to the style guide. You have incorrect whitespace, for example, and (worse) it's inconsistent:

@app.route("/getWord", methods=['GET'])
                    # ^ yes
@app.route("/postWord",methods=["GET","POST"])
                     # ^ preferably not, but *definitely* be consistent




if 'long' in request.args and 'lat' in request.args and 'radius' in request.args and 'ids' in request.args:


Would be neater as:

if all(arg in request.args for arg in ['long', 'lat', 'radius', 'ids']):


This also allows you to extract a REQUIRED_ARGS constant if you wish.



Your exception handling is too broad. For example:

try:
    lat = float(request.args['lat'])
    lng = float(request.args['long'])
    word = str(request.args['word'])
    definition = str(request.args['definition'])
    return pword(lat,lng,word,definition)
except Exception as e:
    logging.info(str(e))


You should have as little as possible inside the try block, and avoid bare except. 

What could actually go wrong inside the try block? E.g. for the first two lines, given that you've already checked for the keys, only a ValueError would get thrown. And as you have similarly broad error handling in pword, you'd only get an error out of that line if the logger itself failed.

Also note that there's a logging.exception that actually takes an error object and deals with the traceback correctly.



You note correctly that the naming is poor. It is also, again, inconsistent:

def fword(lon,lat,...
def pword(lat,lng,...


These parameters have the same meaning, so should have the same name (and ideally the same order). Given that you'd always expect the pair, you could even use a (latitude, longitude) tuple as e.g. a coords argument. Also:

def pword(...):
def postWord():




Finally you have a bunch of functions that all create a cursor and connection, and two of them are almost identical but for the query string and arguments. Look into whether you could reduce duplication by abstracting those similarities out.