geogotchi

Library for working with geonames.org services
Download

geogotchi Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Simon Pantzare
  • Publisher web site:
  • http://pewpewlabs.com

geogotchi Tags


geogotchi Description

geogotchi is a Python library for working with GeoNames services.Usage>>> from pprint import pprint>>> from geogotchi import Geogotchi>>> >>> lkpg = (58.411, 15.622)>>> gg = Geogotchi(username="demo")Find nearby toponyms:>>> pprint(gg.find_nearby_toponym(lkpg, radius=5, max_rows=3))Find nearby Wikipedia articles, sorted by article rank and distance:>>> pprint(gg.find_nearby_wikipedia(lkpg, radius=5, max_rows=3))Nearby Wikipedia articles, sorted only by article rank (number of links pointing to it):>>> pprint(gg.find_nearby_wikipedia(lkpg, radius=5, max_rows=3, rank_weight=1, distance_weight=0))Get all GeoNames higher up in the hierarchy of a place name:>>> nearby = gg.find_nearby_place(lkpg)>>> pprint(gg.get_hierarchy(nearby))Product's homepage


geogotchi Related Software