Finish locating function
Add poi search and fix bugs