Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

How to save Location(android.location.Location) object #76

Open
anoopbryan2 opened this issue Feb 29, 2016 · 2 comments
Open

How to save Location(android.location.Location) object #76

anoopbryan2 opened this issue Feb 29, 2016 · 2 comments

Comments

@anoopbryan2
Copy link

If I am saving the Location(android.location.Location) object in snappydb and fetching back snappyDB giving me an error: "Maybe you tried to retrieve an array using this method ? please use getArray instead Encountered unregistered"

@davidtcdeveloper
Copy link

davidtcdeveloper commented Apr 15, 2016

The class android.location.Location does not have a constructor without arguments. I don't think you will be able to retrieve it using SnappyDB.

@vladaman
Copy link

I'd suggest you convert location to simple GeoHash and store it as string.
See https://github.com/kungfoo/geohash-java

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants