Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [location]

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

0
votes
1answer
23 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
0answers
11 views

Is it possible to add each new zip code to a location taxonomy?

During registration, I'm looking for a way to let users input their zip code with an autocomplete feature from Google maps API, when they create an account. Is it possible to add each new zip code to ...
0
votes
0answers
11 views

HTML 5 geolocation integration on GMap Module

I'm trying to use HTML 5 geolocation option with addressfield module. I have GMap, addressfield and addressfield_autocompleted modules installed. As per my understanding GMap have the option to use ...
-2
votes
2answers
25 views

Location based menu items

I have smart IP enabled in my site and is working fine. But there is no options to localise menu items based on IP. But I need IP based menu items. Is there any?Please advise.
0
votes
0answers
6 views

Reorder Location CCK fields in node.tpl

I would to change the display order of Location CCK sub-fields. Actually, the HTML is like : <div class="street-address"> Lycée des Métiers de la Communication, du Commerce et des ...
0
votes
2answers
29 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
0answers
26 views

Geolocation Field- Have the Title Field Open the Map Marker

I have a map with multiple markers in which I used Views and the Geolocation field. I have two block views on one page, one block view shows the map with the markers, the other block view is just ...
0
votes
1answer
16 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 "...
0
votes
0answers
20 views

Search address on map with coverage areas(polygons)

I need to display a map with some polygons I am loading from a KML file. Also, I need to have a address field to plot a marker on the map and identify if its within the range of polygon 1 or polygon 2 ...
0
votes
0answers
16 views

Is it possible to replace Search API Location and Apache Solr server with Google API to show distance?

I have developed website in Drupal similar to www.datacareer.de with the distance filter as below: https://www.datacareer.de/jobs/?listing_type%5Bequal%5D=Job&searchId=1518019808.764&action=...
0
votes
0answers
121 views

D8 Geolocation Proximity exposed filter only working SOMETIMES - Works for anon users, doesnt work with mulitpe filters etc

I have been working on this a while now. I have content which has a geocoded address, I have an exposed filter block which has a proximity filter as well as a dropdown selection for another filter. ...
0
votes
0answers
23 views

Automatically populate a field with current weather based on browser's location

I am using Drupal8. I want to add a field to my nodes, which will automatically get the browser's location and then fetch the data from, say, OpenWeather project giving the current weather. I ...
0
votes
0answers
21 views

Redirect Home page url languages based on country location

I want to have redirection to my site like when a US visitor visits the site it should redirect to www.example.com/us and the same for all languages AU,DE,GB,NZ all this should be redirected based on ...
1
vote
0answers
88 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
2answers
40 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
1answer
27 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
1answer
90 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 ...
1
vote
1answer
308 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
2answers
533 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
1answer
100 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
0answers
232 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 ...
2
votes
0answers
31 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
1answer
75 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
2answers
118 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
1answer
76 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
3answers
2k 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($...
4
votes
1answer
58 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
0answers
97 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 ...
6
votes
2answers
674 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
1answer
19 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
1answer
51 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
1answer
62 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
1answer
102 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
0answers
31 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 ...
0
votes
0answers
97 views

How to save latitude/longitude with Services module

I've designed a website and I'm using Geolocation to store geographical location of businesses. Now I'm going to create an app to save businesses and their location data with GPS. I pass data like ...
2
votes
0answers
422 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
1answer
758 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
0answers
14 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
1answer
152 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
2answers
94 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
0answers
23 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
0answers
206 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
0answers
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?
1
vote
1answer
52 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
0answers
90 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
1answer
39 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
0answers
41 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. ...
0
votes
1answer
192 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 ?
0
votes
0answers
54 views

Taxonomy Gmap not filtering on Term ID

I am busy creating a map of countries for a client. Each country is created as a taxonomy term with custom fields outputting images and content that is being delivered to the front end via blocks and ...
0
votes
1answer
187 views

How to show a map of the User's Location in the User's profile with Address Field and Geofield

So, the location + Gmap module showed a map of the User's address in the user's profile once it was geocoded. Is there an equivalent widget that will show a map of the user's address in the profile ...