question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Making establishment type work?

See original GitHub issue

I can’t get to make the establishment type to work. Cities work while establishment doesn’t how come see code and screenshot below:

Screenshot here http://screencast.com/t/Xx9xXgqaZYzb


  <GooglePlacesAutocomplete
        placeholder='Establishments Name'
        minLength={0} // minimum length of text to search
        autoFocus={false}
        fetchDetails={false}
        enablePoweredByContainer={false}
        onPress={(data, details = null) => { // 'details' is provided when fetchDetails = true
          console.log(data);
          console.log(details);
        }}
        getDefaultValue={(value) => {
          return ''
          // this.props.onDefaultValue(value) // text input default value
        }}
        query={{
          // available options: https://developers.google.com/places/web-service/autocomplete
          key: 'AIza--------------------key',
          language: 'en', // language of the results
          types: '(establishment)', // default: 'geocode'
        }}
        styles={{
          description: {
            fontWeight: 'bold',
          },
          predefinedPlacesDescription: {
            color: '#1faadb',
          },
        }}
        listViewDisplayed={true}
        nearbyPlacesAPI='GooglePlacesSearch' // Which API to use: GoogleReverseGeocoding or GooglePlacesSearch
        GoogleReverseGeocodingQuery={{
          // available options for GoogleReverseGeocoding API : https://developers.google.com/maps/documentation/geocoding/intro
        }}
        GooglePlacesSearchQuery={{
          // available options for GooglePlacesSearch API : https://developers.google.com/places/web-service/search
          rankby: 'distance',

        }}

        currentLocation={false}
        filterReverseGeocodingByTypes={['locality', 'administrative_area_level_3']} // filter the reverse geocoding results by types - ['locality', 'administrative_area_level_3'] if you want to display only cities


      />

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mayaskcommented, Sep 30, 2016

@jojonarte did it work?

0reactions
jojonartecommented, Oct 7, 2016

yup thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clarification of Multiple Business Establishments and Covered ...
In cases where employees work at several different locations, or do not work at any establishment, Section 1904.30(b)(3) requires that each employee must...
Read more >
Creating the Best Workplace on Earth
Show how the daily work makes sense. 6. Have rules people can believe in. This list contains no surprises, but implementing the elements...
Read more >
Establishment, firm, or enterprise: does the unit of analysis ...
Job flows at the establishment and firm level are a powerful tool for understanding employment dynamics. The information at each of those levels...
Read more >
What Is Permanent Establishment? A Simplified Guide
There are a few common types of permanent establishments, including fixed place of business, sales agents, and service.
Read more >
Establishment characteristics and work practices
This paper is one in a series of sector profiles giving an overview of structural characteristics, work organisation practices, human resource management ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found