Questions tagged [location]
Real-world geographic locations can be associated with Drupal entities.
318
questions
0
votes
1
answer
59
views
Is it safe to remove all untranslated strings?
I have a site which contains thousand of unused (and not translated) strings.
I would like to remove them to light up my database.
For the records,those strings where created because the original ...
0
votes
0
answers
55
views
How to create commerce store resolver using user proximity / location
For a custom store resolver using store location proximity to user location, is it necessary to create a completely separate module or can the custom resolver be located somewhere within the commerce ...
5
votes
1
answer
193
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 ...
0
votes
1
answer
147
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....
0
votes
1
answer
38
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 ...
-1
votes
1
answer
353
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 ...
0
votes
1
answer
368
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 ...
0
votes
1
answer
318
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 ...
0
votes
0
answers
655
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 ...
0
votes
1
answer
78
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 ...
0
votes
1
answer
106
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 ...
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 ...
0
votes
1
answer
78
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.
1
vote
1
answer
877
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 (...
0
votes
2
answers
122
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 ...
0
votes
1
answer
36
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 "...
1
vote
0
answers
238
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 ...
0
votes
2
answers
98
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 ...
-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.
...
0
votes
1
answer
216
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 ...
2
votes
1
answer
902
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?
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 ...
0
votes
1
answer
319
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 ...
1
vote
0
answers
370
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 ...
-1
votes
1
answer
567
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 ...
2
votes
0
answers
34
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 ...
0
votes
1
answer
111
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 ...
1
vote
2
answers
207
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 ...
1
vote
1
answer
152
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 ...
0
votes
3
answers
7k
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($...
3
votes
1
answer
64
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 ...
1
vote
0
answers
235
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 ...
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 ...
1
vote
1
answer
23
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 ...
0
votes
1
answer
61
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 ...
0
votes
1
answer
73
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 ...
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 ...
1
vote
0
answers
45
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 ...
2
votes
0
answers
559
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 ...
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?
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 ...
1
vote
1
answer
175
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 ...
1
vote
2
answers
242
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 ...
1
vote
0
answers
32
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 ...
1
vote
0
answers
252
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) ...
1
vote
0
answers
18
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?
1
vote
1
answer
72
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 ...
0
votes
0
answers
113
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 ...
1
vote
1
answer
58
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 ...
1
vote
0
answers
60
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. ...