redis-om / Circle
A builder that defines a circle.
• new Circle()
• get feet(): this
Sets the units to feet.
this
This instance.
• get foot(): this
Sets the units to feet.
this
This instance.
• get ft(): this
Sets the units to feet.
this
This instance.
• get kilometer(): this
Sets the units to kilometers.
this
This instance.
• get kilometers(): this
Sets the units to kilometers.
this
This instance.
• get km(): this
Sets the units to kilometers.
this
This instance.
• get m(): this
Sets the units to meters.
this
This instance.
• get meter(): this
Sets the units to meters.
this
This instance.
• get meters(): this
Sets the units to meters.
this
This instance.
• get mi(): this
Sets the units to miles.
this
This instance.
• get mile(): this
Sets the units to miles.
this
This instance.
• get miles(): this
Sets the units to miles.
this
This instance.
▸ latitude(value): Circle
Sets the latitude. If not set, defaults to 0.0.
| Name | Type | Description |
|---|---|---|
value |
number |
The latitude. |
This instance.
▸ longitude(value): Circle
Sets the longitude. If not set, defaults to 0.0.
| Name | Type | Description |
|---|---|---|
value |
number |
The longitude. |
This instance.
▸ origin(point): Circle
Sets the origin of the circle using a Point. If not set, defaults to Null Island.
| Name | Type | Description |
|---|---|---|
point |
Point |
A Point containing the longitude and latitude of the origin. |
This instance.
▸ origin(longitude, latitude): Circle
Sets the origin of the circle. If not set, defaults to Null Island.
| Name | Type | Description |
|---|---|---|
longitude |
number |
The longitude. |
latitude |
number |
The latitude. |
This instance.
▸ radius(size): Circle
Sets the radius of the Circle. Defaults to 1. If units are not specified, defaults to meters.
| Name | Type | Description |
|---|---|---|
size |
number |
The radius of the circle. |
This instance.