Code Monkey home page Code Monkey logo

geocoder's People

Contributors

ac6y avatar akittas avatar alexanderlukanin13 avatar avanderm avatar chartres avatar cspinelive avatar deniscarriere avatar ebreton avatar gisgraphy avatar hagai26 avatar hbruch avatar humitos avatar kevinbrolly avatar letitbevi avatar michaelrazum avatar mrigal avatar mtmail avatar nyejon avatar pilona avatar porn avatar sedore avatar star-is-here avatar stirringhalo avatar theju avatar themiurgo avatar thomas-lab avatar twista avatar virus-warnning avatar yedpodtrzitko avatar zxiiro 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  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

geocoder's Issues

Remove Dependencies Requests

Example of urllib2 for requests connection

import urllib2
        import urllib
        import json
        import pprint

        # Use the json module to dump a dictionary to a string for posting.
        data_string = urllib.quote(json.dumps({'id': 'data-explorer'}))

        # Make the HTTP request.
        response = urllib2.urlopen('http://demo.ckan.org/api/3/action/group_list',
                data_string)
        assert response.code == 200

        # Use the json module to load CKAN's response into a dictionary.
        response_dict = json.loads(response.read())

        # Check the contents of the response.
        assert response_dict['success'] is True
        result = response_dict['result']
        pprint.pprint(result)

IP geolocation not working

It was working earlier today, then it stopped and is returning None for all values. Is there a limit to the number of queries? I have a list of 60 IP's that geocoded just fine, and returned an address for all 60. Now attempting it with the same 60, it does not work.
If I try to use the URL in ip.py directly, it requires credentials.Did maxmind change something?

Return a formated JSON object

would be nice to have
g = geocoder.google('Ottawa, ON')
g.json

into a Dict()

{
"address": "Ottawa, ON, Canada",
"bbox": [
[
44.962733,
-76.353916
],
[
45.53758,
-75.24659799999999
]
],
"east": -75.24659799999999,
"geocoder": "Google",
"latlng": [
45.4215296,
-75.69719309999999
],
"north": 45.53758,
"ok": true,
"quality": "APPROXIMATE",
"south": 44.962733,
"status": "OK",
"west": -76.353916,
"x": -75.69719309999999,
"y": 45.4215296
}

Search with Places API

places = geocoder.places('Kabul, Afghanistan', keyword='Embassy')

for place in places:
print place

Time Zone tool

g = geocoder.timezone('Ottawa')
g.zone
g.offset
g.name
g.json

Distance Tool

d = geocoder.distance('Ottawa', 'Toronto')
d.miles
d.km
d.meters
d.feet
d.json

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.