Giter VIP home page Giter VIP logo

ios-places-sdk's Introduction

Google Places SDK For iOS Swift package

Description

This repository contains the Swift package for the Places SDK for iOS. For additional methods of installing the Places SDK for iOS including CocoaPods, see the Places SDK for iOS documentation.

Requirements

  • Xcode version 15.0 or later
  • An app targeting iOS 15 or later
  • A Google Maps Platform project with the Places API enabled.
  • An API key associated with the project above.

Installation

  1. Follow the instructions for adding package dependencies to your app in Xcode.

  2. In the "Enter Package URL" field, enter this GitHub repository:

    https://github.com/googlemaps/ios-places-sdk
    
  3. Select the version of the Places SDK for iOS that you want to use. For new projects, we recommend specifying the latest version and using the "Exact Version" option.

  4. Follow the instructions to add your API key to your app.

Sample App

See samples demonstrating use of the Places SDK for iOS on developers.google.com or on GitHub.

Documentation

Documentation for the Places SDK for iOS is available as guides and reference documentation.

Contributing

External contributions are not accepted for this repository, per the Contributing guide.

Terms of Service

This package uses Google Maps Platform services, and any use of Google Maps Platform is subject to the Terms of Service.

Support

This repository is offered via an open source license. It is not governed by the Google Maps Platform Support Technical Support Services Guidelines, the SLA, or the Deprecation Policy (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service).

This repository adheres to semantic versioning to indicate when backwards-incompatible changes are introduced.

If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our developer community channels. You can also discuss this library on the Google Maps Platform Discord server.

ios-places-sdk's People

Contributors

dogahe avatar wangela avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

svatrous guieco

ios-places-sdk's Issues

The best way to know if a venue is open 24 hours using periods ?

This is not really a bug but the documentation isn't really clear on this and not sure the best forum to pursue this.

I am using the places iOS SDK to get various different places and display the opening hours of a business and for the most part this works great.

I am using GMSPeriod to display the opening hours, the part that I am struggling with is knowing if a venue is open for 24 hours or not.

The documentation for GMSPeriod states

If the period is representing open 24hrs, it will only have the openEvent with time as "0000".

With this statement, I was expecting it to give me an openEvent with a value of 0000 for each day, however, what I can see is only one period when a business is open for 24 hours

image

Shouldn't we get a period for every day ?

What if a business is open for 24 hours on a specific day and regular hours on another day - how would the response differ ?

Google Places: App Security issues found in GMP for iOS

Environment details

  1. Google Places
  2. iOS
  3. Places version 8.2.1

Our dynamic app security scan provider, Data Theorem, identified that

[GMP uses] the CC_MD hashing functions, which leverage hashing algorithms (including MD2 and MD5) that are proven to be vulnerable to collision attacks, and are unsuitable for modern use.

Apple has officially deprecated these APIs in the iOS 13.0 SDK. They state in the CommonCrypto headers:

"These functions are cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger)."

If CC_MD hashing functions are used in a security context, are there plans to update the SDK with use of stronger algorithms with better collision resistance properties, such as SHA-256 or SHA-512?

If CC_MD is not being used in a security context, can you confirm so?

Thank you!

Stack trace

-[GMPx_PHTSnapshot emptyConfiguration:]
-[GMPx_PHTSnapshot isValidFlagsHashInSnapshot:]
-[GMPx_PHTPhenotypeConfiguration initWithAllFlagsDictionary:serverToken:userID:tokens:configurationVersion:]
-[_OBJC_CLASS_$_NSMutableArray init]
-[GMPx_PHTSnapshot emptyConfiguration:]
-[GMPx_PHTSnapshot isValidFlagsHashInSnapshot:]
-[GMPx_PHTPhenotypeConfiguration initWithAllFlagsDictionary:serverToken:userID:tokens:configurationVersion:]
-[_OBJC_CLASS_$_NSMutableArray init]
-[GMPx_CCTClearcutLogEvent initWithLogSource:isAnonymous:clock:]
-[GMPx_CCTClearcutLogEvent initWithLogSource:isAnonymous:]
-[GMPx_CCTClearcutLogEvent initWithLogSource:]
@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x"
-[GMPx_PHTSnapshot emptyConfiguration:]
-[GMPx_PHTSnapshot isValidFlagsHashInSnapshot:]
-[GMPx_PHTPhenotypeConfiguration initWithAllFlagsDictionary:serverToken:userID:tokens:configurationVersion:]
-[_OBJC_CLASS_$_NSMutableArray init]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.