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

[fix] Do not write 'Location' with geolocation (0.0,0.0) #557

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

woshilapin
Copy link
Contributor

No description provided.

ArnaudOggy
ArnaudOggy previously approved these changes Feb 27, 2020
@@ -448,15 +452,18 @@ impl<'a> OfferExporter<'a> {
Exporter::generate_id(&order_id, object_type)
}

fn generate_location(&self, coord: &'a Coord) -> Result<Element> {
fn generate_location(&self, coord: &'a Coord) -> Result<Option<Element>> {
if coord.lat == 0.0 && coord.lon == 0.0 {

This comment was marked as outdated.

This comment was marked as outdated.

@@ -283,7 +297,10 @@ impl<'a> StopExporter<'a> {
})
}

fn generate_centroid(&self, coord: &'a Coord) -> Result<Element> {
fn generate_centroid(&self, coord: &'a Coord) -> Result<Option<Element>> {
if coord.lat == 0.0 && coord.lon == 0.0 {

This comment was marked as outdated.

This comment was marked as outdated.

@woshilapin

This comment has been minimized.

@ArnaudOggy ArnaudOggy merged commit b2fae37 into hove-io:master Feb 27, 2020
@woshilapin woshilapin deleted the no-location branch February 27, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants