• antirez's avatar
    Geo: from lat,lon API to lon,lat API according to GIS standard · fa9d62d3
    antirez authored
    The GIS standard and all the major DBs implementing GIS related
    functions take coordinates as x,y that is longitude,latitude.
    It was a bad start for Redis to do things differently, so even if this
    means that existing users of the Geo module will be required to change
    their code, Redis now conforms to the standard.
    
    Usually Redis is very backward compatible, but this is not an exception
    to this rule, since this is the first Geo implementation entering the
    official Redis source code. It is not wise to try to be backward
    compatible with code forks... :-)
    
    Close #2637.
    fa9d62d3
geohash.h 3.76 KB