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

Đang mở
#993 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
api

Hướng nghiên cứu

Bắt đầu với GeoApiContext.Builder và các interface RequestHandler được nêu trong báo cáo, sau đó tái hiện lệnh gọi experienceIdHeaderValue() còn thiếu bằng phiên bản thư viện 2.2.0. So sánh client API với tài liệu Mobility được liên kết và xác định xem header ID chuyến đi có được hỗ trợ hay không; được xem là hoàn tất khi cách sử dụng được hỗ trợ hoặc thay đổi thư viện cần thiết đã được xác lập rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

triage me type: bug
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

Ngôn ngữ chính
Java
Star
1.8k
Fork
972
Merge trung bình
5 giờ 7 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googlemaps/google-maps-services-java

Tất cả issue của googlemaps/google-maps-services-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.