You are here: Home / LBN / Up2date / Plone and Zope / BastionLinux 19 / ftw.geo-1.3-1.lbn19.noarch

ftw.geo-1.3-1.lbn19.noarch

Package Attributes
RPM  ftw.geo-1.3-1.lbn19.noarch.rpm Architecture  noarch Size  87305 Created  2019/09/30 06:51:56 UTC
Package Specification
Summary Integration package for collective.geo.* packages.
Group Application/Internet
License ZPL
Home Page https://pypi.python.org/packages/source/f/ftw.geo/ftw.geo-1.3.zip
Description

Introduction

This product helps integrating the collective.geo.* packages and aims to provide some sensible defaults. Besides some integration glue it defines a new interface IGeocodableLocation that can be used to create adapters that knows how to represent the location of a content type with address-like fields as a string suitable for passing to a geocoding API. Purpose

Automatic geocoding of IGeoreferenceable content types via an IGeocodableLocation adapter Caching of geocoding responses Only trigger geocoding lookups if location related fields on the content item changed Facilitate doing automatic geocoding based on location fields and still allow for manually setting custom coordinates

Usage Automatically geocoding your content types

In order for your content types to be automatically geocoded on ObjectEdited or ObjectInitialized events, you need to create an adapter for your content type that implements IGeocodableLocation and knows how to build a geocodable location string from the content type's location related fields.

In order to implement the interface you need to define a getLocationString method on your adapter that returns the complete location as a comma separated string, with the location parts getting less specific from left to right.

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(FileDigests)  
/bin/sh  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
geopy  
rpmlib(PayloadIsXz)  
Provides
ftw.geo

Document Actions