Skip to content

(Question) Which kind of values can the distance string from geoSearchWith have? #3028

@AndreVelde

Description

@AndreVelde

Description

Wanted to update to the latest major version and saw that when using the method geoSearchWith the distance field it returns changed from a number to a string type. Only now wonder what kind of string format I now have to deal with and how to parse it back to a number format.

For clarification this is the way I call this method:
const locations = await this.client.geoSearchWith( redisKey, { latitude: userPosition.latitude, longitude: userPosition.longitude, }, { radius: radius, unit: 'm', }, [GEO_REPLY_WITH.DISTANCE, GEO_REPLY_WITH.COORDINATES], { SORT: 'ASC' }, );

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions