fixed location endpoint, rewrote markers for the location endpoint

 old code in comments