question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LocationPickerActivity.SEARCH_ZONE not working!!!

See original GitHub issue

I want to show the LocationPickerActivity to only display place searches and location results within UAE. I tried to set SEARCH ZONE as mentioned below.

Intent placePickerIntent = new Intent(this, LocationPickerActivity.class);
placePickerIntent.putExtra(LocationPickerActivity.SEARCH_ZONE, "ar_AE");
placePickerIntent.putExtra(LocationPickerActivity.BACK_PRESSED_RETURN_OK, true);
startActivityForResult(placePickerIntent, PLACE_PICKER_REQUEST);

But is not working. Instead of showing the results within UAE, t is showing the rresults from all around. Please help.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ferranponscommented, Aug 18, 2017

@sprengerst ok, I’ve updated the PR #108 with DACH Region. 😉

1reaction
ferranponscommented, Aug 18, 2017

@ashaantony @sprengerst to improve this we can add the UAE or whatever region rect coordinates we would like in the CountryLocaleRect.java class for now. In a future release we could parametrize that to inject your desired zone when instantiating the LocationPickerActivity.

I’m going to add the coordinates and create a release. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search places not searching all over the world search zone ...
I am starting LocationPickerActivity as follows: Intent intent =... ... Search places not searching all over the world search zone not ...
Read more >
ahaverty / Leku Download - JitPack
Location picker component for Android. It returns a latitude, longitude and an address based on the location picked in the LocationPickerActivity provided.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found