Flickr-Upload-FireEagle

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
* If none of those tests pass then...
    ...there is no context node.
 
Assuming that a context node has been identified *and* there is GPS
information stored in the photo, the *flickr.places.findByLatLon* method
is called (passing the photo's latitude and longitude) to ensure that
the (Flickr) places IDs for both the response and the context node
match.
 
If they *don't* match then the context node is destroyed and the
following tags are added : places:PLACETYPE=PLACEID; woe:id=WOEID; the
name of the location (formatted according to the object's "tagify"
rules).
 
On the other hand, if the context node is still around, after all that,
then it is used to add tags.
 
At a minimum a fireeagle:id=CONTEXTNODEID tag is added. If the place
type for the context node is equal to or more precise than a
neighbourhood, the neighbourhood's name is added as a tag. If the place
type for the context node is equal to or more precise than a locality,

lib/Flickr/Upload/FireEagle.pm  view on Meta::CPAN

180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
...there is no context node.
 
=back
 
Assuming that a context node has been identified I<and> there is GPS information stored in the
photo, the I<flickr.places.findByLatLon> method is called (passing the photo's latitude and
longitude) to ensure that the (Flickr) places IDs for both the response and the context node match.
 
If they I<don't> match then the context node is destroyed and the following tags are added :
places:PLACETYPE=PLACEID; woe:id=WOEID; the name of the location (formatted according to the
object's "tagify" rules).
 
On the other hand, if the context node is still around, after all that, then it is used to add tags.
 
At a minimum a fireeagle:id=CONTEXTNODEID tag is added. If the place type for the context node is
equal to or more precise than a neighbourhood, the neighbourhood's name is added as a tag. If the
place type for the context node is equal to or more precise than a locality, the locality's name
is added as a tag as well as fireeagle:id=ID, places:locality=PLACEID and woe:id=WOEID tags.
 
We're almost done : Assuming a context node and no GPS information in the photo, the nodes latitude



( run in 0.508 second using v1.01-cache-2.11-cpan-e5176c747c2 )