Giter VIP home page Giter VIP logo

geodesy's People

Contributors

olegbragin avatar olegbraginontarget avatar proxpero avatar rcilia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

geodesy's Issues

More Helpful docs please

Can you update your documentation with a tiny bit more verbosity? I'd like a few examples in code. Complete code. I don't see exactly how to compare a set of hashes to a hashed single location.

let location: CLLocation = manager.currentLocation
let geohash = location.geohash(precision: 8) // An eight-character geohash of type String
let neighbors = location.neighbors(precision: 8) // An array of nine eight-character strings representing the eight regions surrounding the original region.

I get all that, makes sense. What's next? Iterate through neighbors and check for what ?? Greater than, less than? How does the hashing work here?

duplicate neighbors

I'm getting the following neighbors:
["gcpvhgm", "gcpvhgm", "gcpvhgj", "gcpvhfv", "gcpvhfv", "gcpvhfv", "gcpvhgj", "gcpvhgm"]

Sure there shouldn't be any duplicates right?

Returned "Neighbors" incorrect for Precision of 4

When I use Geodesy as shown below:

< let CurrentGeoHash = self.currentLocation.geohash(precision: 4)
let CurrentNeighbors = self.currentLocation.neighbors(precision: 4)
print("Geohash: ", CurrentGeoHash, " Geohash Neighbors: ", CurrentNeighbors) >

I get the following geohash for the current location and the array for the neighbors:
Geohash: 9tbr
Geohash Neighbors: ["9w02", "9w02", "9tbr", "9tbq", "9tbq", "9tbq", "9tbr", "9w02"]

I believe the returned Geohash Neighbors for "9tbr" should be [N, NE, E, SE, S, SW, W, NW]:
["9w02", "9w08", 9tbx", 9tbw", 9tbq", 9tbn", 9tbp", 9w00"]

Compiler errors when trying to build with Swift 5

Hello. I use Cocoapods to install your library. Very useful, thanks!
I got some issues:
What I did?

  • install framework using pod Geodesy
  • tried to build with Swift 5

What went wrong?

  • I get compiler errors in Region.swift file: 'characters' is unavailable: Please use String directly

I saw that a commit which should fix exactly that, but the build for that commit has failed, so it's possible that commit was ignored and did not get into a master branch. Another options is that the .podspec version has to be also bumped again.

Really enjoying your work, but I have to manually use the files because of those errors. That would wonderful if I could just use the pod directly.

"Neighbors" doesn't work for CLLLocationCoordinate2D

When I use Geodesy as shown below:
<
let CurrentGeoHash = self.currentLocation.geohash(precision: 4)
let CurrentNeighbors = self.currentLocation.neighbors(precision: 4)
print("Geohash: ", CurrentGeoHash, " Geohash Neighbors: ", CurrentNeighbors)

I get "Value of type CLLLocationCoordinate2D has no member 'neighbors.'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.