Can store/retrieve additional data in a Geo member?


Is there a way to save and retrieve additional data for each member in a Geo key?

Seems like each member inside a Geo can only keep its name and coordination, but I need to save a custom additional value for it. For example, after searching for cities, retrieve the weather info as well.

And by the way, is Geo part of the Redis core functionalities, or it’s a module that needs to be added?


Hi Bobby,

Geo is part of the Redis core functionality.

You’re right the geo structures only store a name and a coordinate. If you need additional metadata, we recommend having the “name” reference another key (e.g., a hash), where you can store the additional data.