Added some logic to sort places based on the distance to the current location.
Fixed a small crash with cursor not properly checking for empty.
Merge branch 'master' into quadkeys_cache
Use cache to add/remove pins from display.