Skip to main content

Properties

Example

C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Zengenti.Contensis.Delivery; // Create an API client var client = ContensisClient.Create(); // Retrieve a film by it's ID. var movie = client.Entries.Get("0aabad4e-a083-4a88-bd75-b2674e2f8298"); // Get the field value as a Location instance. var filmingLocation = movie.Get<Location>("filmingLocation"); // Combine lat/lng into a string. var latLng = {{APP}}quot;{filmingLocation.Lat},{filmingLocation.Lon}"; // Use Google map API to generate a map image. var imgUrl = "https://maps.googleapis.com/maps/api/staticmap?center="+latLng+"&zoom=14&size=400x300&sensor=false"; <div id="map"> <img src="@imgUrl" /> </div>

Still need help?

New support request