SlideShare a Scribd company logo
Building mobile apps using
Salesforce geolocation features
Christopher Barrett, DDR Corp, Senior Manager of Business Applications
@DDR_IT_CBarrett
Benjamin Pirih, NTT Centerstance, Senior Consultant
@BenjaminPirih
Salesforce Safe harbor
Safe harbor statement under the Private Securities Litigation Reform Act of 1995:
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties
materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results
expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be
deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other
financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any
statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new
functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our
operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any
litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our
relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our
service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to
larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is
included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent
fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor
Information section of our Web site.
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently
available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions
based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these
forward-looking statements.
DDR Corp. Safe harbor
DDR considers portions of the information in this presentation to be forward-looking statements within the meaning of Section 27A
of the Securities Act of 1933 and Section 21E of the Securities Exchange Act of 1934, both as amended, with respect to the
Company's expectation for future periods. Although the Company believes that the expectations reflected in such forward-looking
statements are based upon reasonable assumptions, it can give no assurance that its expectations will be achieved. For this
purpose, any statements contained herein that are not historical fact may be deemed to be forward-looking statements. There are a
number of important factors that could cause our results to differ materially from those indicated by such forward-looking
statements, including, among other factors, local conditions such as oversupply of space or a reduction in demand for real estate in
the area; competition from other available space; dependence on rental income from real property; the loss of, significant
downsizing of or bankruptcy of a major tenant; constructing properties or expansions that produce a desired yield on investment;
our ability to buy or sell assets on commercially reasonable terms; our ability to complete acquisitions or dispositions of assets
under contract; our ability to secure equity or debt financing on commercially acceptable terms or at all; our ability to enter into
definitive agreements with regard to our financing and joint venture arrangements or our failure to satisfy conditions to the
completion of these arrangements; and the success of our capital recycling strategy. For additional factors that could cause the
results of the Company to differ materially from those indicated in the forward-looking statements, please refer to the Company's
Form 10-K for the year ended December 31, 2012, as amended. The Company undertakes no obligation to publicly revise these
forward-looking statements to reflect events or circumstances that arise after the date hereof.
Christopher Barrett
DDR Corp
Senior Manager of Business Applications
@DDR_IT_CBarrett
All about DDR Corp.
DDR Corp. owns and manages approximately 440 retail
properties in the continental United States, Puerto Rico and
Brazil. Our prime portfolio primarily features open-air, valueoriented shopping centers in high barrier-to-entry markets
with stable populations and high growth potential.
▪ DDR Corp. aspires to be the most admired provider of retail
destinations and the first consideration for retailers, investors,
partners and employees.
▪ The company is publicly traded on the New York Stock Exchange
under the symbol DDR.
More information: http://www.ddr.com
Benjamin Pirih
NTT Centerstance
Senior Consultant
@BenjaminPirih
All about NTT Centerstance
NTT Centerstance is a consulting company specializing in
business transformation through process improvement and
application of cloud technologies.
▪ Platinum Cloud Alliance Partner with salesforce.com with one of the
highest customer satisfaction ratings
▪ Ranked in top ten "Best of the Best" professional services firms by
SPI research two years running
▪ 110+ employees with extensive management consulting, technology
and business process experience
More information http://www.nttcenterstance.com
Geolocation for DDR
We use this technology to enhance our mobile applications:
▪ AdvancedSearch
• Visualize DDR shopping center locations
• Display locations of nearby DDR shopping centers
• Search and display locations of nearby retailers

▪ LocationPicker
• Better manage our portfolio of shopping centers through geolocation tagging of
shopping center incident locations
Geolocation in Salesforce
How to store geolocation information
▪ Before winter 13 release stored latitude and longitude as text fields
• Consumed two fields
• No location-based searching

▪ Winter 13 release created new geolocation field type
• Compound field that contains both latitude and longitude
• Supports Degree or Decimal notation
• WITHIN operator for list views based on location
• Location-based search on Salesforce objects using Distance and Geolocation
Technology Overview
The following technologies were used in our applications:
▪ Visualforce and Apex
▪ SOQL Geolocation functions
▪ Visualforce Javascript remoting
▪ Google Maps Javascript API v3
▪ Google Static Maps API v2
▪ Google Places API
▪ jQuery
Demo - Visualize DDR shopping center locations
Query Geolocation Fields
Perform SOQL query to return location based information
▪ New query syntax
Shopping Center Visualization Implementation
Apex Controller retrieved location information via SOQL query
Defined public property for our result in visualforce controller class

JSON Encoded query
Shopping Center Visualization Implementation
In Javascript render a Google Maps Marker
Demo - Display locations of nearby DDR shopping
centers
Visualize Nearby Shopping Centers
How did we search for nearby centers?
▪ Winter 13 Supports the Distance and Geolocation SOQL Functions
• Distance Function calculates the distance between two locations in miles or
kilometers
• Geolocation Function returns a location based on the provided latitude and
longitude
– Must be used with Distance Function
Performing Distance Based Query
Use SOQL to construct query
Google Places Search vs. Salesforce Location Query
Ability to search and display locations of nearby retailers
▪ Used Google Places API to retrieve business information
• No way to filter results for specific business types
• Results were misleading / incorrect
• Usage limits

▪ Create custom Salesforce object to mange retailer location information
• Allowed complete control over search results
• Can filter based on object fields in SOQL
• Location-based search on Salesforce objects
Demo - Search and display locations of nearby
retailers
Google Places Search vs. Salesforce Location Query
Calling Google Places
▪ Used Google Places API Rest to access retailer information
Google Places Search vs. Salesforce Location Query
Calling Salesforce geolocation Query
Incident Management Using Geolocation
DDR wanted to better manage Shopping Center Incidents
▪ Constructed a custom object to store incident information
▪ Used Google Maps to plot incident locations and store in Salesforce
▪ Developed the capability to capture static map images
Demo – LocationPicker for Incident Management
Incident Management Using Geolocation
Define a method with the @Remote Action attribute in Controller
Perform Javascript Remoting call to Apex Method
Incident Management Static Maps API Usage
Retrieve Incidents and construct URL to Google Static Maps API
Incident Management Static Maps API Usage
Make HTTP Request and Return Image Result
Incident Management Static Maps API Usage
Save Http Result Blob as Attachment
Conclusion
1. Demonstrated DDR’s business benefits from the usage of native geolocation functionality.
2. Demonstrated real world mobile applications showcasing native geolocation functionality.
3. Explained the core technologies and methodologies used when working with geolocation
fields.
We would encourage you to develop applications using this technology.
Building Mobile Apps Using Salesforce Geolocation Features
Building Mobile Apps Using Salesforce Geolocation Features

More Related Content

PPTX
PPT BANGUN DATAR.pptx
PDF
Create Lightning with Lightning & IoT
PDF
ISV Advanced Guide to Building a Salesforce1 Mobile App (October 14, 2014)
PPTX
Building a Single Page App with Lightning Components
PDF
Create a Hybrid Mobile App With the Salesforce Mobile SDK
PPTX
Blue Clover Devices: The IoT ODM
PDF
Salesforce Learning Journey - Partner Guide to Credentials.pdf
PPTX
Dreamforce 2014 - Salesforce Python SDK for REST/SOAP APIs
PPT BANGUN DATAR.pptx
Create Lightning with Lightning & IoT
ISV Advanced Guide to Building a Salesforce1 Mobile App (October 14, 2014)
Building a Single Page App with Lightning Components
Create a Hybrid Mobile App With the Salesforce Mobile SDK
Blue Clover Devices: The IoT ODM
Salesforce Learning Journey - Partner Guide to Credentials.pdf
Dreamforce 2014 - Salesforce Python SDK for REST/SOAP APIs

Similar to Building Mobile Apps Using Salesforce Geolocation Features (20)

PDF
Salesforce Backup, Restore & Archiving- Adam Best, Senior Program Architect
PPTX
Bootstrapping DX in Your Enterprise - AutoRABIT at TrailheaDX
PDF
Data hero dream ole19
PPTX
Release Winter 22 FR
PPTX
Winter 22 release
PPTX
Known and unknown Salesforce Marketing Cloud limitations… and some workaround...
PDF
Integrating Back Office Applications and Data With Salesforce.com
PDF
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...
PDF
Adding Chatter to On-Premise Applications
PPTX
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2
PDF
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
PDF
WT19: An Amazing Lightning Transition in Review
PDF
Salesforce Tour Paris - Platform Events - Martin Lezer
PPTX
Introduction to lightning out df16
PPTX
Salesforce Partner Forum: The Internet of Things Opportunity
PDF
#virtualdreamin CTA Journey - Presentation Framework
PPTX
Web Apps for Salesforce with Heroku Connect
PPTX
How to Use Salesforce Platform Events to Help With Salesforce Limits
PPTX
Dreamforce 2019: "Using Quip for Better Documentation of your Salesforce Org"
PPTX
Summer 23 LWC Updates + Slack Apps.pptx
Salesforce Backup, Restore & Archiving- Adam Best, Senior Program Architect
Bootstrapping DX in Your Enterprise - AutoRABIT at TrailheaDX
Data hero dream ole19
Release Winter 22 FR
Winter 22 release
Known and unknown Salesforce Marketing Cloud limitations… and some workaround...
Integrating Back Office Applications and Data With Salesforce.com
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...
Adding Chatter to On-Premise Applications
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
WT19: An Amazing Lightning Transition in Review
Salesforce Tour Paris - Platform Events - Martin Lezer
Introduction to lightning out df16
Salesforce Partner Forum: The Internet of Things Opportunity
#virtualdreamin CTA Journey - Presentation Framework
Web Apps for Salesforce with Heroku Connect
How to Use Salesforce Platform Events to Help With Salesforce Limits
Dreamforce 2019: "Using Quip for Better Documentation of your Salesforce Org"
Summer 23 LWC Updates + Slack Apps.pptx
Ad

More from Salesforce Developers (20)

PDF
Maximizing Salesforce Lightning Experience and Lightning Component Performance
PDF
Local development with Open Source Base Components
PPTX
TrailheaDX India : Developer Highlights
PDF
Why developers shouldn’t miss TrailheaDX India
PPTX
CodeLive: Build Lightning Web Components faster with Local Development
PPTX
CodeLive: Converting Aura Components to Lightning Web Components
PPTX
Enterprise-grade UI with open source Lightning Web Components
PPTX
TrailheaDX and Summer '19: Developer Highlights
PDF
Live coding with LWC
PDF
Lightning web components - Episode 4 : Security and Testing
PDF
LWC Episode 3- Component Communication and Aura Interoperability
PDF
Lightning web components episode 2- work with salesforce data
PDF
Lightning web components - Episode 1 - An Introduction
PDF
Migrating CPQ to Advanced Calculator and JSQCP
PDF
Scale with Large Data Volumes and Big Objects in Salesforce
PDF
Replicate Salesforce Data in Real Time with Change Data Capture
PDF
Modern Development with Salesforce DX
PDF
Get Into Lightning Flow Development
PDF
Integrate CMS Content Into Lightning Communities with CMS Connect
PDF
Introduction to MuleSoft
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Local development with Open Source Base Components
TrailheaDX India : Developer Highlights
Why developers shouldn’t miss TrailheaDX India
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Converting Aura Components to Lightning Web Components
Enterprise-grade UI with open source Lightning Web Components
TrailheaDX and Summer '19: Developer Highlights
Live coding with LWC
Lightning web components - Episode 4 : Security and Testing
LWC Episode 3- Component Communication and Aura Interoperability
Lightning web components episode 2- work with salesforce data
Lightning web components - Episode 1 - An Introduction
Migrating CPQ to Advanced Calculator and JSQCP
Scale with Large Data Volumes and Big Objects in Salesforce
Replicate Salesforce Data in Real Time with Change Data Capture
Modern Development with Salesforce DX
Get Into Lightning Flow Development
Integrate CMS Content Into Lightning Communities with CMS Connect
Introduction to MuleSoft
Ad

Recently uploaded (20)

PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Machine Learning_overview_presentation.pptx
PDF
August Patch Tuesday
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Spectroscopy.pptx food analysis technology
PPTX
1. Introduction to Computer Programming.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Getting Started with Data Integration: FME Form 101
PDF
Heart disease approach using modified random forest and particle swarm optimi...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Empathic Computing: Creating Shared Understanding
Encapsulation_ Review paper, used for researhc scholars
A comparative study of natural language inference in Swahili using monolingua...
Machine Learning_overview_presentation.pptx
August Patch Tuesday
Group 1 Presentation -Planning and Decision Making .pptx
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25-Week II
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectroscopy.pptx food analysis technology
1. Introduction to Computer Programming.pptx
cloud_computing_Infrastucture_as_cloud_p
Getting Started with Data Integration: FME Form 101
Heart disease approach using modified random forest and particle swarm optimi...

Building Mobile Apps Using Salesforce Geolocation Features

  • 1. Building mobile apps using Salesforce geolocation features Christopher Barrett, DDR Corp, Senior Manager of Business Applications @DDR_IT_CBarrett Benjamin Pirih, NTT Centerstance, Senior Consultant @BenjaminPirih
  • 2. Salesforce Safe harbor Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3. DDR Corp. Safe harbor DDR considers portions of the information in this presentation to be forward-looking statements within the meaning of Section 27A of the Securities Act of 1933 and Section 21E of the Securities Exchange Act of 1934, both as amended, with respect to the Company's expectation for future periods. Although the Company believes that the expectations reflected in such forward-looking statements are based upon reasonable assumptions, it can give no assurance that its expectations will be achieved. For this purpose, any statements contained herein that are not historical fact may be deemed to be forward-looking statements. There are a number of important factors that could cause our results to differ materially from those indicated by such forward-looking statements, including, among other factors, local conditions such as oversupply of space or a reduction in demand for real estate in the area; competition from other available space; dependence on rental income from real property; the loss of, significant downsizing of or bankruptcy of a major tenant; constructing properties or expansions that produce a desired yield on investment; our ability to buy or sell assets on commercially reasonable terms; our ability to complete acquisitions or dispositions of assets under contract; our ability to secure equity or debt financing on commercially acceptable terms or at all; our ability to enter into definitive agreements with regard to our financing and joint venture arrangements or our failure to satisfy conditions to the completion of these arrangements; and the success of our capital recycling strategy. For additional factors that could cause the results of the Company to differ materially from those indicated in the forward-looking statements, please refer to the Company's Form 10-K for the year ended December 31, 2012, as amended. The Company undertakes no obligation to publicly revise these forward-looking statements to reflect events or circumstances that arise after the date hereof.
  • 4. Christopher Barrett DDR Corp Senior Manager of Business Applications @DDR_IT_CBarrett
  • 5. All about DDR Corp. DDR Corp. owns and manages approximately 440 retail properties in the continental United States, Puerto Rico and Brazil. Our prime portfolio primarily features open-air, valueoriented shopping centers in high barrier-to-entry markets with stable populations and high growth potential. ▪ DDR Corp. aspires to be the most admired provider of retail destinations and the first consideration for retailers, investors, partners and employees. ▪ The company is publicly traded on the New York Stock Exchange under the symbol DDR. More information: http://www.ddr.com
  • 6. Benjamin Pirih NTT Centerstance Senior Consultant @BenjaminPirih
  • 7. All about NTT Centerstance NTT Centerstance is a consulting company specializing in business transformation through process improvement and application of cloud technologies. ▪ Platinum Cloud Alliance Partner with salesforce.com with one of the highest customer satisfaction ratings ▪ Ranked in top ten "Best of the Best" professional services firms by SPI research two years running ▪ 110+ employees with extensive management consulting, technology and business process experience More information http://www.nttcenterstance.com
  • 8. Geolocation for DDR We use this technology to enhance our mobile applications: ▪ AdvancedSearch • Visualize DDR shopping center locations • Display locations of nearby DDR shopping centers • Search and display locations of nearby retailers ▪ LocationPicker • Better manage our portfolio of shopping centers through geolocation tagging of shopping center incident locations
  • 9. Geolocation in Salesforce How to store geolocation information ▪ Before winter 13 release stored latitude and longitude as text fields • Consumed two fields • No location-based searching ▪ Winter 13 release created new geolocation field type • Compound field that contains both latitude and longitude • Supports Degree or Decimal notation • WITHIN operator for list views based on location • Location-based search on Salesforce objects using Distance and Geolocation
  • 10. Technology Overview The following technologies were used in our applications: ▪ Visualforce and Apex ▪ SOQL Geolocation functions ▪ Visualforce Javascript remoting ▪ Google Maps Javascript API v3 ▪ Google Static Maps API v2 ▪ Google Places API ▪ jQuery
  • 11. Demo - Visualize DDR shopping center locations
  • 12. Query Geolocation Fields Perform SOQL query to return location based information ▪ New query syntax
  • 13. Shopping Center Visualization Implementation Apex Controller retrieved location information via SOQL query Defined public property for our result in visualforce controller class JSON Encoded query
  • 14. Shopping Center Visualization Implementation In Javascript render a Google Maps Marker
  • 15. Demo - Display locations of nearby DDR shopping centers
  • 16. Visualize Nearby Shopping Centers How did we search for nearby centers? ▪ Winter 13 Supports the Distance and Geolocation SOQL Functions • Distance Function calculates the distance between two locations in miles or kilometers • Geolocation Function returns a location based on the provided latitude and longitude – Must be used with Distance Function
  • 17. Performing Distance Based Query Use SOQL to construct query
  • 18. Google Places Search vs. Salesforce Location Query Ability to search and display locations of nearby retailers ▪ Used Google Places API to retrieve business information • No way to filter results for specific business types • Results were misleading / incorrect • Usage limits ▪ Create custom Salesforce object to mange retailer location information • Allowed complete control over search results • Can filter based on object fields in SOQL • Location-based search on Salesforce objects
  • 19. Demo - Search and display locations of nearby retailers
  • 20. Google Places Search vs. Salesforce Location Query Calling Google Places ▪ Used Google Places API Rest to access retailer information
  • 21. Google Places Search vs. Salesforce Location Query Calling Salesforce geolocation Query
  • 22. Incident Management Using Geolocation DDR wanted to better manage Shopping Center Incidents ▪ Constructed a custom object to store incident information ▪ Used Google Maps to plot incident locations and store in Salesforce ▪ Developed the capability to capture static map images
  • 23. Demo – LocationPicker for Incident Management
  • 24. Incident Management Using Geolocation Define a method with the @Remote Action attribute in Controller Perform Javascript Remoting call to Apex Method
  • 25. Incident Management Static Maps API Usage Retrieve Incidents and construct URL to Google Static Maps API
  • 26. Incident Management Static Maps API Usage Make HTTP Request and Return Image Result
  • 27. Incident Management Static Maps API Usage Save Http Result Blob as Attachment
  • 28. Conclusion 1. Demonstrated DDR’s business benefits from the usage of native geolocation functionality. 2. Demonstrated real world mobile applications showcasing native geolocation functionality. 3. Explained the core technologies and methodologies used when working with geolocation fields. We would encourage you to develop applications using this technology.