RealmGeoQueries alternatives and similar libraries
Based on the "Database" category.
Alternatively, view RealmGeoQueries alternatives based on common mentions on social networks and blogs.
-
MMKV
An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS. -
YapDatabase
YapDB is a collection/key/value store with a plugin architecture. It's built atop sqlite, for Swift & objective-c developers. -
ParseAlternatives
DISCONTINUED. GraphQLite is a toolkit to work with GraphQL servers easily. It also provides several other features to make life easier during iOS application development. [Moved to: https://github.com/relatedcode/GraphQLite] -
Unrealm
Unrealm is an extension on RealmCocoa, which enables Swift native types to be saved in Realm. -
Prephirences
Prephirences is a Swift library that provides useful protocols and convenience methods to manage application preferences, configurations and app-state. UserDefaults -
PredicateEditor
A GUI for dynamically creating NSPredicates at runtime to query data in your iOS app. -
realm-cocoa-converter
A library that provides the ability to import/export Realm files from a variety of data container formats. -
SecureDefaults
Elevate the security of your UserDefaults with this lightweight wrapper that adds a layer of AES-256 encryption -
MySQL
A stand-alone Swift wrapper around the MySQL client library, enabling access to MySQL servers. -
PersistenceKit
Store and retrieve Codable objects to various persistence layers, in a couple lines of code! -
PersistentStorageSerializable
Swift library that makes easier to serialize the user's preferences (app's settings) with system User Defaults or Property List file on disk. -
MongoDB
A stand-alone Swift wrapper around the mongo-c client library, enabling access to MongoDB servers. -
PostgreSQL
A stand-alone Swift wrapper around the libpq client library, enabling access to PostgreSQL servers. -
ObjectiveRocks
An Objective-C wrapper for RocksDB - A Persistent Key-Value Store for Flash and RAM Storage. -
FileMaker
A stand-alone Swift wrapper around the FileMaker XML Web publishing interface, enabling access to FileMaker servers.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of RealmGeoQueries or a related project?
README
RealmGeoQueries simplifies spatial queries with Realm Cocoa. In the absence of and official functions, this library provide the possibility to do proximity search. It's not necessary to include Geohash or other types of indexes in the model class as it only needs latitude and longitude properties.
How To Get Started
Installation with CocoaPods
platform :ios, '9.0'
pod "RealmGeoQueries"
Installation with Carthage
Add to mhergon/RealmGeoQueries
project to your Cartfile
github "mhergon/RealmGeoQueries"
Drag GeoQueries.framework
, RealmSwift.framework
and Realm.framework
from Carthage/Build/ to the “Linked Frameworks and Libraries” section of your Xcode project’s “General” settings.
Only on iOS/tvOS/watchOS: On your application targets "Build Phases" settings tab, click the "+" icon and choose "New Run Script Phase". Create a Run Script with the following contents:
/usr/local/bin/carthage copy-frameworks
and add the paths to the frameworks you want to use under "Input Files", e.g.:
$(SRCROOT)/Carthage/Build/iOS/GeoQueries.framework
$(SRCROOT)/Carthage/Build/iOS/Realm.framework
$(SRCROOT)/Carthage/Build/iOS/RealmSwift.framework
Swift Package Manager
Once you have your Swift package set up, adding RealmGeoQueries as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/mhergon/RealmGeoQueries.git", from: "1.4.0")
]
Manually installation
Download (right-click) and add to your project.
Requirements
Version | Language | Minimum iOS Target |
---|---|---|
1.4 | Swift 5.x / Realm 5.x | iOS 9 |
1.3 | Swift 4.x / Realm 3.x | iOS 9 |
1.2 | Swift 3.0 / Realm 2.x | iOS 9 |
1.1 | Swift 2.x / Realm 2.x | iOS 8 |
Usage
First, import module;
import GeoQueries
Model must have a latitude and longitude keys, that have to be named "lat" and "lng" respectively. You can use another property names (use "latitudeKey" and "longitudeKey" parameters).
Search with MapView MKCoordinateRegion;
let results = try! Realm()
.findInRegion(type: YourModelClass.self, region: mapView.region)
Search around the center with radius in meters;
let results = try! Realm()
.findNearby(type: YourModelClass.self, origin: mapView.centerCoordinate, radius: 500, sortAscending: nil)
Filter Realm results with radius in meters;
let results = try! Realm()
.objects(YourModelClass.self)
.filter("type", "restaurant")
.filterGeoRadius(center: mapView.centerCoordinate, radius: 500, sortAscending: nil)
See GeoQueries.swift
for more options.
Contact
License
Licensed under Apache License v2.0. Copyright 2020 Marc Hervera.
*Note that all licence references and agreements mentioned in the RealmGeoQueries README section above
are relevant to that project's source code only.