Problem/Motivation

So here is a series of patches that fixes the following problems for Mapbox integration (to make it work with my project):
- autocomplete suggestion are now filtered by the country selected by the user => untested without country selection !!
- postcode and cites are wrongly filled in my case => patch should improve robustness across address types
- compatibility with PHP 7.2

I am sorry I did not create 3 separate issues, but I don't have the time to make separate patches, hope this help !

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    1 hidden branch
  • 1.0.x Comparechanges, plain diff MR !1

Comments

Thony created an issue. See original summary.

thony’s picture

StatusFileSize
new5.11 KB
thony’s picture

(Handling of administrative areas for certain countries, patch merge in a single file)

lazzyvn’s picture

StatusFileSize
new5.13 KB

Hello
@Thony I don't think your patch is good enough you modify with your project personal
exemple:

if(isset($values["shipping_information"]["shipping_profile"]["address"][0]["address"]["country_code"])){

or administrative area is not always present in some countries

I make quick Patch it fix some bug for mapbox. Some countries have format adresse lik [Street number] [Street name]

dejan0’s picture

Thanks, @Thony, and @lazzyvn, good catches! I will check/test solutions, and include them in the next release!

socialnicheguru’s picture

Status: Active » Needs review

  • granik committed f18c71f on 1.0.x
    Issue #3194599: mapbox integration improvements
    
granik’s picture

Status: Needs review » Fixed

Committed #4. Thanks @ lazzyvn.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.