Hi All,
I am trying to create an attendance system which would allow the employees to check in and check out through the application. The check in and check out would allow the users to store the data like user name ,email, check in date and time and check out date and time , location longitude , location latitude. I am also trying to store address based on location longitude and location latitude.
Now,
the issue that I am getting is while storing location address.
I am using the below code for patch function, the patch works fine and the data gets stored except the location text which uses the Bing map api (getlocationbypoint).
Patch(
'Attendance System', /* <-- '20181115_CheckInAndOut' represents the SP list on my side, you should replace with your own list*/
Defaults('Attendance System'),
{
Title: "Test",
EmployeeName: username,
EmployeeEmail: useremail,
CheckInDateandTime: Now(),
LocationLongitude:Location.Longitude,
LocationLatitue:Location.Latitude,
LocationText:BingMaps.GetLocationByPoint(Location.Latitude,
Location.Longitude).address.addressLine
}
);
Navigate(success_checkin,ScreenTransition.CoverRight)
Below is the error i am facing

any idea how i can store the address based upon longitude and latitude.
Would appreciate if any help is provided.
Cheers!!