Giter VIP home page Giter VIP logo

js-reverse-geocode-client's People

Contributors

bigdatacloud-api avatar

Stargazers

 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

js-reverse-geocode-client's Issues

Only Known Long/Lat reverse code working

Hi There,

I tried to get the location ref. using the published code and using bigdatacloud_reverse_geocode.min.js

<script>
    /* Initialise Reverse Geocode API Client */
    var reverseGeocoder = new BDCReverseGeocode();

    /* Get the current user's location information, based on the coordinates provided by their browser */
    /* Fetching coordinates requires the user to be accessing your page over HTTPS and to allow the location prompt. */
    reverseGeocoder.getClientLocation(function(result) {
        document.getElementById("json-result").innerHTML = rresult.localityInfo['administrative'][4].name;
    });

    /* Get the administrative location information using a set of known coordinates */
    reverseGeocoder.getClientLocation({
        latitude: 12.9716,
        longitude: 77.5946,
    }, function(result) {
        document.getElementById("json-result").innerHTML = result.localityInfo['administrative'][4].name;

    });


    /* You can also set the locality language as needed */
    reverseGeocoder.localityLanguage = 'en';

    /* Request the current user's coordinates (requires HTTPS and acceptance of prompt) */
    reverseGeocoder.getClientCoordinates(function(result) {
        document.getElementById("json-result").innerHTML = result.localityInfo['administrative'][4].name;

    });
    /* document.getElementById("log").innerHTML = 5 + 6;*/
</script>

This returns 'Bengaluru' which is correct.

But, during my testing (and located in New Delhi), it does not work even after 'accepting' the location permissions.

Could you check, to view please visit Incidental app and you could see the location below the yellow divider.
Screenshot 2021-06-13 at 10 35 18 AM

Thanks.

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.