Skip to content

[geocoding] Add intersection search support.#1074

Merged
pengdev merged 6 commits into
masterfrom
peng-geocoding-add-intersection-search
Sep 18, 2019
Merged

[geocoding] Add intersection search support.#1074
pengdev merged 6 commits into
masterfrom
peng-geocoding-add-intersection-search

Conversation

@pengdev

@pengdev pengdev commented Sep 17, 2019

Copy link
Copy Markdown
Member

Resolves #1050 by adding intersectionStreets(street1, street2) method to the MapboxGeocoding builder.

@pengdev pengdev self-assigned this Sep 17, 2019
@pengdev pengdev force-pushed the peng-geocoding-add-intersection-search branch from 106c551 to f4bc31e Compare September 17, 2019 08:20
@pengdev pengdev requested review from langsmith and tobrun September 17, 2019 08:22

@tobrun tobrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! 🚀

@pengdev pengdev force-pushed the peng-geocoding-add-intersection-search branch from f4bc31e to 0f5eadb Compare September 17, 2019 11:31
@pengdev

pengdev commented Sep 17, 2019

Copy link
Copy Markdown
Member Author

looks good! 🚀

Thanks! One question, do I need to include the change log with the PR or should it be done later in the release phase? I didn't find a needs changelog label in this repository.

@tobrun

tobrun commented Sep 17, 2019

Copy link
Copy Markdown
Member

Thanks! One question, do I need to include the change log with the PR or should it be done later in the release phase? I didn't find a needs changelog label in this repository.

good question! if possible add it directly to the changelog. This repository doesn't see as much traffic as our gl-native monorepo. (in gl-natiuve we avoid adding changelog due to conflicts on master, for this project this isn't an issue).

@pengdev

pengdev commented Sep 17, 2019

Copy link
Copy Markdown
Member Author

@langsmith do you have any thoughts about this PR? and which section should I add the change log to?

Comment thread services-geocoding/src/main/java/com/mapbox/api/geocoding/v5/MapboxGeocoding.java Outdated
Comment thread services-geocoding/src/test/resources/forward_intersection.json Outdated
Comment thread services-geocoding/src/main/java/com/mapbox/api/geocoding/v5/MapboxGeocoding.java Outdated
Comment thread services-geocoding/src/main/java/com/mapbox/api/geocoding/v5/MapboxGeocoding.java Outdated
@pengdev pengdev force-pushed the peng-geocoding-add-intersection-search branch from e8c3f3b to ffa7cc9 Compare September 17, 2019 16:41
@pengdev

pengdev commented Sep 17, 2019

Copy link
Copy Markdown
Member Author

@langsmith fixed the mentioned suggestions, any further thoughts? And where should the change log go?

@langsmith

langsmith commented Sep 17, 2019

Copy link
Copy Markdown

You've already got the intersectionSearchSanity test, but there's usually a test that just checks that the right parameters are in the request URL. I didn't want to commit it to this branch, but the following test checks for and . It's passing fine on my local machine.

  @Test
  public void intersectionSearchAndAddedCorrectly() throws IOException {
    MapboxGeocoding mapboxGeocoding = MapboxGeocoding.builder()
      .accessToken(ACCESS_TOKEN)
      .intersectionStreets("Market Street", "Fremont Street")
      .proximity("-122.39738575285674,37.792514711136945")
      .geocodingTypes(GeocodingCriteria.TYPE_ADDRESS)
      .baseUrl(mockUrl.toString())
      .build();
    assertNotNull(mapboxGeocoding);
    assertTrue(mapboxGeocoding.cloneCall().request().url().toString().contains("and"));
  }

@langsmith langsmith left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗺🚀

@langsmith

Copy link
Copy Markdown

Regarding changelog. Sure, go ahead and add a master section, similar to https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/CHANGELOG.md#master. Then add this pr to that section.

@pengdev pengdev merged commit 20e01b5 into master Sep 18, 2019
@langsmith langsmith modified the milestones: 4.10.0, v4.10.0, v4.9.0 Sep 18, 2019
@pengdev pengdev deleted the peng-geocoding-add-intersection-search branch September 23, 2019 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add intersection search support to MapboxGeocoding

3 participants