Code Monkey home page Code Monkey logo

Comments (5)

sgruhier avatar sgruhier commented on August 31, 2024

Google will explain it better than me :)

https://developers.google.com/maps/documentation/geocoding/#RegionCodes

from jquery-addresspicker.

palodelincak avatar palodelincak commented on August 31, 2024

Hello, is possible to limit quering for one country only?

from jquery-addresspicker.

sgruhier avatar sgruhier commented on August 31, 2024

You can't do that with google but you can limit to a given bounds

https://developers.google.com/maps/documentation/geocoding/#Viewports

the doc says: Note that biasing only prefers results within the bounds; if more relevant results exist outside of these bounds, they may be included

If you are interested by adding that options, please fork and pull a request
Thanks

from jquery-addresspicker.

palodelincak avatar palodelincak commented on August 31, 2024

Thanks!

from jquery-addresspicker.

muirin avatar muirin commented on August 31, 2024

Well, I'm trying to limit autocomplete hints for one country only (or, at least, to prefer one country) - Poland.

In example - I'm searching for "Kraków". [Cracow, Poland]

I'm typing:
'Kra'
and there are such hints as:
Krae, Tajlandia (Thailand)
Kerang Airport (KRA), Kerang Wiktoria 3579, Australia

I have to type 'Krakó' to get a proper hint:
Kraków, Polska (Poland)

I just don't need autocompleting with cities from Thailand, USA, France, etc. - i need cities from Poland.

Setting region (http://maps.google.com/maps/api/js?sensor=false&region=pl) or address/bounds influences only on results, not autocomplete hints.

Could you give me any hints?

(sorry for my english :) )

from jquery-addresspicker.

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.