API in a custom function

Database & APIs

I am trying to use Google's Distance Matrix API within my custom function, but it tells me: "Undefined name 'DistanceMatrixCall'.
Try correcting the name to one that is defined, or defining the name."

I have defined an API call named Distance Matrix.

What have you tried so far?
  1. I tried to implement the API call directly in my custom function, but all the imports were ignored by FlutterFlow.

  2. Search across the Internet but without any success.

Did you check FlutterFlow's Documentation for this topic?
Yes
4
6 replies