Giter Site home page Giter Site logo

fabiocaccamo / fcipaddressgeocoder Goto Github PK

View Code? Open in Web Editor NEW
114.0 6.0 17.0 43 KB

:iphone: :earth_africa: iOS geocoder for geocode device IP Address location using GeoIP service(s) and a block-based syntax.

License: MIT License

Objective-C 95.95% Ruby 4.05%
ios objective-c geocoder pod geoip location geocode ip-address ios-geocoder geoip-service

fcipaddressgeocoder's Introduction

๐Ÿ‘‹ Hello!

I'm Fabio Caccamo.

I'm a passionate, self-taught full-stack developer based in Torino, Italy. ๐Ÿ‡ฎ๐Ÿ‡น ๐ŸคŒ

I work mainly with ๐Ÿ Python, ๐Ÿฆ„ Django and Vue.js.

I love Open Source, I published and actively maintain many ๐Ÿ“ฆ libraries.

View all my libraries

๐Ÿฆ„ django-admin-interface
๐Ÿ“ฑ FCUUID
๐Ÿ python-benedict
๐Ÿ“ฑ FCFileManager
๐Ÿฆ„ django-treenode
๐Ÿฆ„ django-colorfield
๐Ÿฆ„ django-extra-settings
๐Ÿฆ„ django-maintenance-mode
๐Ÿ“ฑ FCCurrentLocationGeocoder
๐Ÿ python-fsutil
๐Ÿ“ฑ FCIPAddressGeocoder
๐Ÿฆ„ django-freeze
๐Ÿ python-codicefiscale
๐Ÿฆ„ django-redirects
๐Ÿ python-fontbro
๐Ÿ’ป utils.js
:octocat: create-matrix-action
๐Ÿ’ป tabbo.js

fcipaddressgeocoder's People

Contributors

fabiocaccamo avatar masatootake avatar williamsjj 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar

fcipaddressgeocoder's Issues

Provide a timeoutErrorDelay similar to FCCurrentLocationGeocoder

Hello Fabio, thanks a lot for the library.

A minor request for improvement. At the moment you use the standard NSURLConnection connection timeout of 60 seconds. It would be favorable having a timeoutErrorDelay parameter just like in FCCurrentLocationGeocoder, because for the 4 GeoIP services you are using the total timeout sums up to 4 minutes. This is likely way to long for most applications.

Thanks & regards, Kristian

Fund with Polar

Error locationCity

Hi! I tried to get locationCity after getting geocode, but I got undefined error
2016-11-25 21 16 48

Here is my translate function, but I think that is not the case

public static func translate(s: String) -> String {
        var result = s.lowercaseString
        let replace: ((String, String) -> Void) = { (eng, rus) in
            result = result.stringByReplacingOccurrencesOfString(eng, withString: rus)
        }
        triples.forEach(replace)
        doubles.forEach(replace)
        if useUmlauts {
            result = result.stringByReplacingOccurrencesOfString("ะต", withString: "ั‘")
        }
        pairs.forEach(replace)
        return result
}

If it possible help me please

Error geocode without internet connection

Hi! I tried to geocode location without internet connection(in Airplane Mode) and didn't get any error. Maybe I'm doing something wrong?
My code:

return Observable.create { observer in
            if let geocoder = FCIPAddressGeocoder.shared() {
                geocoder.geocode { (success) in
                    if success, let locationCity = geocoder.locationCity {
                        let translatedCityTitle = Translator.translate(locationCity).capitalized
                        let city = City(title: translatedCityTitle, location: geocoder.location.coordinate)
                        city.saveToUserDefaults(isMyLocation: true)
                        observer.onNext(city)
                    } else {
                        observer.onError(MagnitError.Location())
                    }
                }
            } else {
                observer.onError(MagnitError.Location())
            }
            
            return Disposables.create()
        }

This is reactive code, but it doesn't matter in this case.
Could you help me?

Not honoring custom service URL.

Despite using:

[FCIPAddressGeocoder setDefaultService:FCIPAddressGeocoderServiceFreeGeoIP
                                    andURL:@"https://example.com/api/geoip/json/"];

I still see this in my app logs:

*00:00:07:480   |   - URI: http://smart-ip.net/geoip-json/

How can I force FCIPAddressGeocoder not to fail over away from our custom server?

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.