Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse coordinates correctly #26

Merged
merged 2 commits into from
Jun 1, 2017
Merged

Conversation

roback
Copy link
Member

@roback roback commented May 30, 2017

SimpleXMLElements has no "length" property, but it has a count() function: http://php.net/manual/en/simplexmlelement.count.php

Also the xpath expression didn't work correctly so that was fixed as well.

close #25
close #27

SimpleXMLElements has no "length" property, but it has a count()
function: http://php.net/manual/en/simplexmlelement.count.php

Also the xpath expression didn't work correctly so that was fixed as
well.

close #25
@dentarg
Copy link
Contributor

dentarg commented May 30, 2017

As stated for the other clients, we want lat/long on the Post object. I know you are on it. :)

This way latitude and longitude is always set. If the post has no
coordinates, latitude and longitude will be null.

Also downcased "NULL" in one place so we only use "null".
@roback roback merged commit 2fc82a8 into master Jun 1, 2017
@roback roback deleted the issue/25/parse-coordinates-correctly branch June 1, 2017 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coordinates on Post object Parse coordinates correctly
2 participants