[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoApiContext - Mobility - Failed to set the trip ID (Mobility Solution) via .experienceIdHeaderValue() #993

Open
GISerSi opened this issue Jun 25, 2024 · 0 comments
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@GISerSi
Copy link
GISerSi commented Jun 25, 2024

Environment details

Library version: 2.2.0

Steps to reproduce

We are going to manage trips for our mobility project and referring this documentation to report the trip IDs (aka Experience IDs) but failed. It seems like there is no such method experienceIdHeaderValue. I created a GMP support ticket before but they asked me to report this issue here. Could you help on this?

Meanwhile, we'd like to know if we are allowed to set GMP request header for tripID by our own via the following part,
Client Libraries_GeoApiContext_RequestHandler
Client Libraries_GeoApiContext_RequestHandler_interface

Please find our screencaps for the experienceIdHeaderValue part in the attachment.

Translation of the image
Java: cannot find symbol
symbol: method experienceIdHeaderValue(java.lang.String)
location: class com.google.maps.GeoApiContext.Builder

error when compiling the code for experienceIdHeaderValue implement_cannot_find_experienceIdHeaderValue ref_current_version failed to retrieve experienceIdHeaderValue in github

Code example

GeoApiContext context = new GeoApiContext.Builder()
    .apiKey("AIza...")
    .experienceIdHeaderValue("MCN-99a692...")
    .build();
GeocodingResult[] results = GeocodingApi.geocode(context,
    "1600 Amphitheatre Parkway Mountain View, CA 94043").await();
Gson gson = new GsonBuilder().setPrettyPrinting().create();
System.out.println(gson.toJson(results[0].addressComponents));

Thanks in advance.

Best Regards,
Sisi

@GISerSi GISerSi added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant