googlemaps / googlemaps/google-maps-services-java
GeoApiContext - Mobility - Failed to set the trip ID (Mobility Solution) via .experienceIdHeaderValue()
- Linguagem predominante
- Java
- Estrelas
- 1.8k
- Forks
- 973
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
#### Environment details
Library version: 2.2.0
#### Steps to reproduce
We are going to manage trips for our mobility project and referring [this documentation](https://developers.google.com/maps/documentation/transportation-logistics-terms/on-demand-rides-deliveries-solution/managing-trips#java_example_2) 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,


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_
#### Code example
```Java
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
Guia de contribuição
Direção de pesquisa
Comece com GeoApiContext.Builder e as interfaces RequestHandler mostradas no relatório; em seguida, reproduza a chamada ausente a experienceIdHeaderValue() usando a versão 2.2.0 da biblioteca. Compare a API do cliente com a documentação vinculada do Mobility e determine se o cabeçalho do ID da viagem é compatível; considera-se concluído quando o uso compatível ou a alteração necessária na biblioteca estiver claramente estabelecido.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- api
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 38/100