Latitude and longitude are not parsed if excess whitespace exists in the element data #33

Closed
rmccue opened this Issue Sep 29, 2009 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

rmccue commented Sep 29, 2009

Originally reported by Ryan McCue as issue 138

If there is leading or trailing whitespace inside the georss:point element, the latitude and longitude are parsed incorrectly.

Google Maps does this in their feeds, e.g. http://maps.google.co.uk/maps/ms?ie=UTF8&hl=en&vps=1&jsv=165c&msa=0&output=georss&msid=114629588063241738205.00046e30584a54b324d5b

There are two solutions to this: either remove the ^ and $ boundaries in the regular expressions to match this, or run trim() on the data before matching.

Thoughts?

Contributor

rmccue commented Sep 29, 2009

Trim whitespace from georss:point before parsing. Closed by 1df5d92

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment