Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [location]

Real-world geographic locations can be associated with Drupal entities.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Search View location filter not working after change from Solr to DB server?

I have a search view that allows the user to filter a list of people by distance from a location the user can input. This uses the 'Location: latlong pair' as the filter. Unfortunately we've had to ...
user avatar
  • 161
5 votes
0 answers
118 views

How does the Geolocation content of a page filter is a Views block?

I have a website with Drupal 9 and the Geolocation module : https://www.drupal.org/project/geolocation I created a content type with a Geolocation field that contains coordinates. My website uses the ...
user avatar
0 votes
1 answer
37 views

Programmatically set latitude and longitude exposed input

I've been using geolocation 8.x-1.12 for a while now. I have a REST route that gets a view with my exposed form and returns the results. Previously I did: $plugin = \Drupal::service('plugin.manager....
user avatar
  • 405
0 votes
1 answer
20 views

Geolocation open InfoWindow on load

I can't get my head around the following. I'm using the Geolocation module to show a map on my website and I want the InfoWindow to be open by default. I found that this should be possible by using ...
user avatar
  • 894
-1 votes
1 answer
195 views

Search API location distance filter not working

I'm trying to create a search page with Search API Solr, Search API location and a Geolocation field. I've got my view, and my lat/lng fields are correctly indexed. E.g. I've selected these fields for ...
user avatar
  • 4,866
0 votes
1 answer
229 views

The geographic data (latitude, longitude) isn't saved in content

I have installed the Geofield module, created a new content type, and added a geofield field. When I start to add nodes with latitude and longitude, those values aren't saved. Editing again the same ...
user avatar
  • 1
0 votes
1 answer
78 views

How can I get lat/lon from an address?

I have these modules addressfield geofield geocoder Is there any function to which I can pass an address like Stree, zipcode city, Country and it returns a lat/lon from that address? I have ...
user avatar
  • 2,697
0 votes
0 answers
404 views

Geolocation and view proximity filter - Can you default proximity to zero?

I'm trying to see if there is a way to default the views proximity filter to input zero for proximity values when the filter is empty, so we can sort the data using a different field by default. What ...
user avatar
0 votes
1 answer
33 views

Building views relationship with location

I have an article and food content types. I use location module fields in both content types. So for example, when I write an article about restaurants in New York, I choose article's location as ...
user avatar
  • 1
0 votes
1 answer
93 views

Location Contextual Filter: Distance/Proximity works for all nodes but one

Drupal 7 site with Location and Location CCK modules. Client has custom content type with Location field provided by Location CCK module. Each Location node has a Views block display of Nearby ...
user avatar
  • 1,939
0 votes
1 answer
27 views

Location subfields problem to render in teaser template node

I have tried render only two array´s parameters. Street and postal code but don´t display anything this code. <?php print render($content['field_mapa']['und'][0]['street']); ?>and <?php ...
user avatar
0 votes
1 answer
71 views

How to create a theme function for overriding Address Field theming?

How do you create a theme function for overriding the formatting of an Address Field in Drupal 7? I didn't want to create a CTools plugin or work with render arrays.
user avatar
1 vote
1 answer
684 views

How to send a custom Solr Distance Query with SearchApi

My nodes have a geofield and my search query should find all the nodes within a range. I've managed to create a search form against my Solr Server with views. But I want to do the request by myself (...
user avatar
  • 2,363
0 votes
2 answers
77 views

How to filter users based on address location?

I have a content type "job". There is a field "location" which contains the zip code of area. Now i want to filter users based on distance from job's zip code. Each user also have a zip code. I ...
user avatar
  • 189
0 votes
1 answer
26 views

geolocation_views: show combined data in tooltip

I have two content types that work together: "place": a place on a map (via a geolocation field) "object": an object that is in a specific "place" (referenced via an entityreference field) Several "...
user avatar
  • 755
1 vote
0 answers
212 views

View that displays map with clustered points and Streetview option

I need to construct a map block that displays multiple location markers with the following characteristics: Markers are linked to other content on the page. Markers are clustered until you zoom in ...
user avatar
0 votes
2 answers
92 views

Create a Gmap with Views that connects locations of different nodes

I am looking for a way to make some sort of roadtrip website. The idea is to use two node types: a parent nodetype "Roadtrip" and a child nodetype "Day". The user can create a Roadtrip and add a ...
user avatar
  • 90
-1 votes
1 answer
39 views

how to get location tokens to work in pathauto

I am attempting to use a city location in the URL via pathauto. I have this for the URL [node:title]/[node:location:city:0] When I create a new node, however, only the title is inserted into the URL. ...
user avatar
  • 135
0 votes
1 answer
200 views

Lat/Long not getting imported into Geofield via feeds importer

I am working on a Drupal 7 website where I have a content type with geofield I am importing a .csv file with lat/long (title and lat/long(geofield)) the node gets created with title, but no location ...
user avatar
2 votes
1 answer
826 views

How to show the distance relative to the user's location?

I'm trying to recreate a site, and one part of the content is supposed to show the distance relative to the user's location, like this: Does anyone know of a way I can accomplish this?
user avatar
  • 21
1 vote
2 answers
1k views

Geolocation Field - Map Marker in Views

I'm trying to show a map with multiple markers with the help of Views and Geolocation field. It would be nice for example if I can show the image in the tooltip display of the marker. But when I add ...
user avatar
0 votes
1 answer
261 views

Proximity filter without Solr

We have a view that displays indexed nodes and we would like to add the ability to filter by proximity to a user-input zip code. I know this can be achieved with Solr and the Search API Location ...
user avatar
1 vote
0 answers
344 views

Programmatically make a proximity search with Solr [closed]

I'm using Search Api Solr to do programmatic searches with the following example code. How can I include a proximity search with this approach? I've installed Search API Location - I'm looking through ...
user avatar
  • 507
-1 votes
1 answer
479 views

Smart IP doesn't show countries

I want to get visitors' latitude, longitude, and country name. I am using the Smart IP module, but it won't show those details. How can I get that data? I need this information to create view's ...
user avatar
  • 300
2 votes
0 answers
33 views

IPGV&M, how do I get the geocoder to prefer locations 'near me'

For example, if the map is centred on Sydney and people enter 2000 in the 'move to' box it sends me to Portland rather than Sydney CBD which also has a postcode of 2000. The regionbound description ...
user avatar
  • 1,319
0 votes
1 answer
102 views

How to approximate user location on IP&Geoloc maps

I'm using the combinaison of this modules : Address field Geofield Ip&Geoloc Leaflet I need to approximate the location of user's markers on the map for privacy reason. For exemple if somebody ...
user avatar
  • 355
1 vote
2 answers
199 views

How to override the ['search_distance'] in Location: Distance / Proximity Views in a custom module

After looking at the location module. I couldn't find any way to override the 'search_distance' parameter by creating a custom Form. dose anyone know how to override this variable by using a custom ...
user avatar
  • 418
1 vote
1 answer
145 views

Use custom marker when specific checkbox is checked

I am building an events page. The page is using Gmap, Locations and Views modules. In the content type "Events", I have set a checkbox for "Featured Event", I want these events to stand out in the ...
user avatar
  • 11
0 votes
3 answers
6k views

How to get country list array with their corresponding country codes

I have used $countries = \Drupal\Core\Locale\CountryManager::getStandardList(); to render array of countries with country code as their keys. But when I debug the variable $countries; print_r($...
user avatar
3 votes
1 answer
62 views

Taking node map from /map/node and using it on home page

I need a google map block which would show all the nodes' location with markers. I noticed that Location module has this built in if I follow /map/node url. My question is, can I somehow take this map ...
user avatar
  • 319
1 vote
0 answers
223 views

How do I configure 'proximity to address' exposed view filter?

I have a view of nodes each with an address, and latitude/longitude. I've attached a Google Maps view block which displays the pins on the map corresponding to the results in the list. I'm using ...
user avatar
  • 542
5 votes
2 answers
2k views

How can I pass the filter parameters of one view to a different view on the same page?

Summary I have two seperate views on the same page - one Page and one Block that show two seperate content types respectively, but have a filter exposed for a field that they share. On the page of ...
user avatar
  • 667
1 vote
1 answer
22 views

Circular Search view not returning results if city exists in UK AND elsewhere

We have a locational search (using circular search filter in the View) available for our member groups across the UK: https://makingmusic.org.uk/resources/find-a-group-list Entering cities/towns by ...
user avatar
  • 33
0 votes
1 answer
58 views

Adding map with user location into the profile

I am trying to add a 'IPGV&M: Map (Google) centered on visitor's location' block to all user profiles and I kinda succeeded. The map appears in the user profile, in the footer where i intended to ...
user avatar
0 votes
1 answer
72 views

Set up Node content 'localization' / site wide region filter - similar to languages idea

What is a good approach re structure and modules to be able to render site content based on a location drop down? It is not an option to display all the content via views. I'm aware of Views Global ...
user avatar
  • 156
0 votes
1 answer
118 views

Add location to to profile2 just after the user registers

I am trying to force add a location to a user's profile2 just after the user register's an account. The user's are able to add locations to their profile by using flags, but since there are no ...
user avatar
  • 35
1 vote
0 answers
37 views

Getting distance information on custom data table with Views (Drupal 7)

I am using Views to display a custom table (locations). I have everything setup properly but now, I would like to get the distance from the current user to display. I have first tried to get a ...
user avatar
2 votes
0 answers
544 views

Proximity Search? [closed]

Is there a working solution for proximity search in Drupal 8 yet or is it a case of waiting for the modules to be redeveloped? I want to help a user find the closest establishment to them within 100 ...
user avatar
2 votes
1 answer
1k views

How to display visitor's country flag depending on the visitor's IP address?

How can I display Visitor's country name and flag and depending on his IP address in a block?
user avatar
1 vote
0 answers
15 views

User can't change their own location after registration anymore

i'm using the loaction module for user locations. At the registration form a new user has to enter his oder her location and it will be displayed in his profile. When the user tries to edit his or her ...
user avatar
1 vote
1 answer
172 views

Can't save location when posting node through services module

I am using services module to post nodes using rest/json. The nodes also contain images and location. So far I can upload the image and save the node, but the location is not saved. I receive no ...
user avatar
  • 89
1 vote
2 answers
201 views

Manage display of geofield with wkt input widget

I am stuck on something that seemed very simple and need your help. I have an input form where there is a geofield input field of type WKT. So the user gives the WKT of a point. When the node is ...
user avatar
  • 51
1 vote
0 answers
24 views

Can a node have a 'wild card' ZIP Code that matches all ZIP codes?

I am using Drupal 7.43 and the Location module 7.x-3.7. Can a node have a 'wild card' ZIP Code that matches all ZIP codes? Application: Have a filterable view return a list of nodes with ZIPs within ...
user avatar
1 vote
0 answers
239 views

Geofield proximity order

I would like to sort my results by proximity in Drupal 7 Views. I have already read the geofield proximity in views topic. But that tutorial is using a location provided by the user (exposed filter) ...
user avatar
1 vote
0 answers
17 views

Location Module Fields not showing up in search api fields

Is there a way to show location fields using the location module in Search API fields?
user avatar
1 vote
1 answer
66 views

How to implement facets in Views

I'm trying to implement a search function with location in Drupal. At the moment I have a base setup with a custom Content Type (Discount), which has a Geofield parameter. This gets indexed in Solr ...
user avatar
0 votes
0 answers
112 views

Location province views exposed filter as a select list or checkboxes?

I'm displaying google map using gmap and location module through views. I want to add a province exposed filter to the view as a select list or checkboxes but I'm unable to do this. When I add the ...
user avatar
  • 2,697
1 vote
1 answer
55 views

How to export GMap configurations?

I have a View block which renders a map through GMap formatter and includes two fields - Company Name and Address. When I export it through features and try to render it on another system, the map ...
user avatar
1 vote
0 answers
52 views

Show a block of locations based off proximity search

I've created a map, using Geofield, Leaflet and proximity search. This works great. I also wanted to add a block view on the same page that shows an unformatted list based off the proximity search. ...
user avatar
  • 89
0 votes
1 answer
318 views

How to add a button :"Get my location" in page views

i have created a gmap views page, and i want add a button "get my location like this : i want give to visitor a button that can get his location in the map, some one have an idea how to do that ?...
user avatar

1
2 3 4 5
7