Comments (7)
in "sample" app from this repo, after calling addressAutofill.suggestions(query = query, options = AddressAutofillOptions()) this( "[ https://api.mapbox.com/geocoding]" search endpoint called
It shouldn't work this way, AddressAutofill
works over https://api.mapbox.com/autofill
endpoint. You can check it in the following code example
class AddressAutofillKotlinExampleActivity : AppCompatActivity() {
private lateinit var addressAutofill: AddressAutofill
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
HttpServiceFactory.getInstance().setInterceptor(object : HttpServiceInterceptorInterface {
override fun onRequest(request: HttpRequest): HttpRequest {
Log.i("SearchApiExample", "onRequest: $request")
return request
}
override fun onDownload(download: DownloadOptions): DownloadOptions {
Log.i("SearchApiExample", "onDownload: $download")
return download
}
override fun onResponse(response: HttpResponse): HttpResponse {
Log.i("SearchApiExample", "onResponse: $response")
return response
}
})
addressAutofill = AddressAutofill.create(
accessToken = getString(R.string.mapbox_access_token),
)
lifecycleScope.launchWhenCreated {
val query = Query.create("740 15th St NW, Washington") ?: return@launchWhenCreated
addressAutofill.suggestions(
query = query,
options = AddressAutofillOptions()
).onValue { suggestions ->
Log.i("SearchApiExample", "Autofill suggestions: $suggestions")
}.onError { error ->
Log.i("SearchApiExample", "Autofill suggestions error", error)
}
}
}
}
If you see that it works over https://api.mapbox.com/geocoding
, it's a bug and I'll appreciate more details about your environment and isolated code example that could demonstrate this behavior.
If you need https://api.mapbox.com/geocoding
, you should use SearchEngine with ApiType.GEOCODING
from mapbox-search-android.
@AndrewKisyk could you please give more details and code examples?
from mapbox-search-android.
@DzmitryFomchyn in "sample" app from this repo, after calling addressAutofill.suggestions(query = query, options = AddressAutofillOptions())
this( "[ https://api.mapbox.com/geocoding]" search endpoint called. When I use this method from my app this( "[ https://api.mapbox.com/autofill]" search endpoint called. How should I configure AddressAutofill to use the same endpoint as yours?
from mapbox-search-android.
@AndrewKisyk,
Any update here? Did you have a chance to check sample?
from mapbox-search-android.
@DzmitryFomchyn Yes I have. The solution is to use SearchEngine, thanks. Is it possible for me to join Beta Porgram?
Because most of the search features are not available for me?
from mapbox-search-android.
@AndrewKisyk please, contact sales team for this question https://www.mapbox.com/contact/sales/.
If everything is working on the SDK side, can we close this issue?
from mapbox-search-android.
yes, sure
from mapbox-search-android.
Related Issues (20)
- House/street address format based on country specific HOT 6
- MapBox Search panel like on IOS HOT 1
- Should be compatible to integrate with Modern UI (JetPack Compose) HOT 2
- Place Autocomplete 401 error: The feature is not enabled HOT 3
- Branch protection on main not adhering to best practices
- PR #160 merged without successful status checks (mapbox-search-android)
- Autofill not work until Number and char is filled HOT 1
- Crash in production: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmapbox-common.so" not found HOT 5
- Loader not showing on second search in places auto complete activity HOT 1
- SDK is entirely unusable without location permission
- Failed to build when using 11.0.0 and MapBox Search 1.0.0-rc7 HOT 11
- PR #172 merged without successful status checks (mapbox-search-android)
- AddressAutofill suggestions is not working HOT 2
- SearchBox returns incorrect Data HOT 2
- Search result titles not visible in search results view HOT 2
- PR #192 merged without review (mapbox-search-android)
- PR #192 merged without successful status checks (mapbox-search-android)
- Favorite item not persisted between app sessions in SearchPlaceBottomSheetView
- Network data provider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-search-android.