GithubHelp home page GithubHelp logo

Integrate Nominating about ui-leaflet HOT 5 OPEN

angular-ui avatar angular-ui commented on July 16, 2024
Integrate Nominating

from ui-leaflet.

Comments (5)

nmccready avatar nmccready commented on July 16, 2024

From @tombatossals on January 29, 2015 11:46

Hi @stefan-niedermann , that's a really interesting feature, I'm going to take a look at integrate it.

How is your idea of using it? We could, for example, define the nominatim server as a default (overridable)

defaults: {
    ...
    nominatim: {
        server: ' http://nominatim.openstreetmap.org/reverse'
    }
}

And the center attribute of the directive could take care of "name" instead of lat/lng parameters:

    center: {
        name: "221B Baker Street, London, UK"
    }

Does this seems acceptable to you? Do you have another idea?

from ui-leaflet.

nmccready avatar nmccready commented on July 16, 2024

From @stefan-niedermann on January 29, 2015 19:14

And the center attribute of the directive could take care of "name" instead of lat/lng parameters

sounds great!
What i imagined: Use search api (https://nominatim.openstreetmap.org/search?) to get lat and lng. eg a user could define a marker or center map like this:

center: {
    address: {
        street: <housenumber> <streetname>
        city: <city>
        county: <county>
        state: <state>
        country: <country>
        postalcode: <postalcode>
    }
}

so give the user more alternatives:
1.) lat / lng
2.) name (query a string in a unknown format using reverse api)
3.) address (query an address by detailed information using search api)

but what if a user puts multiple of these solutions which are in conflict to each other?

from ui-leaflet.

nmccready avatar nmccready commented on July 16, 2024

From @razvansr on May 19, 2015 13:52

Hi guys,
Is this feature still planned for a future release?

from ui-leaflet.

nmccready avatar nmccready commented on July 16, 2024

From @tombatossals on July 4, 2015 17:1

Hi, I have integrated the Nominatim with the "bounds" property. This will be merged soon if the rest of developers consider it interesting. We could think about adding this feature with the "center" property too.

from ui-leaflet.

sachin8080 avatar sachin8080 commented on July 16, 2024

Hi @nmccready ,
Currently the default nominatim search url is over http.
nominatim: { server: ' http://nominatim.openstreetmap.org/search' }.
There should be a provision to override this url in the defaults property to make this call over https instead of http.

from ui-leaflet.

Related Issues (20)

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.