w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • Bulletin
  • Posts
doc_Django
doc_Django


gis.geoip2.GeoIP2.lon_lat()

GeoIP2.lon_lat(query) Returns a coordinate tuple of (longitude, latitude).

gis.geoip2.GeoIP2.lat_lon()

GeoIP2.lat_lon(query) Returns a coordinate tuple of (latitude, longitude),

gis.geoip2.GeoIP2.geos()

GeoIP2.geos(query) Returns a Point object corresponding to the query.

gis.geoip2.GeoIP2.country_name()

GeoIP2.country_name(query) Returns the country name corresponding to the query.

gis.geoip2.GeoIP2.country_code()

GeoIP2.country_code(query) Returns the country code corresponding to the query.

gis.geoip2.GeoIP2.country()

GeoIP2.country(query) Returns a dictionary with the country code and country for the given query.

gis.geoip2.GeoIP2.coords()

GeoIP2.coords(query) Returns a coordinate tuple of (longitude, latitude).

gis.geoip2.GeoIP2.city()

GeoIP2.city(query) Returns a dictionary of city information for the given query. Some of the values in the dictionary may be undefined (None).

gis.geoip2.GeoIP2

class GeoIP2(path=None, cache=0, country=None, city=None) The GeoIP object does not require any parameters to use the default settings. However, at the very least the GEOIP_PATH setting should be set with the path of the location of your GeoIP datasets. The following initialization keywords may be used to customize any of the defaults. Keyword Arguments Description path Base directory to where GeoIP data is located or the full path to where the city or country data files (.mmdb) are located.

gis.geoip.GeoIP.region_by_name()

GeoIP.region_by_name(query)

Page 91 of 226

|< < Prev 88 89 90 91 92 93 94 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions