Autocomplete mode

Open
#1,120 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
php

Research direction

Review PRs #1118 and #1119, then inspect the query classes under src/Common/Query and the providers that offer autocomplete. Determine whether autocomplete needs a consistent query abstraction or a flexible mode option; done means the project has an agreed design and implementation scope.

Written by the indexing model from the issue text.

Description

improvement

The last 2 PR are aiming to add autocomplete support.

I like the idea but I think we need to figure out a consistent way to implement that across all providers that offer autocompletion.


#1118 by @nassuf

$query->withData('autocomplete', true);

#1119 by @gdw96

$query->withData('mode', GoogleMapsPlaces::GEOCODE_MODE_AUTOCOMPLETE);

Personally, I would go for a new AutocompleteQuery class (see src/Common/Query) so we make it consistent and structured for every provider.
That being said, we would probably need to check how many provider offer autocompletion to see if it worth it.

Otherwise, I would go for solution 2 here above that seems more flexible.

Any insight on this topic @Nyholm @willdurand ?

Dominant language
PHP
Stars
4k
Forks
525
Avg merge
8m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from geocoder-php/Geocoder

All issues in geocoder-php/Geocoder

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.