GithubHelp home page GithubHelp logo

paraboly / react-osm-geocoding Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 5.0 7.64 MB

Find address locations via OSM Nominatim

Home Page: https://paraboly.com

HTML 20.98% TypeScript 56.62% CSS 22.40%
osm nominatim mapbox mapboxgl address leaflet react search geocoding

react-osm-geocoding's Introduction

react-osm-geocoding

Find address locations via OSM Nominatim

NPM JavaScript Style Guide

alt text alt text

Integration Example

alt text

Install

npm install --save @paraboly/react-osm-geocoding

Usage

import React, { Component } from 'react'

import { ReactOsmGeocoding } from '@paraboly/react-osm-geocoding'
import '@paraboly/react-osm-geocoding/dist/index.css'

class Example extends Component {
  render() {
    return <ReactOsmGeocoding  callback={data => console.log(data)}/>
  }
}

Details

API: https://nominatim.org/release-docs/develop/api/Search/

Props Definition Type Default
placeholder Placeholder for search input string "Enter address"
debounce Debounce duration for the input in ms number 1000
iconUrl Icon image url for the search icon string "https://cdn2.iconfinder.com/data/icons/ios-7-icons/50/search-512.png"
city Check Nominatim search API for details string ""
countrycode Check Nominatim search API for details string "tr"
acceptLanguage Check Nominatim search API for details string "tr"
viewbox Bbox to filter query results, check Nominatim for more information <x1>,<y1>,<x2>,<y2> ""
callback Function returns selected address information Function undefined

License

MIT © SchemeSonic

react-osm-geocoding's People

Contributors

egemenokten avatar schemesonic avatar thisislawatts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.