All Projects → Orlandster → Geo On Fire

Orlandster / Geo On Fire

Licence: mit
A library to create high performance geolocation queries for Firebase. Checkout the demos: https://run.plnkr.co/plunks/AYaN8ABEDcMntgbJyLVW/ and https://run.plnkr.co/plunks/xJgstAvXYcp0w7MbOOjm/

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Geo On Fire

geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (-48.15%)
Mutual labels:  geocoding, geo, geolocation
Maps Api For Javascript Examples
Self-contained examples for Maps API for JavaScript v3.
Stars: ✭ 130 (+140.74%)
Mutual labels:  geospatial, geo, geocoding
Examples
Self-contained examples for the legacy Maps API for JavaScript.
Stars: ✭ 78 (+44.44%)
Mutual labels:  geospatial, geo, geocoding
Atlas
🌎 Atlas is a set of APIs for looking up information about locations
Stars: ✭ 21 (-61.11%)
Mutual labels:  geocoding, geo, geospatial
Orb
Types and utilities for working with 2d geometry in Golang
Stars: ✭ 378 (+600%)
Mutual labels:  geospatial, geo
H3 Py
Python bindings for H3, a hierarchical hexagonal geospatial indexing system
Stars: ✭ 354 (+555.56%)
Mutual labels:  geospatial, geocoding
Geofirestore Js
Location-based querying and filtering using Firebase Firestore.
Stars: ✭ 436 (+707.41%)
Mutual labels:  firebase, geolocation
Places
🌐 Turn any <input> into an address autocomplete
Stars: ✭ 5,322 (+9755.56%)
Mutual labels:  geolocation, geo
Election Geodata
Precinct shapes (and vote results) for US elections past, present, and future
Stars: ✭ 289 (+435.19%)
Mutual labels:  geospatial, geo
Mapsui
Mapsui is a .NET Map component for WPF, Xamarin.Forms, Xamarin.Android, Xamarin.iOS and UWP
Stars: ✭ 447 (+727.78%)
Mutual labels:  geospatial, geo
Leaflet Geosearch
(Leaflet) GeoSearch / GeoCode provider
Stars: ✭ 666 (+1133.33%)
Mutual labels:  geolocation, geocoding
Gmscore
Free implementation of Play Services
Stars: ✭ 4,356 (+7966.67%)
Mutual labels:  firebase, geolocation
Googleapi
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Stars: ✭ 346 (+540.74%)
Mutual labels:  geolocation, geocoding
Geofirex
🌐 📍 Geolocation Queries with Firestore & RxJS
Stars: ✭ 396 (+633.33%)
Mutual labels:  firebase, geolocation
Solaris
CosmiQ Works Geospatial Machine Learning Analysis Toolkit
Stars: ✭ 290 (+437.04%)
Mutual labels:  geospatial, geo
Go Geom
Package geom implements efficient geometry types for geospatial applications.
Stars: ✭ 456 (+744.44%)
Mutual labels:  geospatial, geo
Proj4.jl
Julia wrapper for the PROJ cartographic projections library
Stars: ✭ 23 (-57.41%)
Mutual labels:  geospatial, geo
Z1p
Zip Codes Validation and Parse.
Stars: ✭ 17 (-68.52%)
Mutual labels:  geolocation, geo
Geo From Ip
Get geolocation 🌐 information about an IP 📲
Stars: ✭ 24 (-55.56%)
Mutual labels:  geolocation, geo
Pelias Android Sdk
Android sdk for pelias
Stars: ✭ 20 (-62.96%)
Mutual labels:  geolocation, geocoding

geo on fire (gof) 🔥 CircleCI Codacy Badge Inline docs npm version

Geo on fire is an open source library to query location based data in Firebase. It follows a whole new principle of architecture, which makes it extremly fast and highly scaleable. With the right setup you are able to query millions of locations in just fractions of a second. You can learn more about the principle in the advanced usage guide. (not online so far, stay tuned)

In addition it offers you the possibility to listen to the queries in real time and recieve changes based on the event types you've specified. But that's not all. There's a feature which gives you the ability to priorize data and make the user expirience even better.

And by the way, there is not just one query method. You can choose between a radius based query (see dog match demo) and a boundaries based query. (see event map demo)

And the best, you will automatically recieve the fetched entries. So there is no manual fetching needed.

Quick links

Download

Currently there are three ways to download the library. But before you download the library make sure Firebase is already installed, since it's not a dependency of gof itself.

Notice: NodeJS is not supported so far, but it will be added soon. Subscribe here to get mentioned when the time is ready.

Add it like this to your HTML

<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/4.5.0/firebase.js"></script>

or install it from npm

$ npm install firebase --save

CDN

If you are running gof in the browser you can include it directly from the CDN like this:

<!-- gof -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gof.min.js"></script>

npm

Download it from the npm repository the following way:

$ npm install gof --save

bower

Or download it from bower the following way:

$ bower install gof --save

Getting started

Now let's get started. As you will see, the usage is very simple.

Before you're able to use gof you need to initialize your firebase project.

var fb = firebase.initializeApp(config); // get 'config' from firebase

Now you are able to create a gof reference by simply doing the following.

// the name of your database nodes e.g. events, hotels - is totally up to you
var name = 'entries'; 

// the firebase database ref - must be passed with the .ref()
var ref = fb.database().ref();

// creates a new geoOnFire instance
var gof = new geoOnFire(name, ref);

That's it! Now you are able to run gof operations. Go trough the guides to see how it works.

Guides

Basic usage

Basically all the user operations proivded by gof can be splitted in two cateogries. There are writing and there are reading operations. Make sure you always use the built-in methods the library provides to modify your geolocations data. Otherwise there's a chance that you get corrupt and invalid data.

writing data

reading data (geolocation queries)

Advanced usage

Here you can find some advanced concept to make the best out from gof.

Documentation

Demo's

Currently there are the two demo's available. These are just some basic implementations to give you an idea about how powerful gof is. They are far away from perfect.

Is there any gof using project you want to share with the world? Simply create an issue with the url and I do the rest.

Contributions

I would love to see your contributions to the project. Till now I was not able to create some guidelines. If there are already any interests so far, we can communicate trough the issues.

What's next

Check out the 1.0.0 milestone to see what's next. Generally I've got tons of ideas, but just a very few time to work on them. So if you are interested in contributing you are more than just welcome!

I'm also looking forward to migrate the library to other db services like mongoDB or pouchDB.

Motivation

So basically the reason why I'm doing this, is because I've seen a lot of people struggling while buildung their json database structure. Espacially when it comes to more complex queries, firebase does not support you well enough. (by the way I'm so happy to see the new cloud firestore) This library should kind of like give you an idea.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].