Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Check in with Google maps API

Posted on 2012-12-31
4
Medium Priority
?
383 Views
Last Modified: 2013-02-18
I would like an example for using the Google maps api to check in based on location.  

For example,  I could be sitting in a gas station,  and click a "where am I?"  Button,  and have it query Google maps and match where I am to a listing.

I am sure this is possible because four square does something similar.
0
Comment
Question by:DrDamnit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
DrDamnit earned 0 total points
ID: 38733355
0
 
LVL 10

Expert Comment

by:Gregg
ID: 38733930
My comment will not help you with your question but I thought this may be of some interest. It appears to be more conceptual book - but it may relate to your project efforts.

Ubiquitous Positioning and Mobile Location-Based Services in Smart Phones
By: Ruizhi Chen
Publisher: IGI Global
Pub. Date: June 30, 2012
Print Isbn-10: 1-4666-1827-2
Print Isbn-13: 978-1-4666-1827-5
Web Isbn-13: 978-1-4666-1828-2


---

Can you look into Proximity Alert combined with Location Manager? I am wondering if using the StackOverflow example to query the longitude and latitude. Then use coordinates in the proximity alert example?

http://stackoverflow.com/questions/2227292/how-to-get-latitude-and-longitude-of-the-mobiledevice-in-android

The Android Developer’s Cookbook: Building Applications with the Android SDK
TheLocationManager provides a method to set a proximity alert.This triggers an alert
when a user enters or leaves a defined area.The area is specified by a latitude-longitude
coordinate and a radius in meters.The alert is specified with a PendingIntentto be
launched whenever a user enters or leaves the specified area.An expiration time for the
alert can also be defined.


double mlatitude=35.41;
double mlongitude=139.46;
float mRadius=500f; // in meters
long expiration=-1; //-1 never expires or use milliseconds
Intent mIntent = new Intent("You entered the defined area");
PendingIntent mFireIntent
= PendingIntent.getBroadCast(this, -1, mIntent, 0);
mLocationManager.addProximityAlert(mlatitude, mlongitude,
mRadius, expiration, mFireIntent);

Open in new window

0
 
LVL 32

Author Closing Comment

by:DrDamnit
ID: 38904201
The Google Places API was the best solution.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question