Flickr-Upload-FireEagle
view release on metacpan or search on metacpan
* 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
...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 1.212 second using v1.01-cache-2.11-cpan-49f99fa48dc )