Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion GeoFire.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "GeoFire"
s.version = "4.0.1"
s.version = "4.0.2"
s.summary = "Realtime location queries with Firebase."
s.homepage = "https://github.com/firebase/geofire-objc"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand All @@ -13,4 +13,15 @@ Pod::Spec.new do |s|
s.frameworks = 'CoreLocation', 'FirebaseDatabase'
s.requires_arc = true
s.static_framework = true

s.subspec 'Utils' do |utils|
utils.source_files = [
"GeoFire/**/GFUtils*.[mh]",
"GeoFire/**/GFGeoQueryBounds*.[mh]",
"GeoFire/**/GFGeoHashQuery*.[mh]",
"GeoFire/**/GFGeoHash*.[mh]",
"GeoFire/**/GFBase32Utils*.[mh]",
]
utils.frameworks = 'CoreLocation'
end
end
95 changes: 90 additions & 5 deletions GeoFire.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
/* Begin PBXBuildFile section */
38FC6CB01CFBE57C002AB722 /* GeoFireTest.m in Sources */ = {isa = PBXBuildFile; fileRef = FB8C8845196D55630061AC0F /* GeoFireTest.m */; };
38FC6CB71CFBF907002AB722 /* GFQueryTest.m in Sources */ = {isa = PBXBuildFile; fileRef = FB8C884B196D93E10061AC0F /* GFQueryTest.m */; };
6BEF7C24CC872BF448A38A08 /* Pods_GeoFire.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2A0F34665A098DBFD058BB7 /* Pods_GeoFire.framework */; };
88E2DDBA2555A0CB0074B534 /* GFUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 88E2DDB92555A0CB0074B534 /* GFUtils.m */; };
88E2DDBF2555A1D10074B534 /* GFUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 88E2DDBE2555A0E10074B534 /* GFUtils.h */; settings = {ATTRIBUTES = (Public, ); }; };
88FE4170255ADAB8007CD30B /* GFUtilsTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 88FE416F255ADAB8007CD30B /* GFUtilsTest.m */; };
88FE4191255AEE00007CD30B /* GFGeoQueryBounds.m in Sources */ = {isa = PBXBuildFile; fileRef = 88FE4190255AEE00007CD30B /* GFGeoQueryBounds.m */; };
88FE419A255AF19D007CD30B /* GFGeoQueryBounds.h in Headers */ = {isa = PBXBuildFile; fileRef = 88FE4196255AEE74007CD30B /* GFGeoQueryBounds.h */; };
8AED1D3F9A39C9CF90BA0507 /* Pods_GeoFireTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6377B790CCD903BBDCE21124 /* Pods_GeoFireTests.framework */; };
8D8A0C2A22BAB2E30052675A /* GeoFire.h in Headers */ = {isa = PBXBuildFile; fileRef = FBA358C419655FED00A86282 /* GeoFire.h */; settings = {ATTRIBUTES = (Public, ); }; };
8D8A0C4022BAD8120052675A /* GeoFire_framework.h in Headers */ = {isa = PBXBuildFile; fileRef = 8D8A0C3222BAD8120052675A /* GeoFire_framework.h */; settings = {ATTRIBUTES = (Public, ); }; };
FB3B32BF196FF07000E47633 /* GFCircleQuery.h in Headers */ = {isa = PBXBuildFile; fileRef = FB3B32BD196FF07000E47633 /* GFCircleQuery.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -67,11 +74,22 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
175CE9FEE1AB366D88F05A39 /* Pods-GeoFireTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GeoFireTests.release.xcconfig"; path = "Target Support Files/Pods-GeoFireTests/Pods-GeoFireTests.release.xcconfig"; sourceTree = "<group>"; };
6377B790CCD903BBDCE21124 /* Pods_GeoFireTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GeoFireTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
8160AC726231A16E7A6C7902 /* Pods-GeoFireTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GeoFireTests.debug.xcconfig"; path = "Target Support Files/Pods-GeoFireTests/Pods-GeoFireTests.debug.xcconfig"; sourceTree = "<group>"; };
88E2DDB92555A0CB0074B534 /* GFUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GFUtils.m; sourceTree = "<group>"; };
88E2DDBE2555A0E10074B534 /* GFUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GFUtils.h; sourceTree = "<group>"; };
88FE416F255ADAB8007CD30B /* GFUtilsTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GFUtilsTest.m; sourceTree = "<group>"; };
88FE4190255AEE00007CD30B /* GFGeoQueryBounds.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GFGeoQueryBounds.m; sourceTree = "<group>"; };
88FE4196255AEE74007CD30B /* GFGeoQueryBounds.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GFGeoQueryBounds.h; sourceTree = "<group>"; };
8D8A0C3022BAD8120052675A /* GeoFire_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GeoFire_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; };
8D8A0C3222BAD8120052675A /* GeoFire_framework.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeoFire_framework.h; sourceTree = "<group>"; };
8D8A0C3322BAD8120052675A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8D8A0C3D22BAD8120052675A /* GeoFire_frameworkTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GeoFire_frameworkTests.m; sourceTree = "<group>"; };
8D8A0C3F22BAD8120052675A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9FBDD33A8C895D2A5F756916 /* Pods-GeoFire.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GeoFire.release.xcconfig"; path = "Target Support Files/Pods-GeoFire/Pods-GeoFire.release.xcconfig"; sourceTree = "<group>"; };
A38E76CC7DA12FC1F1CB8532 /* Pods-GeoFire.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GeoFire.debug.xcconfig"; path = "Target Support Files/Pods-GeoFire/Pods-GeoFire.debug.xcconfig"; sourceTree = "<group>"; };
B2A0F34665A098DBFD058BB7 /* Pods_GeoFire.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GeoFire.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FB3B32BD196FF07000E47633 /* GFCircleQuery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GFCircleQuery.h; sourceTree = "<group>"; };
FB3B32C1196FF27600E47633 /* GFRegionQuery.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GFRegionQuery.h; sourceTree = "<group>"; };
FB8C8845196D55630061AC0F /* GeoFireTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeoFireTest.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -118,6 +136,7 @@
files = (
FBA358EA1965659A00A86282 /* CoreLocation.framework in Frameworks */,
FBA358C019655FED00A86282 /* Foundation.framework in Frameworks */,
6BEF7C24CC872BF448A38A08 /* Pods_GeoFire.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -130,6 +149,7 @@
FBA358D119655FED00A86282 /* UIKit.framework in Frameworks */,
FBA358CF19655FED00A86282 /* Foundation.framework in Frameworks */,
FBA358D419655FED00A86282 /* libGeoFire.a in Frameworks */,
8AED1D3F9A39C9CF90BA0507 /* Pods_GeoFireTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -157,6 +177,10 @@
E46957980046F22A570AA7E1 /* Pods */ = {
isa = PBXGroup;
children = (
A38E76CC7DA12FC1F1CB8532 /* Pods-GeoFire.debug.xcconfig */,
9FBDD33A8C895D2A5F756916 /* Pods-GeoFire.release.xcconfig */,
8160AC726231A16E7A6C7902 /* Pods-GeoFireTests.debug.xcconfig */,
175CE9FEE1AB366D88F05A39 /* Pods-GeoFireTests.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
Expand All @@ -168,6 +192,7 @@
FBA358EB1965683400A86282 /* GFQuery.h */,
FB3B32BD196FF07000E47633 /* GFCircleQuery.h */,
FB3B32C1196FF27600E47633 /* GFRegionQuery.h */,
88E2DDBE2555A0E10074B534 /* GFUtils.h */,
);
path = API;
sourceTree = "<group>";
Expand All @@ -185,6 +210,9 @@
FBA358F0196573A700A86282 /* GFGeoHash.m */,
FBA35910196A978100A86282 /* GFGeoHashQuery.h */,
FBA35911196A978100A86282 /* GFGeoHashQuery.m */,
88E2DDB92555A0CB0074B534 /* GFUtils.m */,
88FE4196255AEE74007CD30B /* GFGeoQueryBounds.h */,
88FE4190255AEE00007CD30B /* GFGeoQueryBounds.m */,
);
path = Implementation;
sourceTree = "<group>";
Expand Down Expand Up @@ -219,6 +247,8 @@
FBA358BF19655FED00A86282 /* Foundation.framework */,
FBA358CD19655FED00A86282 /* XCTest.framework */,
FBA358D019655FED00A86282 /* UIKit.framework */,
B2A0F34665A098DBFD058BB7 /* Pods_GeoFire.framework */,
6377B790CCD903BBDCE21124 /* Pods_GeoFireTests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand All @@ -244,15 +274,16 @@
FBA358D519655FED00A86282 /* GeoFireTests */ = {
isa = PBXGroup;
children = (
FB8C884B196D93E10061AC0F /* GFQueryTest.m */,
FB8C8845196D55630061AC0F /* GeoFireTest.m */,
FB8C884B196D93E10061AC0F /* GFQueryTest.m */,
FBA3591B196AAB6500A86282 /* GFGeoHashQueryTest.m */,
FBA358F41965797C00A86282 /* GFGeoHashTest.m */,
FBA358D619655FED00A86282 /* Supporting Files */,
88FE416F255ADAB8007CD30B /* GFUtilsTest.m */,
FB8C8847196D561D0061AC0F /* TestHelpers.h */,
FB8C8848196D561D0061AC0F /* TestHelpers.m */,
FB8C884D196D96180061AC0F /* GFRealDataTest.h */,
FB8C884E196D96180061AC0F /* GFRealDataTest.m */,
FBA358D619655FED00A86282 /* Supporting Files */,
);
path = GeoFireTests;
sourceTree = "<group>";
Expand Down Expand Up @@ -283,9 +314,11 @@
8D8A0C2A22BAB2E30052675A /* GeoFire.h in Headers */,
FBA3590E1965CAE800A86282 /* GFQuery+Private.h in Headers */,
FBA358ED1965683400A86282 /* GFQuery.h in Headers */,
88FE419A255AF19D007CD30B /* GFGeoQueryBounds.h in Headers */,
FB3B32BF196FF07000E47633 /* GFCircleQuery.h in Headers */,
FB3B32C4197001C500E47633 /* GFRegionQuery.h in Headers */,
FBA358F1196573A700A86282 /* GFGeoHash.h in Headers */,
88E2DDBF2555A1D10074B534 /* GFUtils.h in Headers */,
FBA35912196A978100A86282 /* GFGeoHashQuery.h in Headers */,
FBA35919196AA43100A86282 /* GFBase32Utils.h in Headers */,
);
Expand Down Expand Up @@ -317,6 +350,7 @@
isa = PBXNativeTarget;
buildConfigurationList = FBA358DF19655FED00A86282 /* Build configuration list for PBXNativeTarget "GeoFire" */;
buildPhases = (
9DEEF31FA1B38C2C5A335363 /* [CP] Check Pods Manifest.lock */,
FBA358B819655FED00A86282 /* Sources */,
FBA358B919655FED00A86282 /* Frameworks */,
FBA358BA19655FED00A86282 /* CopyFiles */,
Expand All @@ -336,6 +370,7 @@
isa = PBXNativeTarget;
buildConfigurationList = FBA358E219655FED00A86282 /* Build configuration list for PBXNativeTarget "GeoFireTests" */;
buildPhases = (
200FAA13B8732BB52CAAD1FB /* [CP] Check Pods Manifest.lock */,
FBA358C819655FED00A86282 /* Sources */,
FBA358C919655FED00A86282 /* Frameworks */,
FBA358CA19655FED00A86282 /* Resources */,
Expand Down Expand Up @@ -363,9 +398,6 @@
8D8A0C2F22BAD8120052675A = {
CreatedOnToolsVersion = 10.2;
};
FBA358CB19655FED00A86282 = {
TestTargetID = FBA358BB19655FED00A86282;
};
};
};
buildConfigurationList = FBA358B719655FED00A86282 /* Build configuration list for PBXProject "GeoFire" */;
Expand Down Expand Up @@ -407,6 +439,50 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
200FAA13B8732BB52CAAD1FB /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-GeoFireTests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
9DEEF31FA1B38C2C5A335363 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-GeoFire-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
FB8C87EE196AF7270061AC0F /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -434,7 +510,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
88E2DDBA2555A0CB0074B534 /* GFUtils.m in Sources */,
FBA358F2196573A700A86282 /* GFGeoHash.m in Sources */,
88FE4191255AEE00007CD30B /* GFGeoQueryBounds.m in Sources */,
FBA3591A196AA43100A86282 /* GFBase32Utils.m in Sources */,
FBA35913196A978100A86282 /* GFGeoHashQuery.m in Sources */,
FBA358C719655FED00A86282 /* GeoFire.m in Sources */,
Expand All @@ -449,6 +527,7 @@
FBA358F51965797C00A86282 /* GFGeoHashTest.m in Sources */,
FB8C884F196D96180061AC0F /* GFRealDataTest.m in Sources */,
FBA3591C196AAB6500A86282 /* GFGeoHashQueryTest.m in Sources */,
88FE4170255ADAB8007CD30B /* GFUtilsTest.m in Sources */,
38FC6CB71CFBF907002AB722 /* GFQueryTest.m in Sources */,
38FC6CB01CFBE57C002AB722 /* GeoFireTest.m in Sources */,
FB8C8849196D561D0061AC0F /* TestHelpers.m in Sources */,
Expand Down Expand Up @@ -660,6 +739,7 @@
};
FBA358E019655FED00A86282 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A38E76CC7DA12FC1F1CB8532 /* Pods-GeoFire.debug.xcconfig */;
buildSettings = {
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = NO;
Expand Down Expand Up @@ -688,6 +768,7 @@
};
FBA358E119655FED00A86282 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9FBDD33A8C895D2A5F756916 /* Pods-GeoFire.release.xcconfig */;
buildSettings = {
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = NO;
Expand Down Expand Up @@ -716,7 +797,9 @@
};
FBA358E319655FED00A86282 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 8160AC726231A16E7A6C7902 /* Pods-GeoFireTests.debug.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = YGAZHQXHH4;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
Expand Down Expand Up @@ -750,7 +833,9 @@
};
FBA358E419655FED00A86282 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 175CE9FEE1AB366D88F05A39 /* Pods-GeoFireTests.release.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = YGAZHQXHH4;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
Expand Down
51 changes: 51 additions & 0 deletions GeoFire/API/GFUtils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Firebase GeoFire iOS Library
*
* Copyright © 2020 Firebase - All Rights Reserved
* https://firebase.google.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binaryform must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY FIREBASE AS IS AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL FIREBASE BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

NS_ASSUME_NONNULL_BEGIN

/**
* Utility methods for storing locations.
*/
@interface GFUtils : NSObject

+ (NSString *)geoHashForLocation:(CLLocationCoordinate2D)location;

+ (NSString *)geoHashForLocation:(CLLocationCoordinate2D)location
withPrecision:(NSInteger)precision;

+ (double)distanceFromLocation:(CLLocation *)locationA
toLocation:(CLLocation *)locationB;

+ (NSArray *)queryBoundsForLocation:(CLLocationCoordinate2D)location withRadius:(double)radius;

@end

NS_ASSUME_NONNULL_END
47 changes: 47 additions & 0 deletions GeoFire/Implementation/GFGeoQueryBounds.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Firebase GeoFire iOS Library
*
* Copyright © 2020 Firebase - All Rights Reserved
* https://firebase.google.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binaryform must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY FIREBASE AS IS AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL FIREBASE BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <MapKit/MapKit.h>

#import "GFGeoHash.h"

NS_ASSUME_NONNULL_BEGIN

@interface GFGeoQueryBounds : NSObject<NSCopying>

@property (nonatomic, strong, readonly) NSString *startValue;
@property (nonatomic, strong, readonly) NSString *endValue;

- (instancetype)initWithStartValue:(NSString *)startValue endValue:(NSString *)endValue;
+ (GFGeoQueryBounds *)boundsWithStartValue:(NSString *)startValue endValue:(NSString *)endValue;

@end

NS_ASSUME_NONNULL_END
Loading