MCPcopy
hub / github.com/django/django / georss_coords

Method georss_coords

django/contrib/gis/feeds.py:11–17  ·  view source on GitHub ↗

In GeoRSS coordinate pairs are ordered by lat/lon and separated by a single white space. Given a tuple of coordinates, return a string GeoRSS representation.

(self, coords)

Source from the content-addressed store, hash-verified

9 """
10
11 def georss_coords(self, coords):
12 """
13 In GeoRSS coordinate pairs are ordered by lat/lon and separated by
14 a single white space. Given a tuple of coordinates, return a string
15 GeoRSS representation.
16 """
17 return " ".join("%f %f" % (coord[1], coord[0]) for coord in coords)
18
19 def add_georss_point(self, handler, coords, w3c_geo=False):
20 """

Callers 2

add_georss_pointMethod · 0.95
add_georss_elementMethod · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected