Client library for Google Maps API Web Services

#1

Hello,

I am migrating a legacy app from Python, where I use a lot of features from Google Maps API.
(https://github.com/googlemaps/google-maps-services-python)

Is there such client library available for Rust ?

Cheers

0 Likes

#2

Your best bet is to search crates.io. There are some crates for Google Maps API.

If none of them are a good fit for you, you may want to implement your own client using some generic HTTP library and probably serde for JSON. Existing crates for other APIs may be a good example to follow.

0 Likes

#3

If the API is documented in OpenAPI/Swagger, you can generate the Rust API client using OpenAPI Generator with just one command, e.g.

java -jar openapi-generator-cli.jar generate -g rust -i /tmp/spec_file.yaml -o /tmp/rust_clilent/
0 Likes