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

Incorporate "node-geocoder" #182

Closed
wants to merge 7 commits into from
Closed

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented Feb 19, 2019

Will fix #81 once done, WIP. Started off by documenting getPlacenameFromCoordinates in Geocoding.js.

Fixes #81.

/cc @jywarren

@rexagod rexagod marked this pull request as ready for review February 19, 2019 23:12
@rexagod
Copy link
Member Author

rexagod commented Feb 20, 2019

>>
>> ###
>> ### The "request" library is not installed automatically anymore.
>> ### But is a dependency of "request-promise".
>> ### Please install it with:
>> ### npm install request --save
>> ###
>>  at
>> dist/Leaflet.BlurredLocation.js:63099

Doing npm install request --save gives the same error again.

@rexagod rexagod mentioned this pull request Feb 20, 2019
"os-tmpdir": "^1.0.0"
}
},
"path-is-abso
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, here this seems to be a new req. So is it saying just to add request to our package.json?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jywarren, yep. I tried including the request-promise in the dev deps too and wrapped up geocode.reverse in the same (var wrapper = require('request-promise') then wrap using wrapper). But no luck there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, it is worth noting that all the tests pass when I employ an alternative for the geocode.reverse method, be it the original ajax snippet, a native promise, or a custom one from npm libs.

@jywarren
Copy link
Member

Hmm, this is odd. is this a recent change in request-promise, and if so why aren't we seeing this in other libraries?

@jywarren
Copy link
Member

Hmm. I wonder if anyone from @publiclab/is-reviewers would be able to offer input here? Folks there are really good at JS issues and maybe would notice something.

@rexagod rexagod closed this Jan 22, 2023
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.

use standardized abstract geocoding library
2 participants