Git Product home page Git Product logo

Comments (6)

dilip-borad avatar dilip-borad commented on September 26, 2024

Yes but need restrict some small village area because it's doesn't shown anything.

I mean if someone is search for ATM's of small village that is far to some city and also this village not have any ATM that time the result will be 0(zero).

I think this is not a problem but we need to care about it.
What you think?

from lookaround.

shidhincr avatar shidhincr commented on September 26, 2024

Yeah .. The only problem is that the map doesn't show anything. But I guess we have to handle it in a better way.

Why I need to do this because most of the times I don't know the zip code, but know the area name. And note that, with the existing implementation, we can search using place names

Check this link

http://lookaround.herokuapp.com/app/index.html#/search/dubai/bicycle_store

The search query is "dubai" instead of pin code.

But you cannot do it from the UI, as I have restricted the text boxes only zip code. So, I just need to remove the validation.. that's all !!

from lookaround.

dilip-borad avatar dilip-borad commented on September 26, 2024

Yea, Its look like a very good result.

One simple problem is when we search for any small city/area, that time it's not provide us a accurate result.
please check this
http://lookaround.herokuapp.com/app/index.html#/search/gondal/atm

Your this ideas is a very intelligent to search for any category with in worlds any city.
I'm a big fan of this app.

from lookaround.

Xliff avatar Xliff commented on September 26, 2024

You could do this with one text box and auto-complete to insure that things match up properly. Rules would be as follows:

If entry is digits, check postal code (most countries, I think -- I know this holds true for India and the US)
If entry is letters then digits (<= 4 chars, UK postal codes)
If entry is letters and greater than 4 chars, start searching cities, countries.

We pass this to Google autocompleter and let it handle the rest. We then perform validation on the selected result.

from lookaround.

pratik14 avatar pratik14 commented on September 26, 2024

@Xliff why not directly use google autocomplete map search (input with autocomplete address). User are aware of how it works.
The rules that you provided are not known to users. They might get confused why the app is behaving in a random way.

from lookaround.

Xliff avatar Xliff commented on September 26, 2024

That would assume that you could restrict Google autocomplete to just zip-codes. When I wrote that comment, that feature wasn't implemented, hence the need for the rules in the previous comment.

If Google Maps auto-complete has been updated to restrict to zip-codes, then you are correct. We can use that instead. It would make things MUCH easier.

from lookaround.

Related Issues (13)

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.