arjunmehta / node-georedis

Super fast geo queries.
MIT License
192 stars 33 forks source link

Add additional properties? #6

Closed komocode closed 8 years ago

komocode commented 8 years ago

I need to save additional data ("authorID" and "workshopID") to the locations saved. Right now there's only a field for the 'locationName'. The only way I can save the extra data is if I save a JSON as a string into the locationName field. This means I have to parse each locationName as a JSON when I retrieve the location. Is there any other way to do this?

arjunmehta commented 8 years ago

@komocode Ah, yes this is beyond the scope of this project, I think and would significantly change the architecture. You would normally have another set you could look up data based on location names.

It's neat that you are using JSON encoding to store that info though :) Crafty!