first draft of location get api
fixed a few syntax errors