Maps

Our platform provides a wide range of apis and UI elements to easily achieve a rich map experience on both web and mobile. Nowadays location awareness to your application has become a basic feature rather than an advanced feature.

Use location location and map apis for a wide range of applications like

  • Track your orders in real time on a map

  • Share your current location for field service mobile apps

  • Manage your drivers and real time locations

  • Add point of interest on custom maps

  • Geo-segments for sending location specific messages

Location object: Our location object hold information about latitude, longitude and full address.

Creating a welcome screen:

{
	"name": "Cafe",
	"suitNumber": "",
	"streetNumber": "",
	"streetName": "Donald St",
	"suburb": "Marsden Park",
	"postcode": "2765",
	"state": "NSW",
	"country": "Australia",
	"lat": -33.6919761,
	"lon": 150.8228812,
	"version" : 1,
	"tags": []
}

Platform provide apis to create, update and list all the locations in the system.

Create:

POST https://live.mobiddiction.com/api/location
Content-Type: "application/json"

Update:

PUT https://live.mobiddiction.com/api/location/<locationId>
Content-Type: &quot;application/json&quot;

List:

GET https://live.mobiddiction.com/api/location
Content-Type: &quot;application/json&quot;

Point of interest:

Use our content apis, to attach any additional information to a particular location. Create a location and attach this location a content/news. Platform even allows you to attach multiple locations to a particular content item. The content is divided into different content types which will allow us to add different pins for different content-types.

POST https://live.mobiddiction.com/api/content
Content-Type: &quot;application/json&quot;
Payload:
{
  &quot;name&quot;: &quot;Title for the conetnt&quot;,
  &quot;content&quot;: &quot;description&quot;,
  &quot;type_id&quot;: <content-type-id>,
  &quot;active&quot;: true,
  &quot;locationList&quot;: [{&quot;<locationId>&quot;:}],
}

Track your users/drivers:

User can share their current location and our system attaches these locations objects to users using location update api. This can be used to track your driver or delivery order in progress.

POST https://live.mobiddiction.com/api/locationUpdate?userId=<userId>
Content-Type: &quot;application/json&quot;
Payload:
{
	&quot;lat&quot;: -33.6919761,
	&quot;lon&quot;: 150.8228812
}
POST https://live.mobiddiction.com/api/locationUpdate?userId=<userId>
Content-Type: &quot;application/json&quot;
Payload:
{
	&quot;lat&quot;: -33.6919761,
	&quot;lon&quot;: 150.8228812
}

Route information:

Use our location apis to attach a pick up and drop off locations to your delivery jobs. This is used in our

Geo-Segments:

Use our location apis to create geo-segments and publish content only to the user in the segment. Read more about our geo-segment features.