Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akhenakh/regionagogo
/ functions
Functions
96 in github.com/akhenakh/regionagogo
⨍
Functions
96
◇
Types & classes
23
↓ 13 callers
Method
Close
Close the DB
geofence.go:30
↓ 8 callers
Method
FenceByID
FenceByID returns a region from DB by its id
db/boltdb/geofence_boltdb.go:240
↓ 8 callers
Method
Start
()
importer.go:41
↓ 7 callers
Function
NewGeoFenceBoltDB
NewGeoFenceBoltDB creates or reopen a bolt geo database
db/boltdb/geofence_boltdb.go:89
↓ 7 callers
Function
createTempDB
(t testing.TB)
db/boltdb/geofence_boltdb_test.go:73
↓ 5 callers
Method
StubbingQuery
StubbingQuery returns the fence for the corresponding lat, lng point
db/boltdb/geofence_boltdb.go:276
↓ 4 callers
Method
HighAtDimension
HighAtDimension returns an integer representing the higher bound at the requested dimension.
stree.go:20
↓ 4 callers
Method
Len
()
fence.go:131
↓ 4 callers
Method
LowAtDimension
LowAtDimension returns an integer representing the lower bound at the requested dimension.
stree.go:16
↓ 4 callers
Method
String
()
cmd/ragogenfromjson/main.go:20
↓ 4 callers
Function
WithDebug
WithDebug enable debug
db/boltdb/geofence_boltdb.go:75
↓ 3 callers
Method
GetRegion
Obtains the region at a given position.
regionagogosvc/regionagogosvc.pb.go:93
↓ 3 callers
Method
StubbingQuery
returns the fence for the corresponding lat, lng coordinates
geofence.go:18
↓ 2 callers
Method
StoreFence
Store a Fence into the DB
geofence.go:27
↓ 2 callers
Method
ToGeoJSON
ToGeoJSON transforms a Region to a valid GeoJSON
fence.go:40
↓ 2 callers
Method
index
index indexes each cells of the cover and set its loopID
db/boltdb/geofence_boltdb.go:160
↓ 2 callers
Function
itob
itob returns an 8-byte big endian representation of v.
db/boltdb/geofence_boltdb.go:463
↓ 2 callers
Function
preparePolygon
preparePolygon transform a geojson polygons into FenceStorage
importer.go:116
↓ 1 callers
Method
Close
()
mobile/mobile.go:44
↓ 1 callers
Method
FenceByID
returns a Fence by it's storage id
geofence.go:15
↓ 1 callers
Function
NewGeoDB
()
mobile/mobile.go:20
↓ 1 callers
Function
NewGeoFenceIdx
NewGeoFenceIdx a geo index over a BoltDB storage
db/boltdb/geofence_boltdb.go:105
↓ 1 callers
Method
OpenDB
(path string)
mobile/mobile.go:30
↓ 1 callers
Method
QueryHandler
(lat, lng float64)
mobile/mobile.go:64
↓ 1 callers
Method
Set
(value string)
cmd/ragogenfromjson/main.go:24
↓ 1 callers
Method
importGeoData
importGeoData loads all existing cells into the segment tree
db/boltdb/geofence_boltdb.go:195
↓ 1 callers
Function
isClockwisePolygon
(p geojson.Coordinates)
importer.go:186
↓ 1 callers
Function
reversePolygon
(p geojson.Coordinates)
importer.go:198
↓ 1 callers
Function
s2RadialAreaMeters
(radius float64)
db/boltdb/geofence_boltdb.go:412
Function
BenchmarkCities
(tb *testing.B)
db/boltdb/geofence_boltdb_test.go:107
Method
Descriptor
()
regionagogosvc/regionagogosvc.pb.go:44
Method
Descriptor
()
regionagogosvc/regionagogosvc.pb.go:67
Method
Descriptor
()
geostore/geostore.pb.go:41
Method
Descriptor
()
geostore/geostore.pb.go:66
Method
Descriptor
()
geostore/geostore.pb.go:90
Method
FenceByID
(id int)
mobile/mobile.go:48
Method
GetCellunion
()
geostore/geostore.pb.go:92
Method
GetCode
()
regionagogosvc/regionagogosvc.pb.go:69
Method
GetData
()
geostore/geostore.pb.go:50
Method
GetLat
()
geostore/geostore.pb.go:68
Method
GetLatitude
()
regionagogosvc/regionagogosvc.pb.go:46
Method
GetLng
()
geostore/geostore.pb.go:75
Method
GetLongitude
()
regionagogosvc/regionagogosvc.pb.go:53
Method
GetPoints
()
geostore/geostore.pb.go:43
Method
GetRegion
(ctx context.Context, in *Point, opts ...grpc.CallOption)
regionagogosvc/regionagogosvc.pb.go:104
Method
GetRegion
Obtains the region at a given position.
regionagogosvc/regionagogosvc.pb.go:117
Method
GetRegion
(ctx context.Context, p *pb.Point)
cmd/regionagogo/main.go:23
Method
ID
ID should be a unique ID representing this interval. This is used to identify which interval to delete from the tree if there are duplicates.
stree.go:32
Method
Less
(i, j int)
fence.go:133
Function
NewFence
()
mobile/mobile.go:25
Function
NewFenceFromStorage
NewFenceFromStorage returns a Fence from a FenceStorage Fence can be extended, FenceStorage is a protocol buffer instance
fence.go:21
Function
NewGeoJSONImport
ImportGeoJSONFile will load a geo json and save the polygons into the GeoFence for later lookup importFields are the properties fields names you want
importer.go:29
Function
NewRegionAGogoClient
(cc *grpc.ClientConn)
regionagogosvc/regionagogosvc.pb.go:100
Method
OverlapsAtDimension
OverlapsAtDimension should return a bool indicating if the provided interval overlaps this interval at the dimension requested.
stree.go:24
Method
ProtoMessage
()
regionagogosvc/regionagogosvc.pb.go:43
Method
ProtoMessage
()
regionagogosvc/regionagogosvc.pb.go:66
Method
ProtoMessage
()
geostore/geostore.pb.go:40
Method
ProtoMessage
()
geostore/geostore.pb.go:65
Method
ProtoMessage
()
geostore/geostore.pb.go:89
Method
RadiusQuery
RadiusQuery is performing a radius query
geofence.go:24
Method
RadiusQuery
RadiusQuery is performing a radius query
db/boltdb/geofence_boltdb.go:381
Method
RectQuery
RectQuery perform rectangular query ur upper right bl bottom left
geofence.go:21
Method
RectQuery
RectQuery perform rectangular query ur upper right bl bottom left
db/boltdb/geofence_boltdb.go:340
Function
RegisterRegionAGogoServer
(s *grpc.Server, srv RegionAGogoServer)
regionagogosvc/regionagogosvc.pb.go:120
Method
Reset
()
regionagogosvc/regionagogosvc.pb.go:41
Method
Reset
()
regionagogosvc/regionagogosvc.pb.go:64
Method
Reset
()
geostore/geostore.pb.go:38
Method
Reset
()
geostore/geostore.pb.go:63
Method
Reset
()
geostore/geostore.pb.go:87
Method
StoreFence
StoreFence stores a fence into the database and load its index in memory
db/boltdb/geofence_boltdb.go:418
Method
String
()
regionagogosvc/regionagogosvc.pb.go:42
Method
String
()
regionagogosvc/regionagogosvc.pb.go:65
Method
String
()
geostore/geostore.pb.go:39
Method
String
()
geostore/geostore.pb.go:64
Method
String
()
geostore/geostore.pb.go:88
Method
Swap
(i, j int)
fence.go:132
Function
TestBadCover
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:216
Function
TestBogusLoop
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:246
Function
TestCCW
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:131
Function
TestCities
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:151
Function
TestOverlappingRegion
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:182
Function
TestStorage
(t *testing.T)
mobile/mobile_test.go:9
Function
TestStorage
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:84
Method
ToGeoJSON
ToGeoJSON transforms a set of Fences to a valid GeoJSON
fence.go:84
Function
WithCachedEntries
WithCachedEntries enable an LRU cache default is disabled
db/boltdb/geofence_boltdb.go:68
Function
WithCoverBucket
WithCoverBucket set the cover bucket name
db/boltdb/geofence_boltdb.go:61
Function
WithLoopBucket
WithLoopBucket set the loop bucket name
db/boltdb/geofence_boltdb.go:54
Function
WithMultipleFences
WithMultipleFences enable multi fences in responses
geofence.go:42
Function
WithReadOnly
WithReadOnly enable read only db
db/boltdb/geofence_boltdb.go:82
Function
_RegionAGogo_GetRegion_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
regionagogosvc/regionagogosvc.pb.go:124
Function
init
()
regionagogosvc/regionagogosvc.pb.go:76
Function
init
()
geostore/geostore.pb.go:99
Function
main
()
cmd/regionagogo/main.go:76
Function
main
()
cmd/regionagogoclient/main.go:18
Function
main
()
cmd/ragogenfromjson/main.go:33
Method
queryHandler
queryHandler takes a lat & lng query params and return a JSON with the country of the coordinate
cmd/regionagogo/main.go:44