Giter Club home page Giter Club logo

geocoder-js's People

Contributors

braxtondiggs avatar defrag avatar fillerwriter avatar rjmackay avatar willdurand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geocoder-js's Issues

question about scope of geocoder-js

Hi,
currently I am using Google places to search for addresses within my Wordpress plugin Maps Marker Pro. A user now informed me that all Google services were recently blocked in China, so I am looking for an alternative.
Does geojoder-js support autocomplete of addresses for supported geocoding services or if not is this something that is planned in the future?
thx for any info!
Robert

Break out a Fetcher class for grabbing external data

Now that we have a couple of provider implementations out, it seems fairly obvious to me that we should break out the code for fetching external data into a separate class and inject that into the provider classes. Bonus points if we can use something already written.

Error if no coordinates are found for the given address (OSM Provider in geocoder.js)

If I try to get the coordonates for a given address that not exists in OSM referential, the b.address.house_number returns error because of the undefined b.address.
It try to get house_number on undefined.

It is necessary to return false (or equivalent) when no coordonate are found.

I corrected the mistake by adding if (b.length === 0) { return false; } before returning all values at line 406.

Npm module?

How can I install the package as my dependencies?

Google api key is requied

Hi there! How to add var with google api key to geocode.js?

You must use an API key to authenticate each request to Google Maps Platform APIs.
And it deny requests without api key.
And yandex too.
Any thoughts?

Autocomplete?

Is there an example or will it work with autocomplete?

Call to Openstreetmap provider through HTTP by default in geocoder.js

I have a page on which I call GeocoderJS through openstreetmap provider.
Problem is my page is served with https, and I get some Mixed active content errors due to GeocoderJS using http protocol by default.

I had a look at and noticed that contrary to GoogleAPIProvider for which the protocol can be https, no https option is proposed for Openstreetmap provider (nor MapQuest btw). line 373.

Changing http to https on that line did solve the problem.

Unit testing with Node.js?

Currently, our unit testing is happening through PhantomJS, but I want to make sure we can work with node.js as well (i.e., not on a headless browser). I'm 90% sure we're not doing anything at this point that would prevent anyone from using this server-side, but just to make sure, let's explore options for server-side unit testing, preferably without rewriting all the tests.

Leaking of global variables

Since #3 adding support for Node.js, the dist file is leaking global variables. A simple solution would be to wrap the build script in a function to scope these variables

Uncaught ReferenceError: jsonp1537788286416 is not defined

When I try to geocode with yandex more then 1000 addresses, some time there callback function undefined error appears

?format=json&geocode=Санкт-Петербург, ЛИТОВСКАЯ, 48&lang=en-US&callback=jsonp1537788530860:1 Uncaught ReferenceError: jsonp1537788530860 is not defined
at ?format=json&geocode=Санкт-Петербург, ЛИТОВСКАЯ, 48&lang=en-US&callback=jsonp1537788530860:1
(anonymous) @ ?format=json&geocode=Санкт-Петербург, ЛИТОВСКАЯ, 48&lang=en-US&callback=jsonp1537788530860:1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.