Encode google polyline

Hi
I have a list of points and I would like to encode them as a polyline string (google or here) is there any procedure for this?

You can use a TTMSFNCMapsCoordinateRecArray to do this.

Example:

uses
  FMX.TMSFNCMapsCommonTypes;

procedure TForm1.TMSFNCMaps1MapInitialized(Sender: TObject);
var
  co: TTMSFNCMapsCoordinateRecArray;
begin
  SetLength(co, 4);
  co[0].Latitude := -21.4424;
  co[0].Longitude := -42.3592;
  co[1].Latitude := -18.7711;
  co[1].Longitude := -44.4227;
  co[2].Latitude := -20.6407;
  co[2].Longitude := -47.0643;
  co[3].Latitude := -23.4027;
  co[3].Longitude := -46.5820;
  TMSFNCMaps1.AddPolyline(co);
  TMSFNCMaps1.ZoomToBounds(co);
end;